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

"RuntimeError: no running event loop" cannot run any example code #57

Open
Celppu opened this issue Dec 11, 2024 · 1 comment
Open

"RuntimeError: no running event loop" cannot run any example code #57

Celppu opened this issue Dec 11, 2024 · 1 comment

Comments

@Celppu
Copy link

Celppu commented Dec 11, 2024

Trying any example codes that uses swift.

Installed via pip with roboticstoolbox
So far I have tested python versions 3.10 and 3.13
On windows and linux.

error:
Exception in thread Thread-3 (SwiftSocket): Traceback (most recent call last): File "c:\Users\mee\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner self.run() File "c:\Users\mee\AppData\Local\Programs\Python\Python312\Lib\site-packages\ipykernel\ipkernel.py", line 766, in run_closure _threading_Thread_run(self) File "c:\Users\mee\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1010, in run self._target(*self._args, **self._kwargs) File "c:\Users\mee\AppData\Local\Programs\Python\Python312\Lib\site-packages\swift\SwiftRoute.py", line 296, in __init__ start_server = websockets.serve(self.serve, "localhost", port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\mee\AppData\Local\Programs\Python\Python312\Lib\site-packages\websockets\asyncio\server.py", line 737, in __init__ self.server = Server( ^^^^^^^ File "c:\Users\mee\AppData\Local\Programs\Python\Python312\Lib\site-packages\websockets\asyncio\server.py", line 281, in __init__ self.loop = asyncio.get_running_loop() ^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop

@renehorstmann
Copy link

Added a pull request that fixes this bug

#58

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

2 participants