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

ImportError: DLL load failed while importing qhull: The specified module could not be found. #31

Closed
hossam-houssien opened this issue Jan 19, 2022 · 3 comments

Comments

@hossam-houssien
Copy link

env

  • Python 3.9.2
  • OS : Windows 10 1903 build 18362.329
  • hatch-0.1.0.0
  • matplotlib-3.4.2
  • numpy-1.20.3
  • pandas-1.2.4
  • scikit-learn-0.24.2
  • seaborn-0.11.2

issue

  • got the following error when run hatch --help
    Traceback (most recent call last):
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\runpy.py", line 197, in run_module_as_main
    return run_code(code, main_globals, None,
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\runpy.py", line 87, in run_code
    exec(code, run_globals)
    File "D:\hossam\bin\python\WPy64-3920\python-3.9.2.amd64\Scripts\hatch.exe_main
    .py", line 4, in
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\hatch\hatch.py", line 19, in
    import hatch.plot
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\hatch\plot.py", line 13, in
    import seaborn as sns
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\seaborn_init
    .py", line 2, in
    from .rcmod import * # noqa: F401,F403
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\seaborn\rcmod.py", line 7, in
    from . import palettes
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\seaborn\palettes.py", line 9, in
    from .utils import desaturate, get_color_cycle
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\seaborn\utils.py", line 10, in
    from scipy import stats
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\scipy\stats_init.py", line 391, in
    from .stats import *
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\scipy\stats\stats.py", line 174, in
    from scipy.spatial.distance import cdist
    File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\scipy\spatial_init_.py", line 98, in
    from .qhull import *
    ImportError: DLL load failed while importing qhull: The specified module could not be found.
@bjpop
Copy link
Owner

bjpop commented Jan 19, 2022

Thanks @hossam-houssien for the report.

I don't have access to a Windows machine to test this.

However, based on the error it looks like it might be related to a problem with installing scipy on Windows, see for example:

https://stackoverflow.com/questions/34253458/installing-scipy-package-in-windows

There are a few suggested solutions mentioned in stackoverflow that might help. Would you mind checking if any of those help you fix the problem?

Searching for the error also pointed to a number of GitHub issues for Python software on Windows that depends on scipy. Seems like it might be a common problem.

@hossam-houssien
Copy link
Author

issue fixed by

  • uninstall scipy and numpy
  • re-install scipy==1.6.1 and numpy==1.20.3

@bjpop
Copy link
Owner

bjpop commented Jan 26, 2022

Great, thanks @hossam-houssien. I'm glad you have solved the problem. Thanks for reporting the solution. I will close this now.

@bjpop bjpop closed this as completed Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants