-
Notifications
You must be signed in to change notification settings - Fork 818
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
LD_LIBRARY_PATH Error #267
Comments
same question |
me too, i have add the true path of
|
Did you guys run python with sudo? If this is true, sudo will change your current user settings to root settings, including environment variables. |
I did that and it did not change the error. Any other suggestions? |
What I meant was that you should not use sudo. os.environ.get("LD_LIBRARY_PATH", "") You may run this code elsewhere to see if it gives you the correct LD_LIBRARY_PATH. What I found is the following, |
Same issue... someone for the rescue ? |
same issue, anyone who found the fix? |
So here is something that worked for me:
|
It's still not working for me. Anybody have another idea? |
I solve it by installing mujoco_py without using sudo, try this: |
I have got the same problem when I did "import mujoco_py" in pycharm. I solved this problem by reinstall my Pycharm on linux. |
same question, no solution yet. |
Here's an example dockerfile installing mujoco-py and gym on ubuntu 18.04 https://gist.github.com/machinaut/b5a7c6719a30e9fbfd95c13d5e963b61 Without more information I don't know how to help with this error. The python process you import mujoco-py in needs to have the environment variable (LD_LIBRARY_PATH) set to include the folder with the mujoco binaries. In order to avoid crashes with difficult-to-understand bugs, we explicitly check for it before importing, and then print a warning with instructions useful to beginner users on how to fix it. |
same problem, but I solve it by opening IDE(Pycharm) in terminal. But I still have error by opening my IDE with icon on desktop -------------After 10 minutes-------------- |
This issue has a bunch of different concerns, many from old versions. Closing for now. If you see this error, please open a new issue! We now have a template that helps us get the information we need! Thanks, |
Same issue here using spyder, and I solved it by opening it through Terminal. |
I solve this issue, by adding "source ~/.bashrc" to ".profile" |
you should check your ~/.bashrc export LD_LIBRARY_PATH= /path/to/.mujoco/mjpro150/bin${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} and "source ~/.bashrc"
you should check if it can run successfully on terminal at first. click Run -> Edit Configurations -> Environment Variables Add LD_LIBRARY_PATH /path/to/.mujoco/mjpro150/bin |
@hzm2016 > I solve this issue, by adding "source ~/.bashrc" to ".profile" how ? what do you mean to |
SpinningUp Installation Handbook: From https://spinningup.openai.com/en/latest/user/installation.html Create conda env and activate Install OpenMPI Install Spinning Up Check Your Install Installing MuJoCo Obtain License from https://www.roboti.us/license.html For Aug-Oct 2021, there is free Activation Key (mkjey.txt) available on the above mentioned link. If you don’t get a free activation, then first you need to register for a Free Trial (30-days) or a Student License (1-year). You will receive an Account Number in the email. Go to https://www.roboti.us/license.html and generate a Computer ID by downloading getid executable pertaining to your OS (Win32, Win64, Linux, OSX). Change the permissions for getid_linux.exe and run it to generate the Computer ID. Enter the Account Number and Computer ID on the same page and hit “Register Computer”. You should get an activation key (mjkey.txt) in your email. Important: SpinningUp requires Mujoco 1.5 and not 2.0. SpinningUp Instructions asks you to go to https://github.com/openai/mujoco-py to follow instructions, which in turn ask to install the latest 2.0. Here is what you do instead: Download the zip mjpro150_linux.zip from https://www.roboti.us/index.html Unzip/Extract this folder to home/username/.mujoco using Place the mjkey.txt in the top level folder called .mujoco Now, run The following is based on: In order to solve above, open the bashrc file by Copy the following line to the end while replacing {user} with your linux login username. Run on the Terminal the following line to update bashrc Now, try to run If you get an error about patchelf, do the following to install patchelf: Try again If the packages are installed successfully without any error, then you are good to proceed. Run the Mujoco test from Spinning Up by If the test runs fine and gets completed, try running the video. If the video does not pop up, and gives a GLEW error, then do the following: sudo apt-get update -y Now run the Mujoco test again and you should see a Walker. |
Hello,
I repeatedly get the following error installing Mujoco on Ubuntu 18.04 LTS (Bionic Beaver):
Please add following line to .bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/shubhom/.mujoco/mjpro150/bin
however, my .bashrc file is updated with that and i f I echo $LD_LIBRARY_PATH I receive
:/home/shubhom/.mujoco/mjpro150/bin
The text was updated successfully, but these errors were encountered: