Bug 2353141 - python-nest-asyncio fails to build with Python 3.14: test_timeout: RuntimeError: Timeout should be used inside a task
Summary: python-nest-asyncio fails to build with Python 3.14: test_timeout: RuntimeErr...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-nest-asyncio
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-03-18 11:11 UTC by Karolina Surma
Modified: 2025-03-26 13:25 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-03-26 13:25:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-03-18 11:11:59 UTC
python-nest-asyncio fails to build with Python 3.14.0a6.

ERROR: test_timeout (__main__.NestTest.test_timeout)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-nest-asyncio-1.6.0-build/nest_asyncio-1.6.0/tests/nest_test.py", line 74, in test_timeout
    self.loop.run_until_complete(f2())
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/builddir/build/BUILD/python-nest-asyncio-1.6.0-build/BUILDROOT/usr/lib/python3.14/site-packages/nest_asyncio.py", line 98, in run_until_complete
    return f.result()
           ~~~~~~~~^^
  File "/usr/lib64/python3.14/asyncio/futures.py", line 208, in result
    raise self._exception.with_traceback(self._exception_tb)
  File "/usr/lib64/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result
    result = coro.send(None)
  File "/builddir/build/BUILD/python-nest-asyncio-1.6.0-build/nest_asyncio-1.6.0/tests/nest_test.py", line 71, in f2
    asyncio.run(asyncio.wait_for(f1(), 0.01))
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-nest-asyncio-1.6.0-build/BUILDROOT/usr/lib/python3.14/site-packages/nest_asyncio.py", line 30, in run
    return loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/builddir/build/BUILD/python-nest-asyncio-1.6.0-build/BUILDROOT/usr/lib/python3.14/site-packages/nest_asyncio.py", line 98, in run_until_complete
    return f.result()
           ~~~~~~~~^^
  File "/usr/lib64/python3.14/asyncio/futures.py", line 208, in result
    raise self._exception.with_traceback(self._exception_tb)
  File "/usr/lib64/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result
    result = coro.send(None)
  File "/usr/lib64/python3.14/asyncio/tasks.py", line 493, in wait_for
    async with timeouts.timeout(timeout):
               ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib64/python3.14/asyncio/timeouts.py", line 88, in __aenter__
    raise RuntimeError("Timeout should be used inside a task")
RuntimeError: Timeout should be used inside a task

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/08783452-python-nest-asyncio/

For all our attempts to build python-nest-asyncio with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-nest-asyncio/

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.

Comment 2 Miro Hrončok 2025-03-26 13:25:46 UTC
PR merged, fixed in distgit.


Note You need to log in before you can comment on or make changes to this bug.