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 while importing _cext #173

Closed
ClimberMel opened this issue Nov 20, 2023 · 2 comments
Closed

DLL load failed while importing _cext #173

ClimberMel opened this issue Nov 20, 2023 · 2 comments

Comments

@ClimberMel
Copy link

The original problem was when I tried to use matplotlib. I traced it to an error caused with kiwisolver.
It is on a Windows 10 machine. I have tried various versions of python from 3.9 to 3.11.3
Here is the traceback provided when trying to import kiwisolver
\Lib\site-packages\kiwisolver_init_.py", line 8, in
from ._cext import (
ImportError: DLL load failed while importing _cext: The specified module could not be found.

Which DLL is it trying to load and from where?

@MatthieuDartiailh
Copy link
Member

MatthieuDartiailh commented Nov 20, 2023

Kiwi is written in C++ and requires microsoft visual c++ redistributable (VCRUNTIME_140).

There is no clean way to specify this for a Python wheel sadly.

@ClimberMel
Copy link
Author

Thanks, VCRUNTIME_140.dll was the clue I needed. I had to install VC_redist.x64.exe, but now it seems to have fixed that issue.

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