Our documentation is failing on PRs due to some incompatibility with the versions of numpy and numba that RTD's environment is trying to use.
An explanation:
We have numpy pinned in the relevant environment files, but RTD is a little tricky sometimes and will eager-update packages pinned in a yml file that are not also pinned in the package requirements.txt. See the following part of the build logs here:
Installing collected packages: numpy, uxarray
Attempting uninstall: numpy
Found existing installation: numpy 1.23.5
Uninstalling numpy-1.23.5:
Successfully uninstalled numpy-1.23.5
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
numba 0.56.4 requires numpy<1.24,>=1.18, but you have numpy 1.24.1 which is incompatible.
Successfully installed numpy-1.24.1 uxarray-2022.12.0
Even though we've pinned numpy for causing the exact errors we're getting in the builds, this step in the RTD build overrides the pin without the additional pin in requirements.txt.
This also means that the errors weren't easily reproducible locally, as local generation would use the environment created from the relevant yml file with the correct pinning.
Our documentation is failing on PRs due to some incompatibility with the versions of numpy and numba that RTD's environment is trying to use.
An explanation:
We have numpy pinned in the relevant environment files, but RTD is a little tricky sometimes and will eager-update packages pinned in a yml file that are not also pinned in the package
requirements.txt. See the following part of the build logs here:Even though we've pinned numpy for causing the exact errors we're getting in the builds, this step in the RTD build overrides the pin without the additional pin in
requirements.txt.This also means that the errors weren't easily reproducible locally, as local generation would use the environment created from the relevant yml file with the correct pinning.