-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
ImportError DLL load failed only on Windows + GDAL >= 2.2 + Python 3.6 #219
Comments
@gillins I don't have access to a Windows machine at the moment but my guess is that, based on the number of packages coming from I really wish that channel preference would always be respect, that would make debugging issues like these much easier... |
@ocefpaf I can reproduce this, but have no idea where to start debugging. Any suggestions? It is very strange it prefers not to use conda-forge |
Yeah, that sucks. I have to add
The way I debugged this was to force all packages from One guess is |
Just released (to canary yesterday, defaults Wednesday) conda 4.5.9 that includes We also need to get our metadata patching coordinated for both vc and blas. Both the PR and metadarapatching are independent solutions that tackle the same problem, not that we shouldn’t push for both. |
Thanks! I'll try to test them soon and get back to you.
As someone that does not know conda internals how hard would it be to solve from the preferred channel only, and then get the packages that do not exists on the preferred channel from the ones below? Would that be too slow? Lead to impossible solutions? If that works though the issues with Just some background of where this is coming from. I'm used to the concept of my Linux distro that has a 0-99 level of repository preference (horrible numbers, I know.), that allows me to fine tune how much I want from "latest packages" vs "repository preference." Ideally
None of those options would ensure stability, specially BTW, I do know that |
FWIW, I'm getting a similar behavior when trying to run the gdal command line tools after updating a year-old setup—a system error stating "libtiff.dll was not found" pops up. When building a pure clone of the libgdal feedstock from source, the test script loads everything from conda-forge, with vc at version 14-0 and vs2015_runtime at 14.0.25420-0. However, I've found adding "vs2015_runtime 14.*" to the pinned file in conda-meta allows a normal |
If I force I hadn't seen that issue with |
I note that the same problem (pulling in |
@ocefpaf I believe this is the root cause of conda-forge/fiona-feedstock#89 |
Running:
resulted in a broken environment and the same error the others have described above. But running:
resulted in a working environment and solved this error. Seems to be a channel-mixing problem with defaults sneaking in, unless explicitly overridden. FWIW here's my conda info:
|
Ping @kalefranz and @msarahan these are getting more and more common. A solvable env with I did not get the time to test #219 (comment) yet. As soon as I do I'll report back here. (Hard to get my hands on a Windows machine to test that.) |
Hello, I'm having a similar issue on my Windows 10 in the way that I also receive the ImportError DLL when trying to import GDAL 2.2.2 from either Spyder 3.3.0 (from Anaconda 5.1.0) or Pycharm 2018.2 (which uses conda as the interpreter). However, I can get GDAL to work from the Anaconda prompt when doing: I must note that when I installed GDAL from conda-forge and also everytime I activate GDAL, I receive the notice that the filepath 'GDAL_DRIVER_PATH=' cannot be found, but I don't know how to solve that issue. Any help would be appreciated :D |
I have observed the same issue and figured out that the culprit is the The workaround is to downgrade your vs2015_runtime to v14.x by running this command A long term solution would be to include a requirement to vs2015_runtime 14.x on gdal conda recipe (only for windows build). |
@hans-permana that is just a symptom of conda/conda#7626 and not a real solution. Once conda fixes that bug everything should be OK on Windows again. Closing this b/c it is not actionable by the team here. We need to wait for a real fix, meanwhile people have to use those workarounds. |
Issue:
After creating a fresh dedicated environment for GDAL 2.3 with Python 3.6, osgeo import is not working (only on Windows).
Downgrading to GDAL 2.1 + Python 3.6 works (using conda-forge with label broken).
Downgrading to GDAL 2.3 + Python 2.7 works.
But GDAL>=2.2 + Python 3.6 doesn't work on Windows (but works on Linux).
To reproduce (only on Windows) :
Same error as #175
I tried reinstalling conda from scratch on two different Windows machine (Win 7 and Win Server 2008 R2).
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: