Closed as not planned
Description
Bug summary
Hi, I use another package (opensim), which has lots of dll and exe files, along with matplotlib. It seems that matplotlib is broking something at import.
Actual outcome
If I import matplotlib first, I receive this error:
In [1]: import matplotlib
In [2]: import opensim
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-d100d6ac66f2> in ?()
----> 1 import opensim
F:\Python312\Lib\site-packages\opensim\__init__.py in ?()
16 # if (os.path.exists(dev_path)):
17 # os.add_dll_directory(dev_path)
18
19 from .simbody import *
---> 20 from .common import *
21 from .simulation import *
22 from .actuators import *
23 from .analyses import *
F:\Python312\Lib\site-packages\opensim\common.py in ?()
6
7 from sys import version_info as _swig_python_version_info
8 # Import the low-level C/C++ module
9 if __package__ or "." in __name__:
---> 10 from . import _common
11 else:
12 import _common
13
ImportError: DLL load failed while importing _common: A dynamic link library (DLL) initialization routine failed.
Expected outcome
If I import opensim, followed by matplotlib, everything works well:
In [1]: import opensim
In [2]: import matplotlib
In [3]:
Operating system
Windows 11
Matplotlib Version
3.9.2
Python version
3.12.7
Installation
pip
Metadata
Metadata
Assignees
Labels
No labels