Skip to content

How can I debug this issue?? #166

@bekorn

Description

@bekorn

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions