Rencently I'm trying to learn to use OpenSim through Python, and choose the NIPS2018 competition 'AI for Prosthetics' to start. I follow the official instructions to install some packages as follow:
Code: Select all
conda create -n opensim-rl -c kidzik opensim python=3.6.1
source activate opensim-rl
conda install -c conda-forge lapack git
pip install git+https://github.com/stanfordnmbl/osim-rl.git
When I import osim, every thing works fine as in Anaconda Prompt and Spyder:
Code: Select all
>>> import osim
>>>
Code: Select all
>>> import osim.env
Traceback (most recent call last):
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\opensim\simbody.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "E:\Anaconda3\envs\opensim-rl\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 648, in _load_unlocked
File "<frozen importlib._bootstrap>", line 560, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
ImportError: DLL load failed: the specific module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\osim\env\__init__.py", line 3, in <module>
from .osim import *
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\osim\env\osim.py", line 6, in <module>
import opensim
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\opensim\__init__.py", line 1, in <module>
from .simbody import *
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\opensim\simbody.py", line 17, in <module>
_simbody = swig_import_helper()
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\opensim\simbody.py", line 16, in swig_import_helper
return importlib.import_module('_simbody')
File "E:\Anaconda3\envs\opensim-rl\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_simbody'
Code: Select all
>>> import opensim
Traceback (most recent call last):
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\opensim\simbody.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "E:\Anaconda3\envs\opensim-rl\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 648, in _load_unlocked
File "<frozen importlib._bootstrap>", line 560, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
ImportError: DLL load failed: the specific module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\opensim\__init__.py", line 1, in <module>
from .simbody import *
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\opensim\simbody.py", line 17, in <module>
_simbody = swig_import_helper()
File "E:\Anaconda3\envs\opensim-rl\lib\site-packages\opensim\simbody.py", line 16, in swig_import_helper
return importlib.import_module('_simbody')
File "E:\Anaconda3\envs\opensim-rl\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_simbody'
Thanks,
Zurenarrh