has2k1 / scikit-misc

Miscellaneous tools for data analysis and scientific computing
https://has2k1.github.io/scikit-misc/stable
BSD 3-Clause "New" or "Revised" License
37 stars 9 forks source link

ImportError: DLL load failed #4

Closed AndreKkl closed 1 year ago

AndreKkl commented 6 years ago

Hi, I'm on windows and using a pipenv environment. The installation with pipenv install was successful and everythink is located in the X:\Users\XYZ.virtualenvs\meret-LhVWc3ru\Lib\site-packages\skmisc\loess However, an error occured and i have no idea how to solve it:

File "X:\Users\XYZ\.virtualenvs\meret-LhVWc3ru\lib\site-packages\skmisc\loess\__init__.py", line 51, in <module>
    from ._loess import (loess, loess_model, loess_inputs, loess_control,
ImportError: DLL load failed: The specified module could not be found.

I tried to include the location "site-packages\skmisc\loess_loess.cp36-win_amd64.pyd" to the windows path variable but no success. Why is this file not found by python?

Fraser-Paine commented 6 years ago

Having the same issue on a VM but not on my local machine. Any solution to this yet?

has2k1 commented 6 years ago

Do other libraries like scipy, sklearn work?

Fraser-Paine commented 6 years ago

Yes, sklearn definitely works, haven't had a reason to use scipy yet but I could test it. Does this package require a VS C++ runtime to run? I haven't set one up in the Azure function environment but I do have it in the other envs which work. I've also tried installing from a .whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-misc as I thought that might help but there was no change.

cgohlke commented 6 years ago

The wheels from https://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-misc require numpy+mkl.

has2k1 commented 6 years ago

@Fraser-Paine

I've also tried installing from a .whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-misc as I thought that might help but there was no change.

Those are the same type of wheels that are on pypi. Can you try installing numpy+mkl before any other packages.

Fraser-Paine commented 6 years ago

This totally fixed the issue for me. Thank you very much!

has2k1 commented 1 year ago

Closing since the way the package is built has changed and binary wheels will be available for windows.