DeepCode
DeepCode copied to clipboard
[Question]: ModuleNotFoundError: No module named 'mcp_agent.app' when running Streamlit app
Do you need to ask a question?
- [x] I have searched the existing question and discussions and this question is not already answered.
- [ ] I believe this is a legitimate question, not just a bug or feature request.
Your Question
I cloned the DeepCode repository and tried running the Streamlit app, but I encounter an import error: ModuleNotFoundError: No module named 'mcp_agent.app'
╰─$ uv run streamlit run ui/streamlit_app.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501 Network URL: http://172.20.10.9:8501
2025-11-05 12:32:18.263 Uncaught app exception
Traceback (most recent call last):
File "/opt/homebrew/anaconda3/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
result = func()
^^^^^^
File "/opt/homebrew/anaconda3/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
exec(code, module.dict)
File "/Volumes/REDLAB/tech-apps/AI/DeepCode/ui/streamlit_app.py", line 20, in
Additional Context
Steps to Reproduce
🔽 Clone the repository
git clone https://github.com/HKUDS/DeepCode.git cd DeepCode/
📦 Install UV package manager
curl -LsSf https://astral.sh/uv/install.sh | sh
🔧 Install dependencies with UV
uv venv --python=3.13 source .venv/bin/activate # On Windows: .venv\Scripts\activate uv pip install -r requirements.txt
Using UV
uv run streamlit run ui/streamlit_app.py
having same issue
Hello, you can just run "uv run deepcode.py" , the readme will be updated! Thank you!