-
Notifications
You must be signed in to change notification settings - Fork 207
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add all directories configured in PATH with Windows and Python 3.9 #1081
Comments
The wheels https://www.lfd.uci.edu/~gohlke/pythonlibs/ are not created by the Fiona project. It would be best to get in contact with the author of these wheels for packaging-related issues. Afaik they contain a patch to load GDAL from osgeo (In fiona/init.py of the wheels):
|
@rbuffat I know that it's a specific case, but I think that having a generic way to load the DLLs from PATH could be beneficial to similar generic cases, without hurting Fiona. The custom patch inside the wheel fails silently because the wheel doesn't install |
@giohappy What use case do you have in mind? There are two binary wheels provider for Windows. Gohlke and conda-forge. Both have their own mechanism to load the GDAL dlls. The code in _loading.py is mainly used in the Windows CI. If somebody compiles Fiona on Windows on its own they can place the dlls in the libs folder. |
@rbuffat my code wasn't meant to be adopted as it is. Take the Considering that |
@giohappy thank you for the report. I'm sorry, but to keep things simple we're not going to add DLL directories except the ones in the fiona wheels. |
Expected behavior and actual behavior.
As a solution for #851 Fiona uses add_gdal_dll_directories to add the DLL directories from
./libs
.This doesn't work for wheels like these. In cases like this, the
./libs
folder is not bundled and the GDAL binaries are bundled inside another wheel.I wonder if this logic could be extended to add all the directories configured within the
PATH
env var, also considering that the libs folder is also automatically added to thePATH
here.With the following lines I was able to load fiona without errors:
Operating system
Windows 10
Fiona and GDAL version and provenance
GDAL‑3.4.1‑cp39‑cp39‑win_amd64.whl
Fiona‑1.8.21‑cp39‑cp39‑win_amd64.whl
obtained from https://www.lfd.uci.edu/~gohlke/pythonlibs/
The text was updated successfully, but these errors were encountered: