stevenlovegrove / Pangolin

Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input.
MIT License
2.39k stars 854 forks source link

Failed to build pyopengl-accelerate #947

Closed TheIllusionist77 closed 2 months ago

TheIllusionist77 commented 2 months ago

When running this line to install the python bindings for Pangolin (on Linux),

cmake --build build -t pypangolin_pip_install

I get the following errors:

ERROR: Failed building wheel for pyopengl-accelerate Failed to build pyopengl-accelerate ERROR: Could not build wheels for pyopengl-accelerate, which is required to install pyproject.toml-based projects gmake[3]: *** [CMakeFiles/pypangolin_pip_install.dir/build.make:71: CMakeFiles/pypangolin_pip_install] Error 1 gmake[2]: *** [CMakeFiles/Makefile2:939: CMakeFiles/pypangolin_pip_install.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:946: CMakeFiles/pypangolin_pip_install.dir/rule] Error 2 gmake: *** [Makefile:390: pypangolin_pip_install] Error 2

Sorry if this is a dumb question, but is there any solution? Help is much appreciated.

christian-rauch commented 2 months ago

Can you build the wheel file by cmake --build build -t pypangolin_wheel only?

TheIllusionist77 commented 2 months ago

Everything seems to have built successfully with cmake --build build -t pypangolin_wheel only.

[ 10%] Built target pango_core [ 21%] Built target pango_image [ 31%] Built target pango_opengl [ 38%] Built target pango_windowing [ 40%] Built target pango_vars [ 50%] Built target pango_display [ 55%] Built target pango_packetstream [ 58%] Built target pango_plot [ 81%] Built target pango_video [100%] Built target pypangolin [100%] Built target pypangolin_wheel

christian-rauch commented 2 months ago

Well, can you check if the wheel file (*.whl) was created and install it manually with pip?

TheIllusionist77 commented 2 months ago

This is the wheel file I found: pypangolin-0.9.2-cp311-cp311-linux_aarch64.whl

I tried installing it with pip3 install pypangolin-0.9.2-cp311-cp311-linux_aarch64.whl, but still got the same error.

ERROR: Failed building wheel for pyopengl-accelerate Failed to build pyopengl-accelerate ERROR: Could not build wheels for pyopengl-accelerate, which is required to install pyproject.toml-based projects

TheIllusionist77 commented 2 months ago

This probably isn't the ideal solution, but I got it to work by removing pyopengl-accelerate as a requirement from CMakeLists.txt.

christian-rauch commented 2 months ago

I assume you get the same error when you install PyOpenGL-accelerate manually. Can you install PyOpenGL-accelerate via:

pip install PyOpenGL-accelerate

and report errors here?

When I run pip install --break-system-packages PyOpenGL-accelerate on Ubuntu 24.04, I eventually get the error

src/numpy_formathandler.pyx:22:42: 'Py_intptr_t' is not a type identifier
TheIllusionist77 commented 2 months ago

I actually did try to install the package itself using 'pip' before resorting to the forum, but seemed to still get the same errors.

ERROR: Failed building wheel for pyopengl-accelerate Failed to build pyopengl-accelerate ERROR: Could not build wheels for pyopengl-accelerate, which is required to install pyproject.toml-based projects

Interesting how the error on Ubuntu is different.

christian-rauch commented 2 months ago

I get the same Could not build wheels for PyOpenGL-accelerate, which is required to install pyproject.toml-based projects error, but with much more details:

Building wheels for collected packages: PyOpenGL-accelerate
  Building wheel for PyOpenGL-accelerate (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyOpenGL-accelerate (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [150 lines of output]
      [...]
      [1/1] Cythonizing src/latebind.pyx
      building 'OpenGL_accelerate.latebind' extension
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/tmp/pip-install-h1ng6tbq/pyopengl-accelerate_db43c4edfc8b450a8837df32037dcd19/src -I/tmp/pip-install-h1ng6tbq/pyopengl-accelerate_db43c4edfc8b450a8837df32037dcd19 -I/usr/include/python3.12 -c src/latebind.c -o build/temp.linux-x86_64-cpython-312/src/latebind.o
      src/latebind.c:2912:12: warning: ‘__pyx_pw_17OpenGL_accelerate_8latebind_8LateBind_5__nonzero__’ defined but not used [-Wunused-function]
       2912 | static int __pyx_pw_17OpenGL_accelerate_8latebind_8LateBind_5__nonzero__(PyObject *__pyx_v_self) {
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-x86_64-cpython-312/src/latebind.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-312/OpenGL_accelerate/latebind.cpython-312-x86_64-linux-gnu.so
      /tmp/pip-build-env-axinnck2/overlay/local/lib/python3.12/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-h1ng6tbq/pyopengl-accelerate_db43c4edfc8b450a8837df32037dcd19/src/buffers_formathandler.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      Compiling src/buffers_formathandler.pyx because it changed.
      [1/1] Cythonizing src/buffers_formathandler.pyx
      building 'OpenGL_accelerate.buffers_formathandler' extension
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/tmp/pip-install-h1ng6tbq/pyopengl-accelerate_db43c4edfc8b450a8837df32037dcd19/src -I/tmp/pip-install-h1ng6tbq/pyopengl-accelerate_db43c4edfc8b450a8837df32037dcd19 -I/usr/include/python3.12 -c src/buffers_formathandler.c -o build/temp.linux-x86_64-cpython-312/src/buffers_formathandler.o
      x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-x86_64-cpython-312/src/buffers_formathandler.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-312/OpenGL_accelerate/buffers_formathandler.cpython-312-x86_64-linux-gnu.so
      /tmp/pip-build-env-axinnck2/overlay/local/lib/python3.12/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-h1ng6tbq/pyopengl-accelerate_db43c4edfc8b450a8837df32037dcd19/src/numpy_formathandler.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          cdef int PyArray_CheckScalar( object )
          int NPY_ARRAY_CARRAY
          int NPY_ARRAY_FORCECAST
          int PyArray_ISCARRAY( np.ndarray instance )
          int PyArray_ISCARRAY_RO( np.ndarray instance )
          cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran)
                                                ^
      ------------------------------------------------------------

      src/numpy_formathandler.pyx:22:42: 'Py_intptr_t' is not a type identifier
      Compiling src/numpy_formathandler.pyx because it changed.
      [...]
      Cython.Compiler.Errors.CompileError: src/numpy_formathandler.pyx
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyOpenGL-accelerate
Failed to build PyOpenGL-accelerate
ERROR: Could not build wheels for PyOpenGL-accelerate, which is required to install pyproject.toml-based projects

What distribution, Python and pip version are you using?

TheIllusionist77 commented 2 months ago

Interesting. Not sure why mine does not give all the details.

I am on Raspberry Pi OS Bookworm, using Python 3.11, pip version is 23.0.1.

christian-rauch commented 2 months ago

Can you update pip itself via pip install --upgrade pip and try pip install --break-system-packages --verbose PyOpenGL-accelerate again to see if this provides more verbose output?

christian-rauch commented 2 months ago

I removed the broken PyOpenGL-accelerate dependency in https://github.com/stevenlovegrove/Pangolin/pull/949.

TheIllusionist77 commented 2 months ago

I tried adding --verbose to the installation command, and got something similar to your output.

Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting PyOpenGL-accelerate
  Using cached PyOpenGL-accelerate-3.1.7.tar.gz (562 kB)
  Running command pip subprocess to install build dependencies
  Using pip 24.2 from /home/pi/.local/lib/python3.11/site-packages/pip (python 3.11)
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
  Collecting setuptools>=42.0
    Using cached https://www.piwheels.org/simple/setuptools/setuptools-74.1.0-py3-none-any.whl (1.3 MB)
  Collecting Cython>=0.28
    Obtaining dependency information for Cython>=0.28 from https://files.pythonhosted.org/packages/09/c9/537108d0980beffff55336baaf8b34162ad0f3f33ededcb5db07069bc8ef/Cython-3.0.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata
    Using cached Cython-3.0.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.2 kB)
    Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/3a/be/650f9c091ef71cb01d735775d554e068752d3ff63d7943b26316dc401749/numpy-1.21.2.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
    Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/5f/d6/ad58ded26556eaeaa8c971e08b6466f17c4ac4d786cd3d800e26ce59cc01/numpy-1.21.3.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
    Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
    Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/c2/a8/a924a09492bdfee8c2ec3094d0a13f2799800b4fdc9c890738aeeb12c72e/numpy-1.21.5.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
    Link requires a different Python (3.11.2 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
  Collecting numpy
    Obtaining dependency information for numpy from https://files.pythonhosted.org/packages/d0/d2/4838d8c3b7ac69947ffd686ba3376cb603ea3618305ae3b8547b821df218/numpy-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata
    Using cached numpy-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (62 kB)
  Using cached Cython-3.0.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB)
  Using cached numpy-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
  WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
      sys-platform (=="darwin") ; extra == 'objc'
                   ~^
  Installing collected packages: setuptools, numpy, Cython
    Creating /tmp/pip-build-env-nsx_hah1/overlay/local/bin
    changing mode of /tmp/pip-build-env-nsx_hah1/overlay/local/bin/f2py to 755
    changing mode of /tmp/pip-build-env-nsx_hah1/overlay/local/bin/numpy-config to 755
    changing mode of /tmp/pip-build-env-nsx_hah1/overlay/local/bin/cygdb to 755
    changing mode of /tmp/pip-build-env-nsx_hah1/overlay/local/bin/cython to 755
    changing mode of /tmp/pip-build-env-nsx_hah1/overlay/local/bin/cythonize to 755
  Successfully installed Cython-3.0.11 numpy-2.1.0 setuptools-74.1.0
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/config/expand.py:124: SetuptoolsWarning: File '/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/readme.txt' cannot be found
    return '\n'.join(
  running egg_info
  writing PyOpenGL_accelerate.egg-info/PKG-INFO
  writing dependency_links to PyOpenGL_accelerate.egg-info/dependency_links.txt
  writing top-level names to PyOpenGL_accelerate.egg-info/top_level.txt
  reading manifest file 'PyOpenGL_accelerate.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'PyOpenGL_accelerate.egg-info/SOURCES.txt'
  Getting requirements to build wheel ... done
  Running command Preparing metadata (pyproject.toml)
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/config/expand.py:124: SetuptoolsWarning: File '/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/readme.txt' cannot be found
    return '\n'.join(
  running dist_info
  creating /tmp/pip-modern-metadata-74vg2d_k/PyOpenGL_accelerate.egg-info
  writing /tmp/pip-modern-metadata-74vg2d_k/PyOpenGL_accelerate.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-modern-metadata-74vg2d_k/PyOpenGL_accelerate.egg-info/dependency_links.txt
  writing top-level names to /tmp/pip-modern-metadata-74vg2d_k/PyOpenGL_accelerate.egg-info/top_level.txt
  writing manifest file '/tmp/pip-modern-metadata-74vg2d_k/PyOpenGL_accelerate.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-modern-metadata-74vg2d_k/PyOpenGL_accelerate.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file '/tmp/pip-modern-metadata-74vg2d_k/PyOpenGL_accelerate.egg-info/SOURCES.txt'
  creating '/tmp/pip-modern-metadata-74vg2d_k/PyOpenGL_accelerate-3.1.7.dist-info'
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: PyOpenGL-accelerate
  Running command Building wheel for PyOpenGL-accelerate (pyproject.toml)
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/config/expand.py:124: SetuptoolsWarning: File '/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/readme.txt' cannot be found
    return '\n'.join(
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-cpython-311
  creating build/lib.linux-aarch64-cpython-311/OpenGL_accelerate
  copying OpenGL_accelerate/__init__.py -> build/lib.linux-aarch64-cpython-311/OpenGL_accelerate
  running build_ext
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/OpenGL_accelerate/wrapper.pxd
    tree = Parsing.p_module(s, pxd, full_module_name)
  Compiling src/wrapper.pyx because it changed.
  [1/1] Cythonizing src/wrapper.pyx
  building 'OpenGL_accelerate.wrapper' extension
  creating build/temp.linux-aarch64-cpython-311
  creating build/temp.linux-aarch64-cpython-311/src
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30 -I/usr/include/python3.11 -c src/wrapper.c -o build/temp.linux-aarch64-cpython-311/src/wrapper.o
  aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-aarch64-cpython-311/src/wrapper.o -L/usr/lib/aarch64-linux-gnu -o build/lib.linux-aarch64-cpython-311/OpenGL_accelerate/wrapper.cpython-311-aarch64-linux-gnu.so
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/OpenGL_accelerate/formathandler.pxd
    tree = Parsing.p_module(s, pxd, full_module_name)
  Compiling src/formathandler.pyx because it changed.
  [1/1] Cythonizing src/formathandler.pyx
  building 'OpenGL_accelerate.formathandler' extension
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30 -I/usr/include/python3.11 -c src/formathandler.c -o build/temp.linux-aarch64-cpython-311/src/formathandler.o
  aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-aarch64-cpython-311/src/formathandler.o -L/usr/lib/aarch64-linux-gnu -o build/lib.linux-aarch64-cpython-311/OpenGL_accelerate/formathandler.cpython-311-aarch64-linux-gnu.so
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src/arraydatatype.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  Compiling src/arraydatatype.pyx because it changed.
  [1/1] Cythonizing src/arraydatatype.pyx
  building 'OpenGL_accelerate.arraydatatype' extension
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30 -I/usr/include/python3.11 -c src/arraydatatype.c -o build/temp.linux-aarch64-cpython-311/src/arraydatatype.o
  aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-aarch64-cpython-311/src/arraydatatype.o -L/usr/lib/aarch64-linux-gnu -o build/lib.linux-aarch64-cpython-311/OpenGL_accelerate/arraydatatype.cpython-311-aarch64-linux-gnu.so
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src/errorchecker.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  Compiling src/errorchecker.pyx because it changed.
  [1/1] Cythonizing src/errorchecker.pyx
  building 'OpenGL_accelerate.errorchecker' extension
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30 -I/usr/include/python3.11 -c src/errorchecker.c -o build/temp.linux-aarch64-cpython-311/src/errorchecker.o
  aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-aarch64-cpython-311/src/errorchecker.o -L/usr/lib/aarch64-linux-gnu -o build/lib.linux-aarch64-cpython-311/OpenGL_accelerate/errorchecker.cpython-311-aarch64-linux-gnu.so
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src/vbo.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  Compiling src/vbo.pyx because it changed.
  [1/1] Cythonizing src/vbo.pyx
  building 'OpenGL_accelerate.vbo' extension
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30 -I/usr/include/python3.11 -c src/vbo.c -o build/temp.linux-aarch64-cpython-311/src/vbo.o
  aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-aarch64-cpython-311/src/vbo.o -L/usr/lib/aarch64-linux-gnu -o build/lib.linux-aarch64-cpython-311/OpenGL_accelerate/vbo.cpython-311-aarch64-linux-gnu.so
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src/nones_formathandler.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  Compiling src/nones_formathandler.pyx because it changed.
  [1/1] Cythonizing src/nones_formathandler.pyx
  building 'OpenGL_accelerate.nones_formathandler' extension
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30 -I/usr/include/python3.11 -c src/nones_formathandler.c -o build/temp.linux-aarch64-cpython-311/src/nones_formathandler.o
  aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-aarch64-cpython-311/src/nones_formathandler.o -L/usr/lib/aarch64-linux-gnu -o build/lib.linux-aarch64-cpython-311/OpenGL_accelerate/nones_formathandler.cpython-311-aarch64-linux-gnu.so
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src/latebind.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  Compiling src/latebind.pyx because it changed.
  [1/1] Cythonizing src/latebind.pyx
  building 'OpenGL_accelerate.latebind' extension
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30 -I/usr/include/python3.11 -c src/latebind.c -o build/temp.linux-aarch64-cpython-311/src/latebind.o
  src/latebind.c:2912:12: warning: ‘__pyx_pw_17OpenGL_accelerate_8latebind_8LateBind_5__nonzero__’ defined but not used [-Wunused-function]
   2912 | static int __pyx_pw_17OpenGL_accelerate_8latebind_8LateBind_5__nonzero__(PyObject *__pyx_v_self) {
        |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-aarch64-cpython-311/src/latebind.o -L/usr/lib/aarch64-linux-gnu -o build/lib.linux-aarch64-cpython-311/OpenGL_accelerate/latebind.cpython-311-aarch64-linux-gnu.so
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src/buffers_formathandler.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  Compiling src/buffers_formathandler.pyx because it changed.
  [1/1] Cythonizing src/buffers_formathandler.pyx
  building 'OpenGL_accelerate.buffers_formathandler' extension
  aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src -I/tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30 -I/usr/include/python3.11 -c src/buffers_formathandler.c -o build/temp.linux-aarch64-cpython-311/src/buffers_formathandler.o
  aarch64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-aarch64-cpython-311/src/buffers_formathandler.o -L/usr/lib/aarch64-linux-gnu -o build/lib.linux-aarch64-cpython-311/OpenGL_accelerate/buffers_formathandler.cpython-311-aarch64-linux-gnu.so
  /tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30/src/numpy_formathandler.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef int PyArray_CheckScalar( object )
      int NPY_ARRAY_CARRAY
      int NPY_ARRAY_FORCECAST
      int PyArray_ISCARRAY( np.ndarray instance )
      int PyArray_ISCARRAY_RO( np.ndarray instance )
      cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran)
                                            ^
  ------------------------------------------------------------

  src/numpy_formathandler.pyx:22:42: 'Py_intptr_t' is not a type identifier
  Compiling src/numpy_formathandler.pyx because it changed.
  [1/1] Cythonizing src/numpy_formathandler.pyx
  Traceback (most recent call last):
    File "/home/pi/.local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/home/pi/.local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/pi/.local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 421, in build_wheel
      return self._build_with_temp_dir(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 403, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 113, in <module>
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 184, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 200, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/command/bdist_wheel.py", line 384, in run
      self.run_command("build")
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
      self.build_extensions()
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
      self._build_extensions_serial()
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
      self.build_extension(ext)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Distutils/build_ext.py", line 130, in build_extension
      new_ext = cythonize(
                ^^^^^^^^^^
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-nsx_hah1/overlay/local/lib/python3.11/dist-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/numpy_formathandler.pyx
  error: subprocess-exited-with-error

  × Building wheel for PyOpenGL-accelerate (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /usr/bin/python3 /home/pi/.local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpizktmbky
  cwd: /tmp/pip-install-7mkqduvi/pyopengl-accelerate_6bccad4fc27e426bb6abaa3d27a4ec30
  Building wheel for PyOpenGL-accelerate (pyproject.toml) ... error
  ERROR: Failed building wheel for PyOpenGL-accelerate
Failed to build PyOpenGL-accelerate
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyOpenGL-accelerate)

Glad that the issue is resolved in the repository itself.