pyopengl
pyopengl copied to clipboard
Fails to build with Cython 3.1.0
[1/1] Cythonizing src/vbo.pyx
Error compiling Cython file:
------------------------------------------------------------
...
def create_buffers( self ):
"""Create the internal buffer(s)"""
assert not self.created, """Already created the buffer"""
buffers = self.get_implementation().glGenBuffers(1)
try:
self.buffer = long( buffers )
^
------------------------------------------------------------
src/vbo.pyx:191:26: undeclared name not builtin: long
I haven't looked at the code yet, but this is usually solved by using int since the long python type was removed from python 3.
If the buffer really must be a C long, then use this instead: from ctypes import c_long as long.