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 1936332 - python-magic-wormhole-mailbox-server: FTBFS in Fedora rawhide
Summary: python-magic-wormhole-mailbox-server: FTBFS in Fedora rawhide
Alias: None
Product: Fedora
Classification: Fedora
Component: python-magic-wormhole-mailbox-server
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2021-03-08 08:39 UTC by Tomáš Hrnčiar
Modified: 2021-06-14 10:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-06-14 10:35:54 UTC
Type: Bug

Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-03-08 08:39:12 UTC
Description of problem:
Package python-magic-wormhole-mailbox-server fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
koji build --scratch f35 python-magic-wormhole-mailbox-server-0.4.1-5.fc34.src.rpm

Additional info:
This package is tracked by Koschei. See:

Comment 1 Fabio Valentini 2021-03-11 15:12:47 UTC
The root cause of this seems to be in another python package - treq:

ERROR: test_web (unittest.loader._FailedTest)
ImportError: Failed to import test module: test_web
Traceback (most recent call last):
  File "/usr/lib64/python3.9/unittest/", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/magic-wormhole-mailbox-server-0.4.1/src/wormhole_mailbox_server/test/", line 4, in <module>
    import treq
  File "/usr/lib/python3.9/site-packages/treq/", line 5, in <module>
    from treq.api import head, get, post, put, patch, delete, request
  File "/usr/lib/python3.9/site-packages/treq/", line 5, in <module>
    from treq.client import HTTPClient
  File "/usr/lib/python3.9/site-packages/treq/", line 11, in <module>
    from twisted.python.compat import _PY3, unicode
ImportError: cannot import name '_PY3' from 'twisted.python.compat' (unknown location)

Looks like it's not compatible with the latest twisted - did it remove python 2 / 3 compat stuff?

Comment 2 Fabio Valentini 2021-05-13 10:26:37 UTC
This seems to have been fixed in rawhide by updating treq to 21.1.0. However, the same issue is now happening in Fedora 34, with twisted having been updated, but not treq ...

Dan, would it be possible to push treq 21.1.0 to Fedora 34 as well?

Comment 3 Dan Callaghan 2021-05-13 21:36:50 UTC
The place to ask is on bug 1813778.

Comment 4 Miro Hrončok 2021-06-04 20:13:36 UTC
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla.

The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide.

You can either build the package in the side tag, with:

    $ fedpkg build --target=f35-python

Or you can the build and we will eventually build it for you.

Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away.


See also

If you have general questions about the rebuild, please use this mailing list thread:

Comment 5 Miro Hrončok 2021-06-07 22:58:22 UTC
The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build.

Comment 6 Miro Hrončok 2021-06-14 10:35:54 UTC
This package was successfully rebuilt with Python 3.10.

If you need this bugzilla open for tracking purposes, sorry for the automatic closing: feel free to reopen it.

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