Open kency opened 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
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'