Skip to content

RuntimeError: no running event loop #59

Description

@paryasoleimani

Hey, dear Devs. I was recently testing a robotic example Colab Link running on Swift. It strangely gave me the following error: "Async event loop already running. Adding coroutine to the existing event loop." Exception in thread Thread-11 (SwiftSocket): Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.10/dist-packages/swift/SwiftRoute.py", line 296, in __init__ start_server = websockets.serve(self.serve, "localhost", port) File "/usr/local/lib/python3.10/dist-packages/websockets/asyncio/server.py", line 737, in __init__ self.server = Server( File "/usr/local/lib/python3.10/dist-packages/websockets/asyncio/server.py", line 281, in __init__ self.loop = asyncio.get_running_loop() RuntimeError: no running event loop"

Or it stuck on loading for a long amount of time . How should I solve this?

I really appreciate any help you can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions