mmatl / pyrender

Easy-to-use glTF 2.0-compliant OpenGL renderer for visualization of 3D scenes.
http://pyrender.readthedocs.io/
MIT License
1.31k stars 226 forks source link

Attempt to call an undefined function glGenVertexArrays, check for bool(glGenVertexArrays) before calling #280

Open eehoeskrap opened 8 months ago

eehoeskrap commented 8 months ago

The following error occurs.

2024-03-20 15:58:44.826 | ERROR    | gradio.utils:wrapper:693 - An error has been caught in function 'wrapper', process 'MainProcess' (41896), thread 'AnyIO worker thread' (35364):
Traceback (most recent call last):

  File "D:\workspace\miniforge3\envs\emage\lib\site-packages\OpenGL\latebind.py", line 43, in __call__
    return self._finalCall( *args, **named )
           │    │            │       └ {}
           │    │            └ (1,)
           │    └ <function Wrapper.finaliseCall.<locals>.wrapperCall at 0x0000025DC6278430>
           └ <OpenGL.platform.baseplatform.glGenVertexArrays object at 0x0000025D95F9F180>

TypeError: 'NoneType' object is not callable

During handling of the above exception, another exception occurred:

...

OpenGL.error.NullFunctionError: Attempt to call an undefined function glGenVertexArrays, check for bool(glGenVertexArrays) before calling

Do you know the solution?

Echo-jyt commented 8 months ago

Hi, have you solved it?

eehoeskrap commented 8 months ago

Hi. In my case, the problem was caused by the A100 GPU not supporting WDDM. This was resolved by running it on an RTX series GPU.

Echo-jyt commented 8 months ago

Hi. In my case, the problem was caused by the A100 GPU not supporting WDDM. This was resolved by running it on an RTX series GPU. My gpu is 1080Ti, but this problem still occurs. I don’t know if it is a problem with the Nvidia driver version.