python environment has broken prackages, for example numba doesn't import since it requires older version of numpy than what is installed. I have reported it here before: https://github.com/digitalearthafrica/deafrica-sandbox/issues/1 but looks like image is built in this repo.
Run pip check on sandbox to see what libs are affected, I care about numba but other ones are also not happy.
Reason for failure is probably this section of Dockerfile:
Running as root while environment is owned by jovyan user, so this installs packages that one can't patch at runtime on the sandbox as they are owned by root
Updating all dependencies of hdstats without taking into consideration constraints supplied previously, as a result newer version of numpy is pulled, in breaking numba and libraries that depend on that.
I suggest to at least run as jovyan and not root and use --no-deps flag and to ensure only hdstats is updated and not it's dependencies, or better yet make sure to install correct version from the get go.
Describe the bug
python environment has broken prackages, for example
numba
doesn't import since it requires older version ofnumpy
than what is installed. I have reported it here before: https://github.com/digitalearthafrica/deafrica-sandbox/issues/1 but looks like image is built in this repo.Run
pip check
on sandbox to see what libs are affected, I care aboutnumba
but other ones are also not happy.Reason for failure is probably this section of Dockerfile:
https://github.com/GeoscienceAustralia/dea-sandbox/blob/c86423bc8eb1f587ea072ed1b2a0693856e16b49/docker/Dockerfile#L121-L126
Several things are wrong with that
jovyan
user, so this installs packages that one can't patch at runtime on the sandbox as they are owned by roothdstats
without taking into consideration constraints supplied previously, as a result newer version ofnumpy
is pulled, in breakingnumba
and libraries that depend on that.I suggest to at least run as
jovyan
and notroot
and use--no-deps
flag and to ensure onlyhdstats
is updated and not it's dependencies, or better yet make sure to install correct version from the get go.