user2811449
user2811449

Reputation: 51

PyOpenGl runtime error after cx_freeze

I'm trying to compile a shader running PyOpenGL and PyOpenGL_Accellerate v 3.1.2 from https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

Runs fine, but after cx_freezeing it I get: "no array-type handler for type when calling glShaderSource

I have tried a suggestion to force include OpenGL.arrays.ctypesparameters into cx_Freeze build but that didn't help.

Upvotes: 0

Views: 87

Answers (1)

user2811449
user2811449

Reputation: 51

Had to force add OpenGL.arrays to the cx_freeze setup.

options = {"build_exe": {
        "packages": ["OpenGL.arrays"]
        } 

Upvotes: 1

Related Questions