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

No module named 'websockets.sync' #1

Open
kency opened this issue Aug 27, 2023 · 1 comment
Open

No module named 'websockets.sync' #1

kency opened this issue Aug 27, 2023 · 1 comment

Comments

@kency
Copy link

kency commented Aug 27, 2023

PS E:\Workspace\chatglm2-6b-explorer\src> python gallery.gradio.py
Traceback (most recent call last):
File "E:\Workspace\chatglm2-6b-explorer\src\gallery.gradio.py", line 3, in
from apps import instruction_chat_demo, simple_chat_demo, translator_demo
File "E:\Workspace\chatglm2-6b-explorer\src\apps_init_.py", line 1, in
from .instruction_chat import instruction_chat_demo
File "E:\Workspace\chatglm2-6b-explorer\src\apps\instruction_chat.py", line 6, in
from chatClient import ChatClient
File "E:\Workspace\chatglm2-6b-explorer\src\chatClient.py", line 6, in
from websockets.sync.client import connect
ModuleNotFoundError: No module named 'websockets.sync'

@hiwei93
Copy link
Owner

hiwei93 commented Aug 31, 2023

the version of websockets package is wrong. And this issue has been fixed. You could pull the latest code and reinstall the dependence by running the following command:
(这个问题是 websockets 依赖版本不对的问题,已经修复,拉取最新代码,重新安装一下依赖:)

pip install -r requirements.txt

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