Closed foolyc closed 7 years ago
I have solved this bug:
sudo pip3 install -e .
cd mjpro150/bin
and sudo cp *.so /usr/local/lib/
, so that glfw.py can load shared libsudo python3 ./examples/simpool.py
to build the mujoco_py.cymjHi I was getting sort of similar error: https://github.com/openai/mujoco-py/issues/164. A few questions
Is there a reason to using sudo?
@machinaut @foolyc It looks like there is a bug.
To get it to work I had to comment out --add-needed
line 122 in ../lib/python3.6/site-packages/mujoco_py-1.50.1.28-py3.6.egg/mujoco_py/builder.py
Now I am getting this new error:
gonzo% python -c "import mujoco_py"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/nohome/jaan/abhishek/anaconda3/lib/python3.6/site-packages/mujoco_py-1.50.1.28-py3.6.egg/mujoco_py/__init__.py", line 1, in <module>
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/nohome/jaan/abhishek/anaconda3/lib/python3.6/site-packages/mujoco_py-1.50.1.28-py3.6.egg/mujoco_py/builder.py", line 439, in <module>
cymj = load_cython_ext(mjpro_path)
File "/nohome/jaan/abhishek/anaconda3/lib/python3.6/site-packages/mujoco_py-1.50.1.28-py3.6.egg/mujoco_py/builder.py", line 81, in load_cython_ext
return load_dynamic_ext('cymj', cext_so_path)
File "/nohome/jaan/abhishek/anaconda3/lib/python3.6/site-packages/mujoco_py-1.50.1.28-py3.6.egg/mujoco_py/builder.py", line 87, in load_dynamic_ext
return loader.load_module()
ImportError: /nohome/jaan/.mujoco/mjpro150/bin/libglewegl.so: undefined symbol: eglGetProcAddress
I also encountered this on Ubuntu 16.04 with GPU. Fixed by installed patchelf 0.9+ from a PPA:
sudo add-apt-repository ppa:jamesh/snap-support
sudo apt-get update
sudo apt install patchelf
If using anaconda virtual environment, then this one line does the job
conda install -c anaconda patchelf
For me it was enough to execute:
conda install patchelf
FOR CONDA-ONLY user 1: conda install -c menpo osmesa 2: install patchelf from source or conda install patchelf if install from source, we should update the $PATH variable
I also encountered this on Ubuntu 16.04 with GPU. Fixed by installed patchelf 0.9+ from a PPA:
sudo add-apt-repository ppa:jamesh/snap-support sudo apt-get update sudo apt install patchelf
Not all hero's wear capes
My problem was that my version of patchelf was 8.4. It was the default version in Ubuntu 16.04 repo. You should down 0.9 version and install https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.gz. Source: http://zktang.farbox.com/post/install-mujoco-py
I did not need to add the other repository, I was able to get it just using
sudo apt install patchelf
thanks
I did not need to add the other repository, I was able to get it just using
sudo apt install patchelf
thanks
This worked for me on Ubuntu 18.04 with a GPU. FYI it installed 0.9-1, not the latest 0.10
patchelf/bionic,now 0.9-1 amd64
I did not need to add the other repository, I was able to get it just using
sudo apt install patchelf
thanksThis worked for me on Ubuntu 18.04 with a GPU. FYI it installed 0.9-1, not the latest 0.10
patchelf/bionic,now 0.9-1 amd64
thanks,are also interest in RL? Can I be friends with you? so that we can talk about together and move on ?
this line do the job
sudo apt install patchelf
I did not need to add the other repository, I was able to get it just using
sudo apt install patchelf
thanks
This worked for me. Thank you.
Similar to the conda install solutions, I was able to solve this using pip in my conda environment:
pip install patchelf
sudo pip3 install -e .
then
sudo ./examples/simpool.py
, it comes withAny one