Mujoco-py: ERROR: Could not open activation key file mjkey.txt

Created on 7 Nov 2017  路  5Comments  路  Source: openai/mujoco-py

~/.m/m/bin 禄 ./simulate ../model/humanoid.xml                             (ppo_latest) 20:45:08
MuJoCo Pro library version 1.50
ERROR: Could not open activation key file mjkey.txt

Press Enter to exit ...

~/.m/m/bin 禄 pwd                                                          (ppo_latest) 20:45:14
/Users/abhishek/.mujoco/mjpro150/bin

~/.m/m/bin 禄 ls ../../                                                    (ppo_latest) 20:45:16
__MACOSX         mjkey.txt        mjpro150         mjpro150_osx.zip

Most helpful comment

I also had this problem. I thought there must be something wrong with the README.md. I solved this problem by placing my license key at ~/.mujoco/mjpro150/bin/mjkey.txt instead of ~/.mujoco/mjkey.txt.
Hope that can help you.

All 5 comments

+1

I also had this problem. I thought there must be something wrong with the README.md. I solved this problem by placing my license key at ~/.mujoco/mjpro150/bin/mjkey.txt instead of ~/.mujoco/mjkey.txt.
Hope that can help you.

+1

Here's what worked for me: (note this is just to run ./simulate, for your custom files/code you'll have to follow a similar way )

  1. Open simulate.cpp and search for mj_activate( ) function. ( line number 1217 ).
  2. Pass the full path of your mjkey.txt. For me it was, mj_activate("/Users/sudoankit/.mujoco/mjpro150/sample/mjkey.txt");
  3. Once done, make in the same directory.
  4. Now try running ./simulate, which is in your mujoco/bin directory.
  5. A GUI window should open, drag any model from the model directory to the window.
~/.m/m/bin 禄 ./simulate ../model/humanoid.xml                             (ppo_latest) 20:45:08
MuJoCo Pro library version 1.50
ERROR: Could not open activation key file mjkey.txt

Press Enter to exit ...

~/.m/m/bin 禄 pwd                                                          (ppo_latest) 20:45:14
/Users/abhishek/.mujoco/mjpro150/bin

~/.m/m/bin 禄 ls ../../                                                    (ppo_latest) 20:45:16
__MACOSX         mjkey.txt        mjpro150         mjpro150_osx.zip

problem solved

Was this page helpful?
0 / 5 - 0 ratings