wenbowen123 / iros20-6d-pose-tracking

[IROS 2020] se(3)-TrackNet: Data-driven 6D Pose Tracking by Calibrating Image Residuals in Synthetic Domains
Other
388 stars 67 forks source link

ImportError: Library "GLU" not found #11

Closed johnbhlm closed 3 years ago

johnbhlm commented 3 years ago

First of all, thank you very much for sharing the code. I want to use your code to reproduce the test results in the paper, but I encountered some problems when configuring the environment:

import pyrender Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/pyglet/init.py", line 334, in getattr return getattr(self._module, name) AttributeError: 'NoneType' object has no attribute 'Window'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/pyglet/init.py", line 334, in getattr return getattr(self._module, name) AttributeError: 'NoneType' object has no attribute '_create_shadow_window'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/opt/conda/lib/python3.7/site-packages/pyrender/init.py", line 12, in from .viewer import Viewer File "/opt/conda/lib/python3.7/site-packages/pyrender/viewer.py", line 36, in class Viewer(pyglet.window.Window): File "/opt/conda/lib/python3.7/site-packages/pyglet/init.py", line 340, in getattr import(import_name) File "/opt/conda/lib/python3.7/site-packages/pyglet/window/init.py", line 1897, in gl._create_shadow_window() File "/opt/conda/lib/python3.7/site-packages/pyglet/init.py", line 340, in getattr import(import_name) File "/opt/conda/lib/python3.7/site-packages/pyglet/gl/init.py", line 95, in from pyglet.gl.lib import GLException File "/opt/conda/lib/python3.7/site-packages/pyglet/gl/lib.py", line 149, in from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX File "/opt/conda/lib/python3.7/site-packages/pyglet/gl/lib_glx.py", line 46, in glu_lib = pyglet.lib.load_library('GLU') File "/opt/conda/lib/python3.7/site-packages/pyglet/lib.py", line 164, in load_library raise ImportError('Library "%s" not found.' % names[0]) ImportError: Library "GLU" not found.

I referenced some methods apt-get install freeglut3-dev but it didn't work,

How can I solve it? thank you if you can answer my question.

wenbowen123 commented 3 years ago

you need to install pyrender. You can refer to this link. If that doesn't work, you can install glu related python packages such as this and this

johnbhlm commented 3 years ago

thank you ,I have solved

assia855 commented 1 year ago

Hi @johnbhlm how did you solve it please?