python-pyqt6 fails to build with Python 3.13.0a1. WARNING: Couldn't create 'sipbuild.generator.parser.parsetab'. [Errno 13] Permission denied: '/usr/lib64/python3.13/site-packages/sipbuild/generator/parser/parsetab.py' Generating the QtCore .api file... Generating the QtCore .pyi file... sip-build: An internal error occurred... Traceback (most recent call last): File "/usr/bin/sip-build", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib64/python3.13/site-packages/sipbuild/tools/build.py", line 37, in main handle_exception(e) File "/usr/lib64/python3.13/site-packages/sipbuild/exceptions.py", line 81, in handle_exception raise e File "/usr/lib64/python3.13/site-packages/sipbuild/tools/build.py", line 34, in main project.build() File "/usr/lib64/python3.13/site-packages/sipbuild/project.py", line 245, in build self.builder.build() File "/usr/lib64/python3.13/site-packages/sipbuild/builder.py", line 48, in build self._generate_bindings() File "/usr/lib64/python3.13/site-packages/sipbuild/builder.py", line 280, in _generate_bindings buildable = bindings.generate() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/site-packages/sipbuild/bindings.py", line 214, in generate output_pyi(spec, project, pyi_path) File "/usr/lib64/python3.13/site-packages/sipbuild/generator/outputs/pyi.py", line 53, in output_pyi _module(pf, spec, module) File "/usr/lib64/python3.13/site-packages/sipbuild/generator/outputs/pyi.py", line 132, in _module _class(pf, spec, module, klass, defined) File "/usr/lib64/python3.13/site-packages/sipbuild/generator/outputs/pyi.py", line 282, in _class _ctor(pf, spec, module, ctor, nr_overloads > 1, defined, indent) File "/usr/lib64/python3.13/site-packages/sipbuild/generator/outputs/pyi.py", line 356, in _ctor as_str = _argument(spec, module, arg, defined, arg_nr=arg_nr) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/site-packages/sipbuild/generator/outputs/pyi.py", line 676, in _argument s += _type(spec, module, arg, defined, out=out) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/site-packages/sipbuild/generator/outputs/pyi.py", line 710, in _type return ArgumentFormatter(spec, arg).as_type_hint(module, out, defined) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/site-packages/sipbuild/generator/outputs/formatters/argument.py", line 327, in as_type_hint s += TypeHintManager(self.spec).as_type_hint(hint, out, context, ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/site-packages/sipbuild/generator/outputs/type_hints.py", line 107, in __new__ manager = cls._spec_manager_map[spec] ~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/lib64/python3.13/weakref.py", line 415, in __getitem__ return self.data[ref(key)] ~~~~~~~~~^^^^^^^^^^ File "<string>", line 4, in __eq__ File "<string>", line 4, in __eq__ File "<string>", line 4, in __eq__ [Previous line repeated 495 more times] RecursionError: maximum recursion depth exceeded in comparison https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06593990-python-pyqt6/ For all our attempts to build python-pyqt6 with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-pyqt6/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.
With bz2250649 mitigated, I see: In file included from /usr/include/qt6/QtCore/qfuture.h:9, from /usr/include/qt6/QtCore/QtCore:106, from /usr/include/qt6/QtDesigner/QtDesignerDepends:3, from /usr/include/qt6/QtDesigner/QtDesigner:3, from ../../designer/pluginloader.h:28, from ../../designer/pluginloader.cpp:24: /usr/include/qt6/QtCore/qfutureinterface.h:472:37: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 472 | explicit QFutureInterface<void>(State initialState = NoState) | ^~~~~ /usr/include/qt6/QtCore/qfutureinterface.h:472:37: note: remove the ‘< >’ ../../designer/pluginloader.cpp: In constructor ‘PyCustomWidgets::PyCustomWidgets(QObject*)’: ../../designer/pluginloader.cpp:146:17: error: ‘Py_SetProgramName’ was not declared in this scope; did you mean ‘Py_GetProgramName’? 146 | Py_SetProgramName(venv_wc); | ^~~~~~~~~~~~~~~~~ | Py_GetProgramName make[1]: *** [Makefile:801: pluginloader.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/PyQt6-6.6.1/build/designer' g++ -c -pipe -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer `pkg-config --cflags dbus-python` -DQT_NO_INT128 -Wall -Wextra -D_REENTRANT -fPIC -DPYTHON_LIB=\"libpython3.13.so\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_OPENGLWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I. -I/usr/include/python3.13 -I../../designer -I/usr/include/qt6 -I/usr/include/qt6/QtDesigner -I/usr/include/qt6/QtUiPlugin -I/usr/include/qt6/QtOpenGLWidgets -I/usr/include/qt6/QtWidgets -I/usr/include/qt6/QtOpenGL -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtXml -I/usr/include/qt6/QtCore -I. -I/usr/lib64/qt6/mkspecs/linux-g++ -o moc_pluginloader.o moc_pluginloader.cpp make[1]: Leaving directory '/builddir/build/BUILD/PyQt6-6.6.1/build/designer' In file included from /usr/include/qt6/QtCore/qfuture.h:9, from /usr/include/qt6/QtCore/QtCore:106, from /usr/include/qt6/QtDesigner/QtDesignerDepends:3, from /usr/include/qt6/QtDesigner/QtDesigner:3, from ../../designer/pluginloader.h:28, from moc_pluginloader.cpp:9: /usr/include/qt6/QtCore/qfutureinterface.h:472:37: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] 472 | explicit QFutureInterface<void>(State initialState = NoState) | ^~~~~ /usr/include/qt6/QtCore/qfutureinterface.h:472:37: note: remove the ‘< >’ make: *** [Makefile:82: sub-designer-make_first-ordered] Error 2 https://docs.python.org/3.13/whatsnew/3.13.html says: > Remove the following old functions to configure the Python initialization, deprecated in Python 3.11: > > ... > > Py_SetProgramName(): set PyConfig.program_name instead. > > https://docs.python.org/3.13/c-api/init_config.html#c.PyConfig > https://peps.python.org/pep-0587/ > https://github.com/python/cpython/issues/105145