-
Notifications
You must be signed in to change notification settings - Fork 203
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
DLL resolution in Python 3.8 on Windows has changed #851
Comments
I'm seeing this in Python 3.6.8 as well. |
@achapkowski I'm not sure that you observe the same issue, as 1) this is related to changes in Python 3.8 and 2) python 3.6 seems not to be the problem in the CI: https://ci.appveyor.com/project/sgillies/fiona/branch/master The error message "ImportError: DLL load failed while importing ogrext: The specified module could not be found." is normally a general indication that there are problems with the gdal installation. E.g. fiona is not built for the installed gdal, or the gdal dlls are in the wrong place etc. |
@rbuffat it's the same error message, i downgraded Fiona to 1.7.x and it works. |
@achapkowski - were you seeing this (with Python 3.6.8) in either ipython or a jupyter notebook? @rbuffat , @snorfalorpagus - do the tests cover imports from ipython? |
Yes I saw it in jupyter |
I'm getting similar issue here using gdal:
I don't understand what is the solution for this. could you elaborate |
If you encounter an error message of the form of @gtmaskall @achapkowski If you use conda, you should create an issue with the corresponding issue tracker, as this error message is most likely related to the environment and not Fiona itself (not excluding that there might be a bug within Fiona, but it is more likely that it is not).
@BC14w I assume you are using the GDAL Python library. This python library is unrelated to Fiona. If this is the case, please consult GDAL's issue tracker: |
(@gtmaskall Good details in your SO post!) PyPl currently doesn't have a binary installer in Windows for fiona, which is noted within its installation notes. |
I found the same problem when I tried to "import fiona" in Jupyter Notebook. As a matter of fact, I had no problem importing in Jupyter Notebook when I had configured the environment at the beginning. However, when I tried to use it again a few days later, the same error occurred. And I found, the import outside of Jupyter Notebook is correct. I support the problem is not related to fiona itself. |
I tried removing the kernel which include fiona, and installed it in Jupyter Notebook again. |
The resolution of DLLs has changed in Python 3.8 for Windows.
As a result the Appveyor job for 3.8 is failing:
https://ci.appveyor.com/project/sgillies/fiona/branch/master/job/5e9p53tga9ono4j3
I'm not sure what the correct thing to do here is. For wheels on Windows it's easy to call
add_dll_directory
with the correct path. But I'm not sure what to do for users not using a wheel - how could we know which path to add? I'd be interested to see how other libraries have handled this.The text was updated successfully, but these errors were encountered: