New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
gdal: Wrap executables in environment containing numpy #285391
Conversation
I confirm, I can reproduce the problem. |
I am wondering how gdal2tiles tests are passing if we are missing some dependency. |
We are adding packages on
Content of that
|
Would you please avoid starting change description with capital letter ( change Thank you very much for your contribution. |
12506e6
to
276a1fd
Compare
@imincik I have updated with your suggested changes, but for the record I find this style of nitpicking review very annoying and I think maintainers should be more lenient when accepting patches from casual contributors. |
I very much appreciate your contribution. I am not happy with nitpicking either and I think this was the most I ever made. Sorry again. I hope we can have some automatic linter doing it for use automatically. |
Result of 9 packages marked as broken and skipped:
3 packages failed to build:
77 packages built:
|
Since gdal 3.8.1 there is a numpy dependency on the python library it seems. This resulted in broken python scrips such as gdal2tiles.py ``` [nix-shell:~/map-scraper/shake-rg]$ gdal2tiles.py --help ModuleNotFoundError: No module named 'numpy' ``` Therefore it's important to wrap the executables in an environment which contains numpy.
276a1fd
to
76fd69c
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/week-in-geospatial-team/37035/8 |
Since gdal 3.8.1 there is a numpy dependency on the python library it seems. This resulted in broken python scrips such as gdal2tiles.py
Therefore it's important to wrap the executables in an environment which contains numpy.
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 馃憤 reaction to pull requests you find important.