name: 🐛 Bug Report
about: Create a report to help us improve FireForm.
title: "[BUG]: PYTHONPATH=/app/src breaks api imports in Docker"
labels: bug
assignees: ''
⚡️ Describe the Bug
Docker sets PYTHONPATH=/app/src, which causes inconsistent import behavior:
src.* imports work
api.* imports fail
- Behavior differs between local and Docker environments
This creates environment-specific failures.
👣 Steps to Reproduce
- Run:
make build && make up
docker compose exec app python -c "from api.main import app"
- Observe
ModuleNotFoundError: No module named 'api'.
📉 Expected Behavior
Both src.* and api.* imports should resolve consistently in all environments.
🖥️ Environment Information
- OS: Docker container
- Docker/Compose Version: Any
- Ollama Model used: N/A
📸 Screenshots/Logs
ModuleNotFoundError: No module named 'api'
🕵️ Possible Fix
Set:
ENV PYTHONPATH=/app
instead of /app/src in:
- Dockerfile
- docker-compose.yml
name: 🐛 Bug Report
about: Create a report to help us improve FireForm.
title: "[BUG]: PYTHONPATH=/app/src breaks api imports in Docker"
labels: bug
assignees: ''
⚡️ Describe the Bug
Docker sets
PYTHONPATH=/app/src, which causes inconsistent import behavior:src.*imports workapi.*imports failThis creates environment-specific failures.
👣 Steps to Reproduce
ModuleNotFoundError: No module named 'api'.📉 Expected Behavior
Both
src.*andapi.*imports should resolve consistently in all environments.🖥️ Environment Information
📸 Screenshots/Logs
ModuleNotFoundError: No module named 'api'🕵️ Possible Fix
Set:
ENV PYTHONPATH=/appinstead of
/app/src in: