Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2cb4ee

Browse files
Jonas Camillus Jeppesendstansby
Jonas Camillus Jeppesen
authored andcommitted
Improve error message for kiwisolver import error (DLL load failed) (#14316)
Quickfix to load MS VC++ redist DLLs before importing kiwisolver which otherwise fails with 'ImportError: DLL load failed'
1 parent 4cf3970 commit a2cb4ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ def compare_versions(a, b):
185185

186186

187187
def _check_versions():
188+
189+
# Quickfix to ensure Microsoft Visual C++ redistributable
190+
# DLLs are loaded before importing kiwisolver
191+
from . import ft2font
192+
188193
for modname, minver in [
189194
("cycler", "0.10"),
190195
("dateutil", "2.1"),

0 commit comments

Comments
 (0)