Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on python 3.12.4 #119

Open
catnoteafish opened this issue Jul 11, 2024 · 3 comments
Open

Can't install on python 3.12.4 #119

catnoteafish opened this issue Jul 11, 2024 · 3 comments

Comments

@catnoteafish
Copy link

I can't install pyopengl_accelerate in venv on windows 10. I try to install C++ build tools and cython, but it isn't working.

That's pip logs:

(venv) ~\PycharmProjects\PhiRender--Kasytano git:[master]
pip install pyopengl pyopengl_accelerate glfw
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pyopengl in c:\users\administrator\pycharmprojects\phirender--kasytano\venv\lib\site-packages (3.1.7)
Collecting pyopengl_accelerate
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/93/09/d08b3d07dbd88258276496a47273778f330f5ccf8390cb21b16b29d660de/PyOpenGL-accelerate-3.1.7.tar.gz (562 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting glfw
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5c/66/645ed28b13680fe65de1d5334bb9cbb41c5f46e225c0b58b1b2994d5a6a3/glfw-2.7.0-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-win_amd64.whl (493 kB)
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
  ╰─> [181 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-312
      creating build\lib.win-amd64-cpython-312\OpenGL_accelerate
      copying OpenGL_accelerate\__init__.py -> build\lib.win-amd64-cpython-312\OpenGL_accelerate
      running build_ext
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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.win-amd64-cpython-312
      creating build\temp.win-amd64-cpython-312\Release
      creating build\temp.win-amd64-cpython-312\Release\src
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\
src -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af -IC:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\include -IE:\py\include -IE
:\py\Include -IE:\vs\VC\Tools\MSVC\14.40.33807\include -IE:\vs\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.226
21.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\wrapper.c /Fobuild\temp.win-amd64-cpython-312\Release\src\wrapper.obj
      wrapper.c
      src\wrapper.c(10418): warning C4244: 鈥\x9c=鈥\x9d: 浠庘\x80淧y_ssize_t鈥濊浆鎹㈠埌鈥渋nt鈥濓紝鍙\xaf鑳戒涪澶辨暟鎹\xae
      src\wrapper.c(11374): warning C4244: 鈥\x9c=鈥\x9d: 浠庘\x80淧y_ssize_t鈥濊浆鎹㈠埌鈥渋nt鈥濓紝鍙\xaf鑳戒涪澶辨暟鎹\xae
      src\wrapper.c(35655): warning C4244: 鈥\x9c=鈥\x9d: 浠庘\x80淧y_ssize_t鈥濊浆鎹㈠埌鈥渓ong鈥濓紝鍙\xaf鑳戒涪澶辨暟鎹\xae
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\libs /L
IBPATH:E:\py\libs /LIBPATH:E:\py /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\PCbuild\amd64 /LIBPATH:E:\vs\VC\Tools\MSVC\14.40.33807\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\
10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_wrapper build\temp.win-amd64-cpython-312\Release\src\wrapper.obj /OUT:build\lib.win-amd64-cpython-312\OpenGL_accelerate\wrapper.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\src\wrapper.cp312-win_amd64.lib
        姝e湪鍒涘缓搴\x93 build\temp.win-amd64-cpython-312\Release\src\wrapper.cp312-win_amd64.lib 鍜屽\xaf硅薄 build\temp.win-amd64-cpython-312\Release\src\wrapper.cp312-win_amd64.exp
      姝e湪鐢熸垚浠g爜
      宸插畬鎴愪唬鐮佺殑鐢熸垚
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\
src -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af -IC:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\include -IE:\py\include -IE
:\py\Include -IE:\vs\VC\Tools\MSVC\14.40.33807\include -IE:\vs\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.226
21.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\formathandler.c /Fobuild\temp.win-amd64-cpython-312\Release\src\formathandler.obj
      formathandler.c
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\libs /L
IBPATH:E:\py\libs /LIBPATH:E:\py /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\PCbuild\amd64 /LIBPATH:E:\vs\VC\Tools\MSVC\14.40.33807\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\
10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_formathandler build\temp.win-amd64-cpython-312\Release\src\formathandler.obj /OUT:build\lib.win-amd64-cpython-312\OpenGL_accelerate\formathandler.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\src\formathandler.cp312-win_amd64.lib
        姝e湪鍒涘缓搴\x93 build\temp.win-amd64-cpython-312\Release\src\formathandler.cp312-win_amd64.lib 鍜屽\xaf硅薄 build\temp.win-amd64-cpython-312\Release\src\formathandler.cp312-win_amd64.exp
      姝e湪鐢熸垚浠g爜
      宸插畬鎴愪唬鐮佺殑鐢熸垚
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\
src -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af -IC:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\include -IE:\py\include -IE
:\py\Include -IE:\vs\VC\Tools\MSVC\14.40.33807\include -IE:\vs\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.226
21.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\arraydatatype.c /Fobuild\temp.win-amd64-cpython-312\Release\src\arraydatatype.obj
      arraydatatype.c
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\libs /L
IBPATH:E:\py\libs /LIBPATH:E:\py /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\PCbuild\amd64 /LIBPATH:E:\vs\VC\Tools\MSVC\14.40.33807\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\
10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_arraydatatype build\temp.win-amd64-cpython-312\Release\src\arraydatatype.obj /OUT:build\lib.win-amd64-cpython-312\OpenGL_accelerate\arraydatatype.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\src\arraydatatype.cp312-win_amd64.lib
        姝e湪鍒涘缓搴\x93 build\temp.win-amd64-cpython-312\Release\src\arraydatatype.cp312-win_amd64.lib 鍜屽\xaf硅薄 build\temp.win-amd64-cpython-312\Release\src\arraydatatype.cp312-win_amd64.exp
      姝e湪鐢熸垚浠g爜
      宸插畬鎴愪唬鐮佺殑鐢熸垚
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\
src -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af -IC:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\include -IE:\py\include -IE
:\py\Include -IE:\vs\VC\Tools\MSVC\14.40.33807\include -IE:\vs\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.226
21.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\errorchecker.c /Fobuild\temp.win-amd64-cpython-312\Release\src\errorchecker.obj
      errorchecker.c
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\libs /L
IBPATH:E:\py\libs /LIBPATH:E:\py /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\PCbuild\amd64 /LIBPATH:E:\vs\VC\Tools\MSVC\14.40.33807\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\
10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_errorchecker build\temp.win-amd64-cpython-312\Release\src\errorchecker.obj /OUT:build\lib.win-amd64-cpython-312\OpenGL_accelerate\errorchecker.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\src\errorchecker.cp312-win_amd64.lib
        姝e湪鍒涘缓搴\x93 build\temp.win-amd64-cpython-312\Release\src\errorchecker.cp312-win_amd64.lib 鍜屽\xaf硅薄 build\temp.win-amd64-cpython-312\Release\src\errorchecker.cp312-win_amd64.exp
      姝e湪鐢熸垚浠g爜
      宸插畬鎴愪唬鐮佺殑鐢熸垚
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\
src -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af -IC:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\include -IE:\py\include -IE
:\py\Include -IE:\vs\VC\Tools\MSVC\14.40.33807\include -IE:\vs\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.226
21.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\vbo.c /Fobuild\temp.win-amd64-cpython-312\Release\src\vbo.obj
      vbo.c
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\libs /L
IBPATH:E:\py\libs /LIBPATH:E:\py /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\PCbuild\amd64 /LIBPATH:E:\vs\VC\Tools\MSVC\14.40.33807\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\
10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_vbo build\temp.win-amd64-cpython-312\Release\src\vbo.obj /OUT:build\lib.win-amd64-cpython-312\OpenGL_accelerate\vbo.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\src\vbo.cp312-win_amd64.lib
        姝e湪鍒涘缓搴\x93 build\temp.win-amd64-cpython-312\Release\src\vbo.cp312-win_amd64.lib 鍜屽\xaf硅薄 build\temp.win-amd64-cpython-312\Release\src\vbo.cp312-win_amd64.exp
      姝e湪鐢熸垚浠g爜
      宸插畬鎴愪唬鐮佺殑鐢熸垚
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\
src -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af -IC:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\include -IE:\py\include -IE
:\py\Include -IE:\vs\VC\Tools\MSVC\14.40.33807\include -IE:\vs\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.226
21.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\nones_formathandler.c /Fobuild\temp.win-amd64-cpython-312\Release\src\nones_formathandler.obj
      nones_formathandler.c
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\libs /L
IBPATH:E:\py\libs /LIBPATH:E:\py /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\PCbuild\amd64 /LIBPATH:E:\vs\VC\Tools\MSVC\14.40.33807\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\
10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_nones_formathandler build\temp.win-amd64-cpython-312\Release\src\nones_formathandler.obj /OUT:build\lib.win-amd64-cpython-312\OpenGL_accelerate\nones_formathandler.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\src\nones_formathandler.cp312-win_amd64.lib
        姝e湪鍒涘缓搴\x93 build\temp.win-amd64-cpython-312\Release\src\nones_formathandler.cp312-win_amd64.lib 鍜屽\xaf硅薄 build\temp.win-amd64-cpython-312\Release\src\nones_formathandler.cp312-win_amd64.exp      
      姝e湪鐢熸垚浠g爜
      宸插畬鎴愪唬鐮佺殑鐢熸垚
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\
src -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af -IC:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\include -IE:\py\include -IE
:\py\Include -IE:\vs\VC\Tools\MSVC\14.40.33807\include -IE:\vs\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.226
21.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\latebind.c /Fobuild\temp.win-amd64-cpython-312\Release\src\latebind.obj
      latebind.c
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\libs /L
IBPATH:E:\py\libs /LIBPATH:E:\py /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\PCbuild\amd64 /LIBPATH:E:\vs\VC\Tools\MSVC\14.40.33807\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\
10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_latebind build\temp.win-amd64-cpython-312\Release\src\latebind.obj /OUT:build\lib.win-amd64-cpython-312\OpenGL_accelerate\latebind.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\src\latebind.cp312-win_amd64.lib
        姝e湪鍒涘缓搴\x93 build\temp.win-amd64-cpython-312\Release\src\latebind.cp312-win_amd64.lib 鍜屽\xaf硅薄 build\temp.win-amd64-cpython-312\Release\src\latebind.cp312-win_amd64.exp
      姝e湪鐢熸垚浠g爜
      宸插畬鎴愪唬鐮佺殑鐢熸垚
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\
src -IC:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af -IC:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\include -IE:\py\include -IE
:\py\Include -IE:\vs\VC\Tools\MSVC\14.40.33807\include -IE:\vs\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.226
21.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc\buffers_formathandler.c /Fobuild\temp.win-amd64-cpython-312\Release\src\buffers_formathandler.obj
      buffers_formathandler.c
      E:\vs\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\libs /L
IBPATH:E:\py\libs /LIBPATH:E:\py /LIBPATH:C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\PCbuild\amd64 /LIBPATH:E:\vs\VC\Tools\MSVC\14.40.33807\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\
10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_buffers_formathandler build\temp.win-amd64-cpython-312\Release\src\buffers_formathandler.obj /OUT:build\lib.win-amd64-cpython-312\OpenGL_accelerate\buffers_formathandler.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\src\buffers_formathandler.cp312-win_amd64.lib
        姝e湪鍒涘缓搴\x93 build\temp.win-amd64-cpython-312\Release\src\buffers_formathandler.cp312-win_amd64.lib 鍜屽\xaf硅薄 build\temp.win-amd64-cpython-312\Release\src\buffers_formathandler.cp312-win_amd64.exp  
      姝e湪鐢熸垚浠g爜
      宸插畬鎴愪唬鐮佺殑鐢熸垚
      C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-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: C:\Users\Administrator\AppData\Local\Temp\pip-install-dga1wygl\pyopengl-accelerate_fa91fae08ba248d68989ed036b9e74af\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 "C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Administrator\PycharmProjects\PhiRender--Kasytano\venv\Lib\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 "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\build_meta.py", line 415, in build_wheel
          return self._build_with_temp_dir(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\build_meta.py", line 397, in _build_with_temp_dir
          self.run_setup()
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 113, in <module>
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 184, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 200, in run_commands
          dist.run_commands()
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 970, in run_commands
          self.run_command(cmd)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\dist.py", line 974, in run_command
          super().run_command(command)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 989, in run_command
          cmd_obj.run()
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\command\bdist_wheel.py", line 373, in run
          self.run_command("build")
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\dist.py", line 974, in run_command
          super().run_command(command)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 989, in run_command
          cmd_obj.run()
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
          self.run_command(cmd_name)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\dist.py", line 974, in run_command
          super().run_command(command)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 989, in run_command
          cmd_obj.run()
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run
          self.build_extensions()
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 479, in build_extensions
          self._build_extensions_serial()
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 505, in _build_extensions_serial
          self.build_extension(ext)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\Cython\Distutils\build_ext.py", line 130, in build_extension
          new_ext = cythonize(
                    ^^^^^^^^^^
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
          cythonize_one(*args)
        File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-4h1iklmp\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
          raise CompileError(None, pyx_file)
      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

[notice] A new release of pip is available: 23.2.1 -> 24.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip
@whateverforever
Copy link

whateverforever commented Jul 11, 2024

Same here, worked fine in python 3.12.3. Now I get the following

Ubuntu 20.04 (focal)
numpy-1.26.4
python 3.12.4

× Building wheel for PyOpenGL-accelerate (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [150 lines of output]
      /tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/config/expand.py:129: SetuptoolsWarning: File '/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/readme.txt' cannot be found
        return '\n'.join(
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-312
      creating build/lib.linux-x86_64-cpython-312/OpenGL_accelerate
      copying OpenGL_accelerate/__init__.py -> build/lib.linux-x86_64-cpython-312/OpenGL_accelerate
      running build_ext
      /tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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-x86_64-cpython-312
      creating build/temp.linux-x86_64-cpython-312/src
      x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/src -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda -I/builds/software/rc_common_python/.tox/py312/include -I/usr/include/python3.12 -c src/wrapper.c -o build/temp.linux-x86_64-cpython-312/src/wrapper.o
      x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-312/src/wrapper.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-312/OpenGL_accelerate/wrapper.cpython-312-x86_64-linux-gnu.so
      /tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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
      x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/src -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda -I/builds/software/rc_common_python/.tox/py312/include -I/usr/include/python3.12 -c src/formathandler.c -o build/temp.linux-x86_64-cpython-312/src/formathandler.o
      x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-312/src/formathandler.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-312/OpenGL_accelerate/formathandler.cpython-312-x86_64-linux-gnu.so
      /tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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
      x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/src -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda -I/builds/software/rc_common_python/.tox/py312/include -I/usr/include/python3.12 -c src/arraydatatype.c -o build/temp.linux-x86_64-cpython-312/src/arraydatatype.o
      x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-312/src/arraydatatype.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-312/OpenGL_accelerate/arraydatatype.cpython-312-x86_64-linux-gnu.so
      /tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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
      x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/src -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda -I/builds/software/rc_common_python/.tox/py312/include -I/usr/include/python3.12 -c src/errorchecker.c -o build/temp.linux-x86_64-cpython-312/src/errorchecker.o
      x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-312/src/errorchecker.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-312/OpenGL_accelerate/errorchecker.cpython-312-x86_64-linux-gnu.so
      /tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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
      x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/src -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda -I/builds/software/rc_common_python/.tox/py312/include -I/usr/include/python3.12 -c src/vbo.c -o build/temp.linux-x86_64-cpython-312/src/vbo.o
      x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-312/src/vbo.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-312/OpenGL_accelerate/vbo.cpython-312-x86_64-linux-gnu.so
      /tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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
      x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/src -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda -I/builds/software/rc_common_python/.tox/py312/include -I/usr/include/python3.12 -c src/nones_formathandler.c -o build/temp.linux-x86_64-cpython-312/src/nones_formathandler.o
      x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-312/src/nones_formathandler.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-312/OpenGL_accelerate/nones_formathandler.cpython-312-x86_64-linux-gnu.so
      /tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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
      x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/src -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda -I/builds/software/rc_common_python/.tox/py312/include -I/usr/include/python3.12 -c src/latebind.c -o build/temp.linux-x86_64-cpython-312/src/latebind.o
      src/latebind.c:2916:12: warning: ‘__pyx_pw_17OpenGL_accelerate_8latebind_8LateBind_5__nonzero__’ defined but not used [-Wunused-function]
       2916 | static int __pyx_pw_17OpenGL_accelerate_8latebind_8LateBind_5__nonzero__(PyObject *__pyx_v_self) {
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -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-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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 -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/src -I/tmp/pip-install-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda -I/builds/software/rc_common_python/.tox/py312/include -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 -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -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-njo_xi2_/overlay/lib/python3.12/site-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-quoultbw/pyopengl-accelerate_013706fcc0114463b68fad828254edda/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 "/builds/software/rc_common_python/.tox/py312/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/builds/software/rc_common_python/.tox/py312/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/builds/software/rc_common_python/.tox/py312/lib/python3.12/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-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 415, in build_wheel
          return self._build_with_temp_dir(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 113, in <module>
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 974, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 373, in run
          self.run_command("build")
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 974, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 974, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
          self.build_extensions()
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
          self._build_extensions_serial()
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
          self.build_extension(ext)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/Cython/Distutils/build_ext.py", line 130, in build_extension
          new_ext = cythonize(
                    ^^^^^^^^^^
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
          cythonize_one(*args)
        File "/tmp/pip-build-env-njo_xi2_/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
          raise CompileError(None, pyx_file)
      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
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyOpenGL-accelerate)
Collecting PyOpenGL

@MoralCode
Copy link

this looks like it was fixed in 3.1.8, specifically commit f897b0e

https://github.com/mcfletch/pyopengl/releases/tag/release-3.1.8

seems like its just not released to pypi, you can maybe try installing the zip version in the meantime until it lands on pypi

@MoralCode
Copy link

see also #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants