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

Path issues with Mujoco #303

Closed
aaravnavani opened this issue May 17, 2022 · 11 comments
Closed

Path issues with Mujoco #303

aaravnavani opened this issue May 17, 2022 · 11 comments

Comments

@aaravnavani
Copy link

I installed dm_control using pip and I was attempting to try it out with this repository. When I ran this command: python3 dreamerv2/train.py --logdir ~/logdir/dmc_walker_walk/dreamerv2/1 \ --configs dmc_vision --task dmc_walker_walk

I get this error: OSError: Cannot find MuJoCo library at /home/*home folder*/.mujoco/mujoco200/bin/libmujoco200.dylib.

I found this issue and tried following the steps outlined in this post, but for some reason I still get that same error.

Would appreciate if anyone could take a look at let me know what the issue is.

@aaravnavani
Copy link
Author

aaravnavani commented May 18, 2022 via email

@kevinzakka
Copy link
Contributor

@oofmeister27 what OS are you using?

@aaravnavani
Copy link
Author

@kevinzakka I am using Ubuntu 22.04

@saran-t
Copy link
Member

saran-t commented May 18, 2022

You may be able to get more useful debugging info by running pip install -vv --no-deps dm_control==1.0.2

@saran-t
Copy link
Member

saran-t commented May 18, 2022

Wait, are you using Python 2.7? Looks like the last version that your pip found (0.0.319497192) corresponds to the last version on PyPI with Python 2 support.

We no longer support Python 2.

@aaravnavani
Copy link
Author

@saran-t I am using python 3.10.4.

@saran-t @kevinzakka I ran this command pip install -vv --no-deps dm_control==1.0.2 as you suggested and here's the output (its pretty long): https://pastebin.com/aumJaAwh

From what I see, I think it is something to do with the python version since its not able to find dm_control 1.0.2. However, if I run python3 --version it does return 3.10.4 so I'm not sure what's wrong.

@saran-t
Copy link
Member

saran-t commented May 18, 2022

@oofmeister27 Thanks for the paste, I can see the problem now. Could you please try pip install --upgrade --ignore-requires-python dm_control==1.0.2 ?

This appears to be a bug in our setup.py which requires python<=3.10.

Since you're running 3.10.4 this fails the requirement. We'll need to bump the required version, but for now hopefully the flag suggested above will unblock you.

@aaravnavani
Copy link
Author

@saran-t Hm, I ran that command and got this error: https://pastebin.com/ZX4CvUkp

@saran-t
Copy link
Member

saran-t commented May 19, 2022

labmaze (which is one of dm_control's dependencies) currently does not ship a prebuilt wheel for 3.10.

If you install Bazel your install should succeed. Alternatively, I will look into pushing out labmaze wheels for 3.10, but I can't promise any specific timeframe at the moment, unfortunately.

@saran-t
Copy link
Member

saran-t commented May 19, 2022

I've just uploaded labmaze wheels for Python 3.10. If you try pip install --upgrade --ignore-requires-python dm_control==1.0.2 it should hopefully just work.

@aaravnavani
Copy link
Author

Thanks, I got it to work now. @saran-t @kevinzakka

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

3 participants