Bug 2327987 - python-reactivex fails to build with Python 3.14: RuntimeError: There is no current event loop in thread 'MainThread'.
Summary: python-reactivex fails to build with Python 3.14: RuntimeError: There is no c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-reactivex
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Traylen
QA Contact:
URL:
Whiteboard:
: 2372098 (view as bug list)
Depends On:
Blocks: F43FTBFS F43FailsToInstall PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2024-11-22 10:15 UTC by Karolina Surma
Modified: 2025-06-14 14:41 UTC (History)
4 users (show)

Fixed In Version: python-reactivex-4.0.4-11.fc43 python-reactivex-4.0.4-13.fc43
Clone Of:
Environment:
Last Closed: 2025-06-14 14:41:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-11-22 10:15:37 UTC
python-reactivex fails to build with Python 3.14.0a2.

_____ TestAsyncIOThreadSafeScheduler.test_asyncio_threadsafe_schedule_now ______

self = <tests.test_scheduler.test_eventloop.test_asynciothreadsafescheduler.TestAsyncIOThreadSafeScheduler testMethod=test_asyncio_threadsafe_schedule_now>

    @pytest.mark.skipif(CI, reason="Flaky test in GitHub Actions")
    def test_asyncio_threadsafe_schedule_now(self):
>       loop = asyncio.get_event_loop()

tests/test_scheduler/test_eventloop/test_asynciothreadsafescheduler.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7f345e20fb60>

    def get_event_loop(self):
        """Get the event loop for the current context.
    
        Returns an instance of EventLoop or raises an exception.
        """
        if self._local._loop is None:
>           raise RuntimeError('There is no current event loop in thread %r.'
                               % threading.current_thread().name)
E           RuntimeError: There is no current event loop in thread 'MainThread'.

/usr/lib64/python3.14/asyncio/events.py:681: RuntimeError

=========================== short test summary info ============================
FAILED tests/test_observable/test_flatmap_async.py::TestFlatMapAsync::test_flat_map_async
FAILED tests/test_observable/test_fromfuture.py::TestFromFuture::test_future_cancel
FAILED tests/test_observable/test_fromfuture.py::TestFromFuture::test_future_dispose
FAILED tests/test_observable/test_fromfuture.py::TestFromFuture::test_future_failure
FAILED tests/test_observable/test_fromfuture.py::TestFromFuture::test_future_success
FAILED tests/test_observable/test_start.py::TestStart::test_start_async - Run...
FAILED tests/test_observable/test_start.py::TestStart::test_start_async_error
FAILED tests/test_observable/test_tofuture.py::TestToFuture::test_await_empty_observable
FAILED tests/test_observable/test_tofuture.py::TestToFuture::test_await_error
FAILED tests/test_observable/test_tofuture.py::TestToFuture::test_await_success
FAILED tests/test_observable/test_tofuture.py::TestToFuture::test_await_success_on_sequence
FAILED tests/test_observable/test_tofuture.py::TestToFuture::test_await_with_delay
FAILED tests/test_observable/test_tofuture.py::TestToFuture::test_cancel - Ru...
FAILED tests/test_observable/test_tofuture.py::TestToFuture::test_dispose_on_cancel
FAILED tests/test_scheduler/test_eventloop/test_asyncioscheduler.py::TestAsyncIOScheduler::test_asyncio_schedule_action
FAILED tests/test_scheduler/test_eventloop/test_asyncioscheduler.py::TestAsyncIOScheduler::test_asyncio_schedule_action_cancel
FAILED tests/test_scheduler/test_eventloop/test_asyncioscheduler.py::TestAsyncIOScheduler::test_asyncio_schedule_action_due
FAILED tests/test_scheduler/test_eventloop/test_asyncioscheduler.py::TestAsyncIOScheduler::test_asyncio_schedule_now
FAILED tests/test_scheduler/test_eventloop/test_asynciothreadsafescheduler.py::TestAsyncIOThreadSafeScheduler::test_asyncio_threadsafe_schedule_action
FAILED tests/test_scheduler/test_eventloop/test_asynciothreadsafescheduler.py::TestAsyncIOThreadSafeScheduler::test_asyncio_threadsafe_schedule_action_cancel
FAILED tests/test_scheduler/test_eventloop/test_asynciothreadsafescheduler.py::TestAsyncIOThreadSafeScheduler::test_asyncio_threadsafe_schedule_action_due
FAILED tests/test_scheduler/test_eventloop/test_asynciothreadsafescheduler.py::TestAsyncIOThreadSafeScheduler::test_asyncio_threadsafe_schedule_now
======== 22 failed, 1302 passed, 10 skipped, 192461 warnings in 21.65s =========

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.)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08292640-python-reactivex/

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

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 Steve Traylen 2025-02-23 14:09:38 UTC
A partial fix in https://src.fedoraproject.org/rpms/python-reactivex/pull-request/3

But now other things to fix.

Comment 4 Fedora Update System 2025-02-23 14:45:37 UTC
FEDORA-2025-7cb8d64729 (python-reactivex-4.0.4-11.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7cb8d64729

Comment 5 Fedora Update System 2025-02-23 14:47:46 UTC
FEDORA-2025-7cb8d64729 (python-reactivex-4.0.4-11.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Steve Traylen 2025-02-23 14:49:23 UTC
Realised never check py14 actually but certainly this is good anyway for current rawhide. Could not get mock and py14 to work.

Check in a few days -.. it will be a different error if anything anyway....

Comment 7 Steve Traylen 2025-02-23 15:28:01 UTC
Still very much present.

Comment 8 Aoife Moloney 2025-02-26 13:17:39 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 10 Karolina Surma 2025-06-11 16:03:42 UTC
*** Bug 2372098 has been marked as a duplicate of this bug. ***

Comment 11 Fedora Update System 2025-06-14 14:37:03 UTC
FEDORA-2025-c19b45c564 (python-reactivex-4.0.4-13.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-c19b45c564

Comment 12 Fedora Update System 2025-06-14 14:41:00 UTC
FEDORA-2025-c19b45c564 (python-reactivex-4.0.4-13.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


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