Local venv is missing requirements.txt dependencies; first-run install not documented #42
Labels
No labels
blocked:children
blocked:depends-101
blocked:depends-103
blocked:depends-104
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:preflight
bug
chore
feature-request
in-progress
lint-cleanup
needs-decompose
performance
quality
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Repro
defusedxmlis inrequirements.txtbut not in the local.venv/. Samelikely true for several other deps (
lxml,pyembroidery,scikit-image,scikit-learn,pydantic,python-dotenv,matplotlib,aiohttp).Impact
A new contributor who clones the repo and tries to run the tests (or the
service per "Add HTTP service layer") hits
ModuleNotFoundErrorimmediately.The fix is
pip install -r requirements.txt, but that's not documented.The Dockerfile hides this because it installs requirements in the build
step. The local venv doesn't.
Fix
requirements.txt(orgenerate
requirements.lock) sopip install -ris deterministic.and warn if not.
Acceptance
python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt && pip install -e .allowspython -c "import main_pipeline"to succeed.