Skip to content

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

@linhcentrio

Description

@linhcentrio

(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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions