python-pika fails to build with Python 3.14.0a5. test_tornado_connection_call_parent (unit.tornado_tests.TornadoConnectionTests.test_tornado_connection_call_parent) ... /usr/lib64/python3.14/site-packages/tornado/ioloop.py:280: DeprecationWarning: 'asyncio.set_event_loop' is deprecated and slated for removal in Python 3.16 asyncio.set_event_loop(loop) ok Wrapped func exited with exception. Caller's stack: Traceback (most recent call last): File "/builddir/build/BUILD/python-pika-1.3.2-build/pika-1.3.2/pika/diagnostic_utils.py", line 53, in log_exception_func_wrap return func(*args, **kwargs) File "/builddir/build/BUILD/python-pika-1.3.2-build/pika-1.3.2/tests/unit/diagnostic_utils_test.py", line 75, in my_func_that_raises raise exception Exception: Oops! ====================================================================== ERROR: unit.io_services_test_stubs_test (nose2.loader.ModuleImportFailure.unit.io_services_test_stubs_test) ---------------------------------------------------------------------- ImportError: Failed to import test module: unit.io_services_test_stubs_test Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/nose2/plugins/loader/discovery.py", line 195, in _find_tests_in_file module = util.module_from_name(module_name) File "/usr/lib/python3.14/site-packages/nose2/util.py", line 73, in module_from_name __import__(name) ~~~~~~~~~~^^^^^^ File "/builddir/build/BUILD/python-pika-1.3.2-build/pika-1.3.2/tests/unit/io_services_test_stubs_test.py", line 45, in <module> _SUPPORTED_LOOP_CLASSES.add(asyncio.get_event_loop().__class__) ~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/asyncio/events.py", line 719, in get_event_loop raise RuntimeError('There is no current event loop in thread %r.' % threading.current_thread().name) RuntimeError: There is no current event loop in thread 'MainThread'. According to https://docs.python.org/dev/whatsnew/3.14.html#id3 Removed implicit creation of event loop by asyncio.get_event_loop(). It now raises a RuntimeError if there is no current event loop. (Contributed by Kumar Aditya in gh-126353.) https://docs.python.org/3.14/whatsnew/3.14.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08736368-python-pika/ For all our attempts to build python-pika with Python 3.14, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-pika/ 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.14: https://copr.fedorainfracloud.org/coprs/g/python/python3.14/ Let us know here if you have any questions. Python 3.14 is planned to be included in Fedora 43. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14. 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.
Reported upstream (the deprecation warning since 3.12) here: https://github.com/pika/pika/issues/1479