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

There is no current event loop in thread #243

Open
dneprovets opened this issue Sep 23, 2023 · 4 comments
Open

There is no current event loop in thread #243

dneprovets opened this issue Sep 23, 2023 · 4 comments
Labels
help wanted Extra attention is needed up for grabs

Comments

@dneprovets
Copy link

❯ seagoat-server start ~/Projects/middleware/control/pong-front-end
2023-09-23 11:21:57,045 Creating server...
2023-09-23 11:21:57,046 Starting worker thread...
2023-09-23 11:21:57,047 Serving on http://0.0.0.0:57187
Exception in thread Thread-1 (_worker_function):
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/opt/homebrew/lib/python3.11/site-packages/seagoat/queue/base_queue.py", line 72, in _worker_function
context = self._get_context()
^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/seagoat/queue/task_queue.py", line 39, in _get_context
from seagoat.engine import Engine
File "/opt/homebrew/lib/python3.11/site-packages/seagoat/engine.py", line 40, in
nest_asyncio.apply()
File "/opt/homebrew/lib/python3.11/site-packages/nest_asyncio.py", line 18, in apply
loop = loop or asyncio.get_event_loop()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/nest_asyncio.py", line 45, in _get_event_loop
loop = events.get_event_loop_policy().get_event_loop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/events.py", line 677, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Thread-1 (_worker_function)'.
^CServer started at http://localhost:57187
Server running.

@kantord
Copy link
Owner

kantord commented Sep 23, 2023

could you please add some more info?

  • what os?
  • what machine?
  • does the error always happen? any specific steps needed to reproduce it?
  • does it happen only with one repo, or all repos in general?

@dneprovets
Copy link
Author

❯ sw_vers
ProductName: macOS
ProductVersion: 13.4
BuildVersion: 22F66

❯ system_profiler SPHardwareDataType | grep "Model Identifier"
Model Identifier: Mac14,9 M2

❯ python3 --version

Python 3.11.5

❯ pip3 --version
pip 23.2.1

Happens always with any projects that i tried

@fatihmert
Copy link

First install with pipx install seagoat, then try the sample directory my-app and the result is as #333

@kantord kantord added help wanted Extra attention is needed up for grabs labels Oct 18, 2023
@kantord
Copy link
Owner

kantord commented Oct 18, 2023

I added the help wanted label because I am not familiar with macs and I am not able to reproduce the issue. Help with a Mac OS developer would be highly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed up for grabs
Projects
None yet
Development

No branches or pull requests

3 participants