GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Test failure with Python 3.13 · Issue #2037 · gevent/gevent

Test failure with Python 3.13 #2037

New issue
Copy link
New issue
Copy link
Closed
Closed
Test failure with Python 3.13#2037
Copy link

Description

@opoplawski
opoplawski
opened on Jun 14, 2024
Issue body actions
  • gevent version: 24.2.1 - source
  • Python version: 3.13b2
  • Operating System: Fedora Rawhide x86_64

Description:

Fedora has update rawhide to python 3.13. gevent tests fail with:

    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-24.2.1-build/BUILDROOT/usr/lib64/python3.13/site-packages/gevent/monkey.py", line 1358, in <module>
        main()
        ~~~~^^
      File "/builddir/build/BUILD/python-gevent-24.2.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-24.2.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-24.2.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-24.2.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'
Reacted by Roman Inflianskas and Alexander Shadchin

Activity

  1. rominf commented on Jul 5, 2024

    @rominf
    rominf
    on Jul 5, 2024
    More actions

    This is caused by changes in CPython: python/cpython#114839.

    The combination of _tstate_lock and _ThreadHandle is replaced by _ThreadHandle and the supporting infrastructure for _tstate_lock is removed.

    Also, the latest Cython does not fully support Python 3.13: cython/cython#6251 (some tests fail on my machine as well).

    I suggest waiting for a Cython release that fully supports Python 3.13 before attempting to fix this issue.

  2. ngoldbaum commented on Aug 8, 2024

    @ngoldbaum
    ngoldbaum
    on Aug 8, 2024
    More actions

    There's a Cython nightly wheel if you want to get started on this now: https://anaconda.org/scientific-python-nightly-wheels/cython

  3. opoplawski commented on Oct 8, 2024

    @opoplawski
    opoplawski
    on Oct 8, 2024
    Author
    More actions

    Can this get addressed? Fedora 41 is about to be released with Python 3.13 and this is causing issues with a number of packages. Thanks.

  4. jamadden
    closed this as completedon Oct 9, 2024
  5. elazar
    added a commit that references this issue on Nov 1, 2025

    docs: Document gevent/Python 3.12 threading warnings

    9279d66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.