Without being a python developer I would say that django is what cannot find that module. Since I don’t know what is inside the Dockerfile I don’t know what could cause it. Can you share at least a part of your Dockerfile? The part where you install the module and maybe django. Of course the best would be to see the whole file but I don’t want to ask that if it is a private project. However I don’t think we can tell what the problem is without further details. Maybe python developers who use django could guess it based on their experience.
rimelek
(Ákos Takács)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Multiple python files docker no module error | 1 | 20131 | February 6, 2019 | |
| Python sys.path import module | 3 | 2359 | November 6, 2021 | |
| Python import error in Docker compoment | 2 | 363 | May 16, 2025 | |
| Docker Python - Module not Found after installing | 2 | 22167 | August 25, 2022 | |
| No module named 'environ', but it is installed and the app runs outside of container | 1 | 1097 | May 8, 2023 |