postech-ami / MultiTalk

[INTERSPEECH'24] Official repository for "MultiTalk: Enhancing 3D Talking Head Generation Across Languages with Multilingual Video Dataset"
75 stars 8 forks source link

error on wwindows 10: ImportError: ('Unable to load OpenGL library', "Could not find module 'OSMesa' (or one of its dependencies). #4

Open linhcentrio opened 2 months ago

linhcentrio commented 2 months ago

(D:\Talking_head\MultiTalk-Code\venv) D:\Talking_head\MultiTalk-Code>scripts\demo.bat multi Traceback (most recent call last): File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\osmesa.py", line 22, in GL return ctypesloader.loadLibrary( File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\ctypesloader.py", line 45, in loadLibrary return dllType( name, mode ) File "D:\Talking_head\MultiTalk-Code\venv\lib\ctypes__init.py", line 373, in init__ self._handle = _dlopen(self._name, mode) FileNotFoundError: ("Could not find module 'OSMesa' (or one of its dependencies). Try using the full path with constructor syntax.", 'OSMesa', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main\demo_dir.py", line 24, in import pyrender File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\pyrender__init.py", line 3, in from .light import Light, PointLight, DirectionalLight, SpotLight File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\pyrender\light.py", line 10, in from OpenGL.GL import * File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\GL__init.py", line 3, in from OpenGL import error as _error File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\error.py", line 12, in from OpenGL import platform, _configflags File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\init.py", line 35, in _load() File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\init__.py", line 32, in _load plugin.install(globals()) File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\baseplatform.py", line 92, in install namespace[ name ] = getattr(self,name,None) File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get value = self.fget( obj ) File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\osmesa.py", line 66, in GetCurrentContext function = self.OSMesa.OSMesaGetCurrentContext File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get value = self.fget( obj ) File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\osmesa.py", line 60, in OSMesa def OSMesa( self ): return self.GL File "D:\Talking_head\MultiTalk-Code\venv\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get__ value = self.fget( obj ) File "D:\Talking_head\MultiTalk-Code\venv\lib\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', "Could not find module 'OSMesa' (or one of its dependencies). Try using the full path with constructor syntax.", 'OSMesa', None)

linhcentrio commented 2 months ago

i search this: https://github.com/pal1000/mesa-dist-win

mor-panjaya commented 3 days ago

For me it was fixed after the following installations (see: https://github.com/mmatl/pyrender/issues/32):