pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

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

Open eehoeskrap opened this issue 11 months ago • 3 comments

The following error occurs.

  • Windows
  • pyglet : 1.5.28
  • PyOpenGL : 3.1.0
  • pyrender : 0.1.45
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?

eehoeskrap avatar Mar 20 '24 10:03 eehoeskrap

Hi, have you solved it?

Echo-jyt avatar Mar 26 '24 11:03 Echo-jyt

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.

eehoeskrap avatar Mar 26 '24 11:03 eehoeskrap

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.

Echo-jyt avatar Mar 26 '24 13:03 Echo-jyt