question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for PyOpenGL

See original GitHub issue

I’m unable to compile project that uses PyOpenGL

Error message:

Traceback (most recent call last):
  File "<string>", line 3, in _wrapped_function_initializeGL_21
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\pg_ui\pg_node_editor\pg_view_3d.py", line 67, in initializeGL
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\pg_gl_util\pg_texture.py", line 45, in create
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\OpenGL\latebind.py", line 45, in __call__
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\OpenGL\wrapper.py", line 656, in wrapperCall
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\OpenGL\wrapper.py", line 459, in calculate_cArgs
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\OpenGL\converters.py", line 251, in __call__
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\OpenGL\converters.py", line 196, in __call__
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\OpenGL\arrays\arraydatatype.py", line 172, in zeros
  File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\OpenGL\arrays\arraydatatype.py", line 79, in get_output_handler
RuntimeError: ('Unable to find any output handler at all (not even ctypes/numpy ones!)', 'Failure in cConverter <OpenGL.converters.SizedOutputOrInput object at 0x0000016B6571DD40>', (1, <object object at 0x0000016B63CCAE40>), 1, <OpenGL.platform.baseplatform.glGenTextures object at 0x0000016B657F3A80>)

On the:

File "C:\Users\neman\AppData\Local\Temp\ONC9F3~1\pg_gl_util\pg_texture.py", line 45, in create

I’m calling OpenGL function for the first time:

GL.glGenTextures(1)

I’ve tried to follow #86 but it is a bit confusing. Anyway, --include-module=OpenGL.platform.win32 doesn’t seem to help

Python version: Python 3.8.11 Nuitka version:

0.6.17.7
Commercial: None
Python: 3.8.11 (default, Aug  6 2021, 09:57:55) [MSC v.1916 64 bit (AMD64)]
Executable: C:\Users\neman\Anaconda3\envs\trivial\python.exe
OS: Windows
Arch: x86_64

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Nov 25, 2021

Part of the current pre-release.

1reaction
kayhayencommented, Nov 24, 2021

On factory the plugin glfw is now enabled by default, and I also moved the OpenGL platform plugin handling to there, so this should be all good now. https://nuitka.net/doc/factory.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyOpenGL -- The Python OpenGL Binding
PyOpenGL Supports · Python 3.3+ (3.2 support is likely to work, but untested) · Python 2.7 (recommended) · Python 2.6 (for compatibility with...
Read more >
PyOpenGL · PyPI
You can run the PyOpenGL test suite from a source-code checkout, you will need: git (for the checkout). GLUT (FreeGLUT). GLExtrusion library (libgle)....
Read more >
[pyOpenGL] Help Needed to Install it ! - Python Forum
Most users of PyOpenGL should use pip to install PyOpenGL automatically. It can be installed either to the system Python or a Virtualenv....
Read more >
PyOpenGl - Python Wiki
PyOpenGL includes support for OpenGL v1.1, GLU, GLUT v3.7, GLE 3, WGL 4, and Togl (Tk OpenGL widget) 1.6. It also includes support...
Read more >
PyOpenGL-3.1.5-cp36-cp36m-win_amd64.whl is not a ...
"PyOpenGL-3.1.5-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform." means that either your Python is 3.6 or is not 64-bit ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found