Skip to content

Problems with asyncio event loop already running #20

@jakesrt8

Description

@jakesrt8

I ran into an issue with ayncio and had to apply this change to get the following error to go away:

/software/public/anaconda/3.8.3/lib/python3.8/asyncio/base_events.py in _check_running(self)
550 def _check_running(self):
551 if self.is_running():
--> 552 raise RuntimeError('This event loop is already running')
553 if events._get_running_loop() is not None:
554 raise RuntimeError(

RuntimeError: This event loop is already running

Added this to the top of the file: BAG_framework/bag/concurrent/core.py
import nest_asyncio
nest_asyncio.apply()

I had to install nest_asyncio package from: https://pypi.org/project/nest-asyncio/#files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions