I run the command docker build -t mathuin/odm_m1 . --no-cache
to rebuild ODM from time to time so it works well on my machine. Today it started failing in a reproducible way. Here’s the end of the logs:
#9 853.5 Collecting edt==2.0.2
#9 853.5 Downloading edt-2.0.2.tar.gz (167 kB)
#9 853.5 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.2/167.2 kB 17.2 MB/s eta 0:00:00
#9 853.6 Preparing metadata (setup.py): started
#9 853.6 Preparing metadata (setup.py): finished with status 'error'
#9 853.6 error: subprocess-exited-with-error
#9 853.6
#9 853.6 × python setup.py egg_info did not run successfully.
#9 853.6 │ exit code: 1
#9 853.6 ╰─> [6 lines of output]
#9 853.6 Traceback (most recent call last):
#9 853.6 File "<string>", line 2, in <module>
#9 853.6 File "<pip-setuptools-caller>", line 34, in <module>
#9 853.6 File "/tmp/pip-install-8tanjdzn/edt_46361e78a0e544f2b81b5bff12fb6f52/setup.py", line 4, in <module>
#9 853.6 import numpy as np
#9 853.6 ModuleNotFoundError: No module named 'numpy'
#9 853.6 [end of output]
#9 853.6
#9 853.6 note: This error originates from a subprocess, and is likely not a problem with pip.
#9 853.6 error: metadata-generation-failed
#9 853.6
#9 853.6 × Encountered error while generating package metadata.
#9 853.6 ╰─> See above for output.
#9 853.6
#9 853.6 note: This is an issue with the package mentioned above, not pip.
#9 853.6 hint: See above for details.
------
executor failed running [/bin/sh -c bash configure.sh install]: exit code: 1
It’s especially weird because requirements.txt
includes numpy.
Could something have changed with the installation or image creation to install edt before numpy?