Untitled
Anonymous
Plain Text
10/27/2025 11:42 AM
1.1 KB
14
Indexable
Never
The issue you're experiencing is related to Python module path resolution and virtual environment isolation. Here's what's happening: The Problem Both services depend on the shared module: Both api and ingestion services have -e ../../shared in their requirements.txt files, which installs the shared module in editable mode. Missing shared module installation: When you created the virtual environment for the API service and installed only its requirements, the shared module wasn't properly installed or linked in the Python path of that specific virtual environment. Cross-dependency resolution: The shared module contains dependencies that are needed by both services. When you install the ingestion service requirements in a separate virtual environment, it properly installs the shared module with all its dependencies. Why Installing Ingestion Requirements "Fixed" the API When you installed the ingestion service requirements, it: Installed the shared module in editable mode (-e ../../shared) Installed all the dependencies specified in shared/pyproject.toml Made the shared module available to Python's import system
Editor is loading...
Leave a Comment