Skip to content

Conversation

@gabelul
Copy link

@gabelul gabelul commented Sep 2, 2025

Summary

Fixes API server startup failure caused by Python packages not being installed in the virtual environment.

Problem

The setup-venv.js script was using uv pip install -r requirements.txt without specifying the target virtual environment. This caused packages to be installed in the global uv environment instead of the project's .venv, leading to "No module named uvicorn" errors when starting the API server.

Solution

  • Added --python .venv/bin/python flag to the uv pip install command
  • Updated error message to show the correct command syntax

Test plan

  • Verified the fix works with a clean virtual environment
  • Confirmed API server starts successfully after running npm run ensure:venv
  • Tested that uvicorn is properly installed in the virtual environment

This ensures all Python dependencies are properly installed in the project's isolated virtual environment.

Gabi added 2 commits September 2, 2025 15:09
The setup-venv.js script was installing Python packages to the global
uv environment instead of the project's virtual environment. This caused
the API server to fail with "No module named uvicorn" error.

- Added --python .venv/bin/python flag to uv pip install command
- Updated error message to include the correct command syntax

This ensures all Python dependencies are properly installed in the
project's isolated virtual environment.
- Added dev-docs/ to the .gitignore file to prevent tracking of development documentation files.
@josedab
Copy link

josedab commented Sep 9, 2025

Confirmed this fixed my setup. Thanks! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants