eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.74k stars 1.85k forks source link

[BUG]: ModuleNotFoundError #224

Closed VincentHan888 closed 1 year ago

VincentHan888 commented 1 year ago

"Does anyone encounter the same issue as me?

I am following this tutorial on "使用云服务器搭建DB-GPT的教程", installing the project on AutoDL.

Everything went smoothly until this step "python pilot/server/llmserver.py". When running this code, I keep getting missing module errors, such as: ModuleNotFoundError: No module named 'auto_gpt_plugin_template’, ModuleNotFoundError: No module named 'uvicorn', ModuleNotFoundError: No module named 'fastapi', and so on.

Then I tried to reinstall, figuring out which ones were unsuccessful or couldn't find the download modules. Here are the ones that were unsuccessful or couldn't be found: torch==2.0.0 sqlparse==0.4.4 multidict==6.0.4 spacy==3.5.1 webdataset==0.2.48 yarl==1.8.2 llama-index==0.5.27 auto-gpt-plugin-template pymdown-extensions gTTS==2.3.1

pymilvus==2.2.1

pypdf pytesseract==0.3.10

Here is my cloud server environment: Miniconda conda3 Python 3.10(ubuntu22.04) Cuda 11.8

Any advice on how to solve this?" DB-GPT云服务器安装文档.pdf

csunny commented 1 year ago

retry use follow command.

pip install -r requirements.txt

more info about how to install, you can visitor install documents

VincentHan888 commented 1 year ago

retry use follow command.

pip install -r requirements.txt

more info about how to install, you can visitor install documents

You're right, I found that the requirements.txt in this PDF tutorial may reference other packages, so I changed the code to use 'pip install -r requirements.txt'. However, the result seems to be the same, it still prompts me that I am missing these modules.

yihanglim commented 1 year ago

where is the requirements.txt? I couldn't find in the repo?

csunny commented 1 year ago

In the new version we use setup.py

pip install -e ".[default]"

you can install it according to install document https://db-gpt.readthedocs.io/en/latest/getting_started/install/deploy/deploy.html#install

@yihanglim