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 #2285

Open
yz1yang opened this issue Dec 10, 2024 · 5 comments
Open

RuntimeError: no running event loop #2285

yz1yang opened this issue Dec 10, 2024 · 5 comments

Comments

@yz1yang
Copy link

yz1yang commented Dec 10, 2024

Python版本下面的funasr_wss_server.py启动会出现没有循环事件的问题
Traceback (most recent call last):
File "E:\project\FunASR-main\runtime\python\websocket\funasr_wss_server.py", line 337, in
start_server = websockets.serve(
File "E:\Miniconda3\envs\huiyi\lib\site-packages\websockets\asyncio\server.py", line 737, in init
self.server = Server(
File "E:\Miniconda3\envs\huiyi\lib\site-packages\websockets\asyncio\server.py", line 281, in init
self.loop = asyncio.get_running_loop()
RuntimeError: no running event loop

@yz1yang
Copy link
Author

yz1yang commented Dec 10, 2024

更换了Python版本,没有报错了,但是一直在异步哪儿,后续的加载一直加载不进去
企业微信截图_17338143362930

@happywch
Copy link

我也出现这个问题,用的python3.10,但是另外一台电脑部署的也是3.10 没有问题。我这台电脑现在也是1.1.16的funasr请问你最后使用什么版本的python

@happywch
Copy link

websockets的版本问题,之前14.1,换成12.0就好了

@yz1yang
Copy link
Author

yz1yang commented Dec 11, 2024

Python是3.9的,对应更新了funasr,然后就没有模型加载和启动的问题了,就是一直在ws_serve外面

@yz1yang
Copy link
Author

yz1yang commented Dec 11, 2024

我试了,更换了websockets的确也可以

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