stanfordnmbl / osim-rl

Reinforcement learning environments with musculoskeletal models
http://osim-rl.stanford.edu/
MIT License
894 stars 249 forks source link

Installation Issues - No module named 'osim' #170

Closed nicos1993 closed 6 years ago

nicos1993 commented 6 years ago

Hi all,

I am currently experiencing some difficulties with the 'installation' I believe. Myself and another colleague have both followed the installation guidelines on our own laptops (both Windows 10), he seems to be able to get the introductory code to run as expected:

from osim.env import ProstheticsEnv

env = ProstheticsEnv(visualize=True)
observation = env.reset()
for i in range(200):
    observation, reward, done, info = env.step(env.action_space.sample())_

I on the other hand receive the following error message:

_ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-552dc0e04ec1> in <module>()
----> 1 from osim.env import ProstheticsEnv
      2 
      3 env = ProstheticsEnv(visualize=True)
      4 observation = env.reset()
      5 for i in range(200):

ModuleNotFoundError: No module named 'osim'_

Does anyone have any suggestions for overcoming this problem?

Thanks

Nicos Haralabidis

Poddiachyi commented 6 years ago

Had the same issue. I deleted conda environment and installed everything again. Worked for me.

Don't forget that you need to activate the environment at first. source activate opensim-rl And only then start working.