Skip to content
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 load failed #164

Closed
peter-pazak opened this issue Apr 17, 2021 · 8 comments · Fixed by #165
Closed

DLL load failed #164

peter-pazak opened this issue Apr 17, 2021 · 8 comments · Fixed by #165
Assignees
Labels
bug Something isn't working CI/CD Installation Problems during the installation of GSTools.
Milestone

Comments

@peter-pazak
Copy link

Hi,

I installed gstools via
pip install gstools
it installed from gstools-1.3.0-cp36-cp36m-win_amd64.whl
but when I do
import gstools
it ends with
from gstools.variogram.estimator import (
ImportError: DLL load failed: The specified module could not be found.
went back to gstools 1.2.1 and all workds fine

Thank you
Peter

@MuellerSeb
Copy link
Member

Hey there,
sorry for the inconvenience! Will have a look at this!
Sebastian

@MuellerSeb
Copy link
Member

I guess this is a problem with numpy and a binary incompatibility.
Could you try:

pip install -I gstools

and try again?

@MuellerSeb
Copy link
Member

@MuellerSeb
Copy link
Member

MuellerSeb commented Apr 17, 2021

@peter-pazak what is your current numpy version? Upgrading numpy could solve the issue.
Edit: and some more information: what python distribution are you working on exactly?

@MuellerSeb MuellerSeb added this to the 1.3.1 milestone Apr 18, 2021
@MuellerSeb MuellerSeb self-assigned this Apr 18, 2021
@MuellerSeb MuellerSeb added bug Something isn't working CI/CD Installation Problems during the installation of GSTools. labels Apr 18, 2021
@peter-pazak
Copy link
Author

Hi, sorry - I forgot to mention, this will probably be exactly the problem.
I am adding gstools to openquake, so my numpy is this one:
numpy @ https://wheelhouse.openquake.org/v2/windows/py36/numpy-1.18.2-cp36-cp36m-win_amd64.whl
Thank you very much for looking into this..
Peter

@peter-pazak
Copy link
Author

Right, when I did
pip install -I gstools
it installed newer numpy and scipy, but pip complain these are incompatible

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.
openquake-engine 3.11.3 requires numpy<1.19,>=1.16, but you have numpy 1.19.5 which is incompatible.
openquake-engine 3.11.3 requires scipy<1.5,>=1.3, but you have scipy 1.5.4 which is incompatible.

@MuellerSeb
Copy link
Member

If you don't require to run openquake-engine together with gstools you could think about a separate environment to solve this dependency war: https://virtualenv.pypa.io/en/latest/

But nevertheless we should provide compatibility with earlier versions of numpy which should be solved by #165

@peter-pazak
Copy link
Author

peter-pazak commented Apr 18, 2021

Thank you very much, just wanted to know what caused the problem. Installing few days earlier worked fine, then suddenly on other machine yesterday didn't, then I realized there was version change, so wanted to let you know, just in case...
I am indeed using the very useful gstools package together with/inside openquake, so at the moment I am fine even with gstools 1.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI/CD Installation Problems during the installation of GSTools.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants