Bug 1953535 - ImportError: cannot import name '_PY3' from 'twisted.python.compat'
Summary: ImportError: cannot import name '_PY3' from 'twisted.python.compat'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-treq
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Yatin Karel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1960256 (view as bug list)
Depends On:
Blocks: 1918426
TreeView+ depends on / blocked
 
Reported: 2021-04-26 10:34 UTC by Dan Callaghan
Modified: 2021-07-18 08:17 UTC (History)
5 users (show)

Fixed In Version: python-treq-21.5.0-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-15 01:03:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dan Callaghan 2021-04-26 10:34:44 UTC
Description of problem:


Version-Release number of selected component (if applicable):
python3-treq-18.6.0-5.fc34.noarch
python3-twisted-21.2.0-2.fc35.noarch

How reproducible:
easily

Steps to Reproduce:
python3 -c 'import treq.client'

Actual results:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.9/site-packages/treq/__init__.py", line 5, in <module>
    from treq.api import head, get, post, put, patch, delete, request
  File "/usr/lib/python3.9/site-packages/treq/api.py", line 5, in <module>
    from treq.client import HTTPClient
  File "/usr/lib/python3.9/site-packages/treq/client.py", line 11, in <module>
    from twisted.python.compat import _PY3, unicode
ImportError: cannot import name '_PY3' from 'twisted.python.compat' (unknown location)

Expected results:
Should import successfully

Additional info:
Fixed upstream already:
https://github.com/twisted/treq/pull/290
The fix is included in the 20.9.0 release (see bug 1813778).

This prevents the latest version of matrix-synapse from building.

Comment 1 Gwyn Ciesla 2021-04-27 20:51:38 UTC
This also prevents the current version of matrix-synapse from running.

Comment 2 Gwyn Ciesla 2021-04-27 20:56:35 UTC
Updating python3-treq to a build of 21.1.0 from rawhide for f34 fixes synapse.

Comment 3 Kai A. Hiller 2021-07-03 22:03:26 UTC
Please update python-treq to 20.9.0 or newer for Fedora 34 so we can update matrix-synapse to its newest version.

Comment 4 Fedora Update System 2021-07-06 14:26:53 UTC
FEDORA-2021-58cefb2bf4 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-58cefb2bf4

Comment 5 Fedora Update System 2021-07-07 01:15:41 UTC
FEDORA-2021-58cefb2bf4 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-58cefb2bf4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-58cefb2bf4

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

Comment 6 Fedora Update System 2021-07-15 01:03:35 UTC
FEDORA-2021-58cefb2bf4 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Dan Callaghan 2021-07-18 08:17:52 UTC
*** Bug 1960256 has been marked as a duplicate of this bug. ***


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