Bug 2290569 - python-gevent test suite fails with Python 3.13: AttributeError: '_MainThread' object has no attribute '_tstate_lock'
Summary: python-gevent test suite fails with Python 3.13: AttributeError: '_MainThread...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-gevent
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13 2291010 2291976 2301218
TreeView+ depends on / blocked
 
Reported: 2024-06-05 15:15 UTC by Karolina Surma
Modified: 2024-10-17 23:11 UTC (History)
4 users (show)

Fixed In Version: python-gevent-24.10.2-1.fc41
Clone Of:
Environment:
Last Closed: 2024-10-17 23:11:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github gevent gevent issues 2037 0 None open Test failure with Python 3.13 2024-06-14 04:24:03 UTC

Description Karolina Surma 2024-06-05 15:15:30 UTC
python-gevent fails to build with Python 3.13.0b1.

Among others, there's a multiple times:

    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "/builddir/build/BUILD/python-gevent-23.9.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/gevent/monkey.py", line 1358, in <module>
        main()
        ~~~~^^
      File "/builddir/build/BUILD/python-gevent-23.9.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/gevent/monkey.py", line 1310, in main
        patch_all(**args)
        ~~~~~~~~~^^^^^^^^
      File "/builddir/build/BUILD/python-gevent-23.9.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/gevent/monkey.py", line 1219, in patch_all
        patch_thread(Event=Event, _warnings=_warnings)
        ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/python-gevent-23.9.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/gevent/monkey.py", line 187, in ignores
        return func(*args, **kwargs)
      File "/builddir/build/BUILD/python-gevent-23.9.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/gevent/monkey.py", line 826, in patch_thread
        main_thread.__real_tstate_lock = main_thread._tstate_lock
                                         ^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: '_MainThread' object has no attribute '_tstate_lock'

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://download.copr.fedorainfracloud.org/results/@python/python3.13-b1/fedora-rawhide-x86_64/07532241-python-gevent

For all our attempts to build python-x2go with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13-b1/package/python-gevent/

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-b1/

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.

Comment 1 Fedora Update System 2024-10-11 14:43:17 UTC
FEDORA-2024-afc877d757 (python-gevent-24.10.2-1.fc41, python-greenlet-3.1.1-1.fc41, and 1 more) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-afc877d757

Comment 2 Fedora Update System 2024-10-12 03:12:29 UTC
FEDORA-2024-afc877d757 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-afc877d757`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-afc877d757

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2024-10-17 23:11:02 UTC
FEDORA-2024-afc877d757 (python-gevent-24.10.2-1.fc41, python-greenlet-3.1.1-1.fc41, and 1 more) has been pushed to the Fedora 41 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.