Skip to content
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

Motion Generation - Unable to load OpenGL library #8

Open
Eitan229 opened this issue Aug 12, 2022 · 5 comments
Open

Motion Generation - Unable to load OpenGL library #8

Eitan229 opened this issue Aug 12, 2022 · 5 comments

Comments

@Eitan229
Copy link

Thank you for your work.

The avatar generation part works great, but I am facing difficulties with the motion generation part.

For reference:

(AvatarCLIP) eitan.levy@lambda2:~/AvatarCLIP/AvatarAnimate$ python main.py --conf confs/pose_ablation/pose_optimizer/argue.conf
Traceback (most recent call last):
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/osmesa.py", line 25, in GL
mode=ctypes.RTLD_GLOBAL
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/ctypesloader.py", line 45, in loadLibrary
return dllType( name, mode )
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: ('libgcrypt.so.11: cannot open shared object file: No such file or directory', '/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/libOSMesa.so.8', '/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/libOSMesa.so.8')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 12, in
from visualize import render_pose, render_motion
File "/home/eitan.levy/AvatarCLIP/AvatarAnimate/visualize.py", line 9, in
import pyrender
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/pyrender/init.py", line 3, in
from .light import Light, PointLight, DirectionalLight, SpotLight
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/pyrender/light.py", line 10, in
from OpenGL.GL import *
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/GL/init.py", line 3, in
from OpenGL import error as _error
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/error.py", line 12, in
from OpenGL import platform, _configflags
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/init.py", line 35, in
_load()
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/init.py", line 32, in _load
plugin.install(globals())
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 92, in install
namespace[ name ] = getattr(self,name,None)
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 14, in get
value = self.fget( obj )
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/osmesa.py", line 66, in GetCurrentContext
function = self.OSMesa.OSMesaGetCurrentContext
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 14, in get
value = self.fget( obj )
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/osmesa.py", line 60, in OSMesa
def OSMesa( self ): return self.GL
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 14, in get
value = self.fget( obj )
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/osmesa.py", line 28, in GL
raise ImportError("Unable to load OpenGL library", *err.args)
ImportError: ('Unable to load OpenGL library', 'libgcrypt.so.11: cannot open shared object file: No such file or directory', '/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/libOSMesa.so.8', '/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/libOSMesa.so.8')
(AvatarCLIP) eitan.levy@lambda2:~/AvatarCLIP/AvatarAnimate$ python3 main.py --conf confs/pose_ablation/pose_optimizer/argue.conf
/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/clip/clip.py:24: UserWarning: PyTorch version 1.7.1 or higher is recommended
warnings.warn("PyTorch version 1.7.1 or higher is recommended")
Traceback (most recent call last):
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/osmesa.py", line 25, in GL
mode=ctypes.RTLD_GLOBAL
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/ctypesloader.py", line 45, in loadLibrary
return dllType( name, mode )
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: ('libgcrypt.so.11: cannot open shared object file: No such file or directory', '/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/libOSMesa.so.8', '/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/libOSMesa.so.8')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 12, in
from visualize import render_pose, render_motion
File "/home/eitan.levy/AvatarCLIP/AvatarAnimate/visualize.py", line 9, in
import pyrender
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/pyrender/init.py", line 3, in
from .light import Light, PointLight, DirectionalLight, SpotLight
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/pyrender/light.py", line 10, in
from OpenGL.GL import *
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/GL/init.py", line 3, in
from OpenGL import error as _error
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/error.py", line 12, in
from OpenGL import platform, _configflags
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/init.py", line 35, in
_load()
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/init.py", line 32, in _load
plugin.install(globals())
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 92, in install
namespace[ name ] = getattr(self,name,None)
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 14, in get
value = self.fget( obj )
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/osmesa.py", line 66, in GetCurrentContext
function = self.OSMesa.OSMesaGetCurrentContext
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 14, in get
value = self.fget( obj )
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/osmesa.py", line 60, in OSMesa
def OSMesa( self ): return self.GL
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 14, in get
value = self.fget( obj )
File "/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/python3.7/site-packages/OpenGL/platform/osmesa.py", line 28, in GL
raise ImportError("Unable to load OpenGL library", *err.args)
ImportError: ('Unable to load OpenGL library', 'libgcrypt.so.11: cannot open shared object file: No such file or directory', '/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/libOSMesa.so.8', '/home/eitan.levy/anaconda3/envs/AvatarCLIP/lib/libOSMesa.so.8')

I cannot seem to solve this problem.

@sotazum
Copy link

sotazum commented Nov 25, 2022

Thank you for a wonderful work.
I have the same problem. If anyone knows some method to solve, please answer.

@shunlinlu
Copy link

I met the same problem. Any solution?

@Creasy66
Copy link

Creasy66 commented Feb 9, 2023

I met the same problem. Any solution?
you can try this method.
openai/mujoco-py#323 (comment)

@Creasy66
Copy link

Creasy66 commented Feb 9, 2023

you can try this method.
openai/mujoco-py#323 (comment)

@sotazum

@1390806607
Copy link

@Creasy66 @sotazum @Eitan229 Hi, did you guys reproduce it? I need a lot of questions on generating candidate poses。Could you take a look for me, please
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants