Steps to reproduce:
- Install OpenSim 4.0.Beta to "C:\Program Files\OpenSim 4.0.Beta"
- Navigate to "C:\Program Files\OpenSim 4.0.Beta\sdk\python"
- Run "python setup.py install" (from a shell with elevated permissions since OpenSim was installed to C:\Program Files)
- Run "python" and then "import opensim". This leads to the error message below.
(The last part of the last line is German and reads "The specified module could not be found".)Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import opensim
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\tools\miniconda3\lib\site-packages\opensim-4.0-py3.6.egg\opensim\__init__.py", line 1, in <module>
from .simbody import *
File "C:\tools\miniconda3\lib\site-packages\opensim-4.0-py3.6.egg\opensim\simbody.py", line 18, in <module>
_simbody = swig_import_helper()
File "C:\tools\miniconda3\lib\site-packages\opensim-4.0-py3.6.egg\opensim\simbody.py", line 17, in swig_import_helper
return importlib.import_module(mname)
File "C:\tools\miniconda3\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
In step 4, before running Python, I also tried adding the following paths to PATH (in PowerShell) to no avail:
Code: Select all
$env:PATH += "C:\Program Files\OpenSim 4.0.Beta\bin;"
$env:PATH += "C:\Program Files\OpenSim 4.0.Beta\sdk\Simbody\bin;"
- Windows 10 64 bit
- OpenSim 4.0.Beta 64 bit (the same issue happens if I manually compile OpenSim-core from GitHub with the source as of today)
- python == Python 3.6.5, 64 bit, from Miniconda 64