启动demo的时候报错
#972
Replies: 1 comment
-
问题怎么解决的? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在运行streamlit run main.py之后
Traceback (most recent call last):
File "/home/jason/miniconda3/envs/chatGLM3/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.dict)
File "/data/chatGLM3/ChatGLM3/composite_demo/main.py", line 10, in
import demo_chat, demo_ci, demo_tool
File "/data/chatGLM3/ChatGLM3/composite_demo/demo_chat.py", line 4, in
from client import get_client
File "/data/chatGLM3/ChatGLM3/composite_demo/client.py", line 9, in
from huggingface_hub.inference._text_generation import TextGenerationStreamResponse, Token
File "/home/jason/miniconda3/envs/chatGLM3/lib/python3.10/site-packages/huggingface_hub/inference/_text_generation.py", line 30, in
from requests import HTTPError
File "/home/jason/miniconda3/envs/chatGLM3/lib/python3.10/site-packages/requests/init.py", line 45, in
from .exceptions import RequestsDependencyWarning
File "/home/jason/miniconda3/envs/chatGLM3/lib/python3.10/site-packages/requests/exceptions.py", line 9, in
from .compat import JSONDecodeError as CompatJSONDecodeError
File "/home/jason/miniconda3/envs/chatGLM3/lib/python3.10/site-packages/requests/compat.py", line 13, in
import charset_normalizer as chardet
File "/home/jason/miniconda3/envs/chatGLM3/lib/python3.10/site-packages/charset_normalizer/init.py", line 23, in
from charset_normalizer.api import from_fp, from_path, from_bytes, normalize
File "/home/jason/miniconda3/envs/chatGLM3/lib/python3.10/site-packages/charset_normalizer/api.py", line 10, in
from charset_normalizer.md import mess_ratio
AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)
Beta Was this translation helpful? Give feedback.
All reactions