DeepCode icon indicating copy to clipboard operation
DeepCode copied to clipboard

ModuleNotFoundError: No module named 'prompts'

Open shoukewei opened this issue 3 months ago • 4 comments

Do you need to file an issue?

  • [ ] I have searched the existing issues and this bug is not already filed.
  • [ ] I believe this is a legitimate bug, not just a question or feature request.

Describe the bug

I used pip install. When I start deepcode, it displayed the error:

ModuleNotFoundError: No module named 'prompts' Traceback: File "C:\Users\shouk\anaconda3\Lib\site-packages\ui\streamlit_app.py", line 20, in from ui.layout import main_layout File "C:\Users\shouk\anaconda3\Lib\site-packages\ui_init_.py", line 19, in from .layout import main_layout File "C:\Users\shouk\anaconda3\Lib\site-packages\ui\layout.py", line 17, in from .handlers import ( ...<3 lines>... ) File "C:\Users\shouk\anaconda3\Lib\site-packages\ui\handlers.py", line 22, in from workflows.agent_orchestration_engine import ( ...<2 lines>... ) File "C:\Users\shouk\anaconda3\Lib\site-packages\workflows_init_.py", line 8, in from .agent_orchestration_engine import ( ...<7 lines>... ) File "C:\Users\shouk\anaconda3\Lib\site-packages\workflows\agent_orchestration_engine.py", line 42, in from prompts.code_prompts import ( ...<4 lines>... )

Steps to reproduce

No response

Expected Behavior

No response

DeepCode Config Used

Paste your config here

Logs and screenshots

No response

Additional Information

  • DeepCode Version:
  • Operating System:
  • Python Version:
  • Related Issues:

shoukewei avatar Aug 22 '25 14:08 shoukewei

for temporary fix copy config and prompts folders from source to site-packages folder where deepcode is installed

AakashD1 avatar Aug 22 '25 19:08 AakashD1

Use "from code" installation rather than "deepcode" cli call, then it should work

pacoloco71 avatar Aug 23 '25 07:08 pacoloco71

git clone https://github.com/HKUDS/DeepCode.git cd DeepCode pip install -e . deepcode

codenan42 avatar Aug 24 '25 14:08 codenan42

Thank you all for your enthusiastic responses!

Zongwei9888 avatar Sep 01 '25 09:09 Zongwei9888