nucleic / kiwi

Efficient C++ implementation of the Cassowary constraint solving algorithm
https://kiwisolver.readthedocs.io/en/latest/
Other
679 stars 88 forks source link

DLL load failed while importing _cext #173

Closed ClimberMel closed 10 months ago

ClimberMel commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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.