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

Suddenly can't activate mujoco #20

Open
sash-a opened this issue Aug 14, 2021 · 3 comments
Open

Suddenly can't activate mujoco #20

sash-a opened this issue Aug 14, 2021 · 3 comments

Comments

@sash-a
Copy link

sash-a commented Aug 14, 2021

I was working on a project and suddenly after I restarted my PC I am unable to activate mujoco through julia, however I can run mujoco-py perfectly fine and ./simulate works fine, so I'm wondering if you can help me with the issue I'm having with this package? (I have tried multiple restarts after this popped up)

The warning I get:

┌ Warning: 
│     No key found. Please set the env variable MUJOCO_KEY_PATH to point to a valid `mjkey` file.
│     Alternatively, use `mj_activate(path_to_mjkey.txt)` to manually activate.
└ @ MuJoCo.MJCore ~/.julia/packages/MuJoCo/gihZP/src/MJCore/MJCore.jl:63

However:

$ echo $MUJOCO_KEY_PATH                                
~/.mujoco/mjpro150/mjkey.txt
$ cat $MUJOCO_KEY_PATH   
MuJoCo Pro Individual license activation key, number 7705, type 6.

Issued to Everyone.

Expires October 31, 2021.
...

Also running mj_activate("~/.mujoco/mjpro150/mjkey.txt") instantly kills the repl and shows this MuJoCoException(Could not open activation key file ~/.mujoco/mjpro150/mjkey.txt). I have checked and all permissions are available on the file.

Running Ubuntu 21.04

@yj-Tang
Copy link

yj-Tang commented Nov 7, 2023

Hi @sash-a, I met with the same problem. Have you found the solution?

@sash-a
Copy link
Author

sash-a commented Nov 7, 2023

Been ages since I used this package. I would honestly just access mujoco through pycall, seems the most stable and it's how reinforcementlearning.jl does it

@yj-Tang
Copy link

yj-Tang commented Nov 7, 2023

Make sense. Thanks for the reply!

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

2 participants