GaiZhenbiao / ChuanhuChatGPT

GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.
https://huggingface.co/spaces/JohnSmith9982/ChuanhuChatGPT
GNU General Public License v3.0
15.18k stars 2.29k forks source link

[本地部署]: ubuntu18.04本地部署遇到python问题 #1156

Closed txarmux closed 1 month ago

txarmux commented 1 month ago

是否已存在现有反馈与解答?

是否是一个代理配置相关的疑问?

错误描述

python3.10 ChuanhuChatbot.py 运行出错

复现操作

正常本地部署,内容还没修改

错误日志

ubuntu@ubuntu:~/chatgpt-web$ python3.10 ChuanhuChatbot.py 
Traceback (most recent call last):
  File "/home/ubuntu/chatgpt-web/ChuanhuChatbot.py", line 10, in <module>
    from modules.overwrites import *
  File "/home/ubuntu/chatgpt-web/modules/overwrites.py", line 4, in <module>
    from llama_index import Prompt
ImportError: cannot import name 'Prompt' from 'llama_index' (unknown location)
2024-08-28 10:53:44,265 [INFO] [_client.py:1038] HTTP Request: GET https://api.gradio.app/gradio-messaging/en "HTTP/1.1 200 OK"
ubuntu@ubuntu:~/chatgpt-web$

运行环境

- OS: ubuntu18.04
- Browser: Edge
- Gradio version: 1.3.0
- Python version: 3.10

补充说明

No response

GaiZhenbiao commented 1 month ago

请使用最新的主线代码。你用的应该是很久之前的版本了