-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
webui 启动报错,对话界面报错 #3603
Comments
Hey @huitao2018, great to see you back! Hope all's been well on your end since our last interaction. 🚀 Based on the issues you're encountering, here are some steps to resolve them:
Remember to activate your virtual environment whenever working on the project to ensure that the correct dependencies are used. If any errors occur during these steps, the error messages and stack traces will provide valuable information for troubleshooting. To debug the
Given the provided context, it's important to clarify that there is no direct To start the necessary backend services that Langchain depends on and verify that they are running correctly, follow these specific steps:
To verify that these services are running correctly, you can:
Each service logs its status and any errors encountered during startup, so monitoring the log files specified in the I hope this helps! If you have any further questions, feel free to ask. Sources
|
依赖对吗,感觉依赖没装对 |
您好,请问解决了吗 |
操作系统:Linux-3.10.0-1160.el7.x86_64-x86_64-with-glibc2.17
python版本:3.9.10 (main, Mar 28 2024, 11:41:54)
项目版本:v0.2.10
langchain版本:0.1.5. fastchat版本:0.2.35
当前使用的分词器:ChineseRecursiveTextSplitter
当前启动的LLM模型:['chatglm3-6b', 'openai-api'] @ cuda
{'device': 'cuda',
'host': '0.0.0.0',
'infer_turbo': False,
'model_path': '/home/numax/langchain-Chatchat/Langchain-Chatchat/model/chatglm3-6b-int4',
'model_path_exists': True,
'port': 20002}
{'api_base_url': 'https://api.openai.com/v1',
'api_key': '',
'device': 'auto',
'host': '0.0.0.0',
'infer_turbo': False,
'model_name': 'gpt-4',
'online_api': True,
'openai_proxy': '',
'port': 20002}
当前Embbedings模型: bge-large-zh @ cuda
服务端运行信息:
Chatchat WEBUI Server: http://0.0.0.0:8501
==============================Langchain-Chatchat Configuration==============================
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
Git integration is disabled.
Streamlit requires Git 2.7.0 or later, but you have 1.8.3.1.
Git is used by Streamlit Cloud (https://streamlit.io/cloud).
To enable this feature, please update Git.
You can now view your Streamlit app in your browser.
URL: http://0.0.0.0:8501
打开界面,报错如下:
/usr/local/python3/lib/python3.9/site-packages/langchain/chat_models/init.py:31: LangChainDeprecationWarning: Importing chat models from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:
from langchain_community.chat_models import ChatOpenAI
.To install langchain-community run
pip install -U langchain-community
.warnings.warn(
/usr/local/python3/lib/python3.9/site-packages/langchain/llms/init.py:548: LangChainDeprecationWarning: Importing LLMs from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:
from langchain_community.llms import OpenAI
.To install langchain-community run
pip install -U langchain-community
.warnings.warn(
/usr/local/python3/lib/python3.9/site-packages/pydantic/_internal/_config.py:322: UserWarning: Valid config keys have changed in V2:
warnings.warn(message, UserWarning)
/usr/local/python3/lib/python3.9/site-packages/langchain/document_loaders/init.py:36: LangChainDeprecationWarning: Importing document loaders from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:
from langchain_community.document_loaders import JSONLoader
.To install langchain-community run
pip install -U langchain-community
.warnings.warn(
2024-04-01 17:55:44,829 - utils.py[line:95] - ERROR: ConnectError: error when post /llm_model/list_running_models: [Errno 111] Connection refused
2024-04-01 17:55:44,830 - utils.py[line:95] - ERROR: ConnectError: error when post /llm_model/list_running_models: [Errno 111] Connection refused
2024-04-01 17:55:44,830 - utils.py[line:95] - ERROR: ConnectError: error when post /llm_model/list_running_models: [Errno 111] Connection refused
2024-04-01 17:55:44,937 - utils.py[line:95] - ERROR: ConnectError: error when post /llm_model/list_running_models: [Errno 111] Connection refused
2024-04-01 17:55:44,938 - utils.py[line:95] - ERROR: ConnectError: error when post /llm_model/list_running_models: [Errno 111] Connection refused
2024-04-01 17:55:44,940 - utils.py[line:95] - ERROR: ConnectError: error when post /llm_model/list_running_models: [Errno 111] Connection refused
2024-04-01 17:55:44.940 Uncaught app exception
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/home/numax/langchain-Chatchat/Langchain-Chatchat/webui.py", line 61, in
pages[selected_page]["func"](api=api, is_lite=is_lite)
File "/home/numax/langchain-Chatchat/Langchain-Chatchat/webui_pages/dialogue/dialogue.py", line 163, in dialogue_page
running_models = list(api.list_running_models())
TypeError: 'NoneType' object is not iterable
2024-04-01 17:56:29,561 - utils.py[line:95] - ERROR: ConnectError: error when post /knowledge_base/search_docs: [Errno 111] Connection refused
2024-04-01 17:56:29,561 - utils.py[line:95] - ERROR: ConnectError: error when post /knowledge_base/search_docs: [Errno 111] Connection refused
2024-04-01 17:56:29,561 - utils.py[line:95] - ERROR: ConnectError: error when post /knowledge_base/search_docs: [Errno 111] Connection refused
2024-04-01 17:56:29.561 Uncaught app exception
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/home/numax/langchain-Chatchat/Langchain-Chatchat/webui.py", line 61, in
pages[selected_page]["func"](api=api, is_lite=is_lite)
File "/home/numax/langchain-Chatchat/Langchain-Chatchat/webui_pages/knowledge_base/knowledge_base.py", line 328, in knowledge_base_page
data = [
File "/home/numax/langchain-Chatchat/Langchain-Chatchat/webui_pages/knowledge_base/knowledge_base.py", line 329, in
{"seq": i + 1, "id": x["id"], "page_content": x["page_content"], "source": x["metadata"].get("source"),
TypeError: string indices must be integers
The text was updated successfully, but these errors were encountered: