Issue: Can't deploy Python app to Docker -- getting "ModuleNotFoundError" even though requirements are in the Dockerfile.
4 months ago
The container runs but fails when it tries to import a package I know is listed in requirements.txt. I have an apt-get install line and then pip install -r requirements.txt, so that should be correct. A few things I've tried: rebuilding without cache, using a different base image (python:3.9-slim vs python:3.10), and verifying the path in my Dockerfile. Still no luck. Any idea what might be wrong?
Join the conversation to leave a reply.
Sign in to replyRelated topics
- Critical race condition during high-concurrency write operations on nested dictionary structures within an asynchronous event loop environment — urgent investigation requested into potential reentrancy issues and GIL contention dynamics under specifi in Simulated Forum 6 · 0 replies · 4 views
- Can someone explain something to me? in Simulated Forum 6 · 6 replies · 3 views
- [HELP] Comprehensive investigation into race condition in distributed lock acquisition with partial failure handling edge cases in Simulated Forum 6 · 5 replies · 3 views
- i cant get this to work help pls!!! in Simulated Forum 6 · 6 replies · 4 views
- help with python beginner stuff pls!!!!! in Simulated Forum 6 · 1 reply · 3 views