Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1794283 - python-eventlet fails to build with Python 3.9: module '' has no attribute '_is_main_interpreter'
Summary: python-eventlet fails to build with Python 3.9: module '
Alias: None
Product: Fedora
Classification: Fedora
Component: python-eventlet
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
Reported: 2020-01-23 08:03 UTC by Miro Hrončok
Modified: 2020-05-25 18:27 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-05-25 18:27:17 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github eventlet eventlet issues 604 0 None open missing attibute '_is_main_interpreter' (python 3.9 support) 2020-05-25 18:26:51 UTC

Description Miro Hrončok 2020-01-23 08:03:01 UTC
python-eventlet fails to build with Python 3.9.0a2.

Traceback (most recent call last):
  File "/builddir/build/BUILD/eventlet-0.25.1/tests/isolated/", line 21, in <module>
  File "/builddir/build/BUILD/eventlet-0.25.1/eventlet/", line 285, in monkey_patch
    modules_to_patch += modules_function()
  File "/builddir/build/BUILD/eventlet-0.25.1/eventlet/", line 435, in _green_thread_modules
    from import threading
  File "/builddir/build/BUILD/eventlet-0.25.1/eventlet/green/", line 22, in <module>
  File "/builddir/build/BUILD/eventlet-0.25.1/eventlet/", line 100, in inject
    module = __import__(module_name, {}, {}, module_name.split('.')[:-1])
  File "/usr/lib64/python3.9/", line 37, in <module>
    _is_main_interpreter = _thread._is_main_interpreter
AttributeError: module '' has no attribute '_is_main_interpreter'

For the build logs, see:

For all our attempts to build python-eventlet with Python 3.9, see:

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.9:

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
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 Karthikeyan Singaravelan 2020-01-23 08:19:04 UTC
Related CPython issue where this new attribute was added :

Comment 2 Ben Cotton 2020-02-11 17:27:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 3 Miro Hrončok 2020-03-16 13:41:56 UTC
Kevin, could you please have look and report this upstream if needed? Thanks.

Comment 4 Kevin Fenzi 2020-03-16 21:54:03 UTC
Odd. I can't seem to find the build logs? The link is 404 and I can't see any directory for it?

Comment 5 Miro Hrončok 2020-03-16 21:59:47 UTC
Copr garbage collects old logs.

I've scheduled a new build, it should show up in a few seconds/minutes in:

Comment 7 Kevin Fenzi 2020-03-19 23:16:29 UTC
Filed upstream for this issue.

Comment 8 Miro Hrončok 2020-05-25 13:01:42 UTC
This comment is mass posted to all bugs blocking the Python 3.9 tracker, sorry if it is not 100 % relevant. When in doubt, please ask.

The Python 3.9 rebuild is in progress in a Koji side tag.

If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with:

    $ fedpkg build --target=f33-python

The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you.

You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together.

If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned in the initial comment of this bug:

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