Open catnoteafish opened 1 month ago
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
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: