hiwei93 / chatglm2-6b-explorer

探索 ChatGLM2-6B 能力
2 stars 0 forks source link

No module named 'websockets.sync' #1

Open kency opened 1 year ago

kency commented 1 year ago

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 commented 1 year ago

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