python 3.8
Posted: Mon Feb 17, 2020 11:21 am
I was testing OpenSim 4.1 installation and python scripting using this URL:
https://simtk-confluence.stanford.edu/d ... +in+Python
For some unknown reason, my python installation cannot load some dll although my PATH and PYTHONPATH has the above configuration. This machine is a Windows 10 64 bit and python is 3.8.1 also 64-bit. The install step has been done without any errors. What could possibly be going wrong here?
OPENSIM_HOME=C:\OpenSim 4.1
PATH=%PATH%;%OPENSIM_HOME%/bin
PYTHONPATH=%OPENSIM_HOME%\sdk\Python;%OPENSIM_HOME%\sdk\Python\opensim
Error message:
C:\Users\LCG\Documents\OpenSim\4.1\Code\Python>python3 build_simple_arm_model.py
Traceback (most recent call last):
File "build_simple_arm_model.py", line 34, in <module>
import opensim as osim
File "C:\OpenSim 4.1\sdk\Python\opensim\__init__.py", line 1, in <module>
from .simbody import *
File "C:\OpenSim 4.1\sdk\Python\opensim\simbody.py", line 18, in <module>
_simbody = swig_import_helper()
File "C:\OpenSim 4.1\sdk\Python\opensim\simbody.py", line 17, in swig_import_helper
return importlib.import_module(mname)
File "C:\Python38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed while importing _simbody: The specified module could not be found.
https://simtk-confluence.stanford.edu/d ... +in+Python
For some unknown reason, my python installation cannot load some dll although my PATH and PYTHONPATH has the above configuration. This machine is a Windows 10 64 bit and python is 3.8.1 also 64-bit. The install step has been done without any errors. What could possibly be going wrong here?
OPENSIM_HOME=C:\OpenSim 4.1
PATH=%PATH%;%OPENSIM_HOME%/bin
PYTHONPATH=%OPENSIM_HOME%\sdk\Python;%OPENSIM_HOME%\sdk\Python\opensim
Error message:
C:\Users\LCG\Documents\OpenSim\4.1\Code\Python>python3 build_simple_arm_model.py
Traceback (most recent call last):
File "build_simple_arm_model.py", line 34, in <module>
import opensim as osim
File "C:\OpenSim 4.1\sdk\Python\opensim\__init__.py", line 1, in <module>
from .simbody import *
File "C:\OpenSim 4.1\sdk\Python\opensim\simbody.py", line 18, in <module>
_simbody = swig_import_helper()
File "C:\OpenSim 4.1\sdk\Python\opensim\simbody.py", line 17, in swig_import_helper
return importlib.import_module(mname)
File "C:\Python38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed while importing _simbody: The specified module could not be found.