habitat-sim
habitat-sim copied to clipboard
ImportError: /lib/x86_64-linux-gnu/libOpenGL.so.0: undefined symbol: _glapi_tls_Current
❓ Questions and Help
Hello all; I was getting following error while running : python setup.py install --headless
-- Could NOT find EGL (missing: EGL_INCLUDE_DIR) CMake Error at deps/magnum/src/Magnum/Platform/CMakeLists.txt:796 (message): EGL library, required by some contexts, was not found. Set WITH_*APPLICATION and/or WITH_EGLCONTEXT to OFF to skip building them. -- Configuring incomplete, errors occurred!
Then I tried solution given in: https://github.com/facebookresearch/habitat-sim/issues/256 Hence, installed libgl1-mesa-dev and libegl1-mesa-dev sudo apt-get install libgl1-mesa-dev sudo apt-get install libegl1-mesa-dev
Now, I got following error while running python examples/example.py:
(habitat1) hemnani1@boss8:~/DIR1/habitat-lab$ python examples/example.py
2020-12-12 18:49:48,396 Initializing dataset PointNav-v1
Traceback (most recent call last):
File "examples/example.py", line 28, in
Can anyone please help me resolve this error.
Hi @KenaHemnani I had the same problem. In my case, I was configuring the server from scratch (to run the habitat).
STEPS TO REPRODUCE: I installed the nvidia-driver and cuda first. Then I installed the habitat dependencies listed here by running:
sudo apt-get update || true
# These are fairly ubiquitous packages and your system likely has them already,
# but if not, let's get the essentials for EGL support:
sudo apt-get install -y --no-install-recommends \
libjpeg-dev libglm-dev libgl1-mesa-glx libegl1-mesa-dev mesa-utils xorg-dev freeglut3-dev
And got the same error message as you attached above.
The root cause is:
Note: Installing Mesa may overwrite the /usr/lib/libGL.so that was previously installed by the NVIDIA driver, so a reinstallation of the NVIDIA driver might be required after installing these libraries.
Source: cuda installation guide.
SOLUTION: reinstallation of the NVIDIA driver solved the issue for me.
Hi there,
I came across the same problem, and I found a more convenient solution by reinstalling libglvnd.
I solved the problem by running (on CentOS7):
sudo yum reinstall libglvnd
For your reference: https://github.com/openai/mujoco-py/issues/513
Looks like this is resolved.