-
Notifications
You must be signed in to change notification settings - Fork 813
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
/tmp/pip-build-92_avjgn/mujoco-py/mujoco_py/gl/osmesashim.c:1:23: fatal error: GL/osmesa.h: No such file or directory #96
Comments
I encounter this issue, too. |
Just have the same error on Ubuntu 16.04, Python 3.5.2, laptop with GPU - GTX 1070:
|
same issue here. |
same issue |
sudo apt-get install libosmesa6-dev |
I had the same problem. Solved it by installing the last version of mesa (17.0.2) |
A potentially unorthodox conda-only solution that worked for me is:
and then update the
|
I have the same problem running it on a CentOS6 cluster. But I cannot find a .el6 rpm for latest version of mesa and the .el7(supported for CentOS7 gives error requesting for glib_2.14). |
Solved it for me on Fedora26: |
Hi everyone! How can I resolve this issue if I am working on a server and have no root access? |
Update to the previous post -------------previous------------------------------------ (temp36) zhixun@zhixun-MS-7B48:~/Downloads/mujoco-py$ sudo apt-get install libosmesa6-dev The following packages have unmet dependencies:
|
Anyone solve this problem on CentOS? |
On CentOS 7, the following worked for me to install the necessary packages without root: cd $(mktemp -d)
for url in http://mirror.centos.org/centos/7/os/x86_64/Packages/mesa-libOSMesa-18.0.5-3.el7.x86_64.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/mesa-libOSMesa-devel-18.0.5-3.el7.x86_64.rpm http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/p/patchelf-0.9-10.el7.x86_64.rpm; do
curl $url | rpm2cpio | cpio -id
done
mkdir ~/.local
cp -a usr/* ~/.local/ then adding the following lines to my export PATH="$PATH:$HOME/.local/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.local/lib:$HOME/.local/lib64"
export LDFLAGS="-L$HOME/.local/lib -L$HOME/.local/lib64"
export CPATH="$CPATH:$HOME/.local/include"
|
Installing https://pkgs.org/download/mesa-libOSMesa on CentOS worked for me. |
If you install openai's baselines, you should |
#90 |
For people who still have this problem on centos 7 without root access, it looks like the rpm links are not up-to-date anymore. We should use this: cd $(mktemp -d)
for url in http://mirror.centos.org/centos/7/os/x86_64/Packages/mesa-libOSMesa-18.3.4-5.el7.x86_64.rpm http://mirror.centos.org/centos/7/os/x86_64/Packages/mesa-libOSMesa-devel-18.3.4-5.el7.x86_64.rpm; do
curl $url | rpm2cpio | cpio -id
done
mkdir ~/.local
cp -a usr/* ~/.local/ always check the latest version of libOSMeas on https://pkgs.org/download/mesa-libOSMesa! |
Based on https://stackoverflow.com/a/52567731/11063709 and the previous comments, for CentOS without root access, the following should work without having to manually update the package URLs:
|
@RaghuSpaceRajan Hey, I had the original error and your solution worked for me in the base environment (I use Anaconda), but now when I've installed mujoco-py in another environment I get the following similar error when importing it:
Sorry for the noob question, but what do I need to add now to my .bashrc so that mujoco-py will also work in this environment? |
Hi @gfreund123 , unfortunately I don't think I have seen this error before. If it's related to your environments only, then you might want to either activate the environment in |
I follow the instructions to install MuJoCo, and got the following error:
So I tried to install with "sudo apt-get install libosmesa6-dev", and it prompts that I should install a list of dependencies, so I tried to install via "sudo apt-get install libdrm2" and it propmts an error message says
The computer is a Ubuntu 14.04, with GPU installed.
The text was updated successfully, but these errors were encountered: