Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with asyncio event loop already running #20

Open
jakesrt8 opened this issue Sep 11, 2020 · 0 comments
Open

Problems with asyncio event loop already running #20

jakesrt8 opened this issue Sep 11, 2020 · 0 comments

Comments

@jakesrt8
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant