-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
I'm running PyOpenGL on an OrangePi Zero2W with Ubuntu Bookworm. Apparently, I broke something in the environment, and my code that was working minutes ago isn't working anymore.
File "/home/orangepi/task/rel/graphics.py", line 10, in <module>
from OpenGL.GLES3 import *
File "/usr/lib/python3/dist-packages/OpenGL/GLES3/__init__.py", line 2, in <module>
from OpenGL.raw.GLES3._types import *
File "/usr/lib/python3/dist-packages/OpenGL/raw/GLES3/__init__.py", line 1, in <module>
from OpenGL.raw.GLES3._types import *
File "/usr/lib/python3/dist-packages/OpenGL/raw/GLES3/_types.py", line 1, in <module>
from OpenGL.raw.GLES2._types import *
File "/usr/lib/python3/dist-packages/OpenGL/raw/GLES2/_types.py", line 5, in <module>
_error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
By looking at the traceback, I have no clue what is missing or wrong with the environment; it gives zero feedback on how I can fix the issue. My only option is asking you directly, hoping for an answer, which stalls the production by days. You should keep in mind that when you release a library, users will encounter errors; to not deal with them one by one, your code should guide them to the solution.
Consider this was the code in the library:
assert _ErrorChecker is not None, "You are missing X, check for Y, Z must have failed, see W"
_error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
Metadata
Metadata
Assignees
Labels
No labels