google-deepmind / dm_control

Google DeepMind's software stack for physics-based simulation and Reinforcement Learning environments, using MuJoCo.
Apache License 2.0
3.81k stars 668 forks source link

Path issues with Mujoco #303

Closed aaravnavani closed 2 years ago

aaravnavani commented 2 years ago

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 commented 2 years ago

Hm, I ran that command and it just gave me multiple lines of "Requirement already satisfied". I did try to do pip install --upgrade dm_control=1.0.2 and for some reason, it gave me this error: ERROR: Could not find a version that satisfies the requirement dm_control==1.0.2 (from versions: 0.0.286587932, 0.0.286955599, 0.0.288398964, 0.0.288483845, 0.0.295778102, 0.0.300771433, 0.0.312466143, 0.0.318037100, 0.0.318066097, 0.0.319497192) ERROR: No matching distribution found for dm_control==1.0.2

I believe I may have an older dm_control installed, but not sure why its not able to install 1.0.2

On Tue, May 17, 2022 at 2:11 PM Kevin Zakka @.***> wrote:

You probably installed a cached version. Try:

pip install --upgrade dm_control

and double check it installed version 1.0.2 https://github.com/deepmind/dm_control/blob/main/setup.py#L176.

— Reply to this email directly, view it on GitHub https://github.com/deepmind/dm_control/issues/303#issuecomment-1129321707, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFBZBZRYW6RHANFMZPSE5DVKQDR3ANCNFSM5WDX3FUA . You are receiving this because you authored the thread.Message ID: @.***>

kevinzakka commented 2 years ago

@oofmeister27 what OS are you using?

aaravnavani commented 2 years ago

@kevinzakka I am using Ubuntu 22.04

saran-t commented 2 years ago

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

saran-t commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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

saran-t commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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