Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'mujoco_py' has no attribute 'load_model_from_path' #261

Open
hangwudy opened this issue May 31, 2018 · 7 comments
Open

module 'mujoco_py' has no attribute 'load_model_from_path' #261

hangwudy opened this issue May 31, 2018 · 7 comments

Comments

@hangwudy
Copy link

Hello everyone,
have you ever met the problem " module 'mujoco_py' has no attribute 'load_model_from_path' ".
When I installed the MuJoCo 131, mujoco_py 0.5.7 and gym and tried to test the installation,

$ python3
import mujoco_py
from os.path import dirname
model = mujoco_py.load_model_from_path(dirname(dirname(mujoco_py.__file__))  +"/xmls/claw.xml")
sim = mujoco_py.MjSim(model)

I got the prompt:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'mujoco_py' has no attribute 'load_model_from_path'

My python version is 3.5.5.
How can I solve the problem? Thanks!

@dineshresearch
Copy link

same problem

@IcarusWizard
Copy link

Hi guys, I think our problem can be solved with install gym 0.9.1.
See #244

@LiDuan1111
Copy link

@IcarusWizard I have the same problem,and I have changed the version of gym to 0.9.1,but the problem is still here....

@LiDuan1111
Copy link

I found that the following configuration can make it work:
mujoco:131
mujoco_py:0.5.7
tensorflow:1.5.0
gym:0.9.1
python3.6
but you may need to use the order version of environment models in mujoco platform.
(eg. you have to use 'InvertedPendulum-v1' in stead of the higher version'InvertedPendulum-v2')
Good luck~

@jp18813100494
Copy link

It works when I install gym==0.9.1!But some problems occur that some gym environments are not in use.

@machinaut
Copy link
Contributor

@hangwudy i think the issue you have is that mujoco-py is out of date.

Do you get the same error with the latest mujoco-py?

@HareshKarnan
Copy link

installing gym 0.9.1 fixes this issue

python -m pip install gym==0.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants