Bug 2182954 - python3-twisted: non-importable modules
Summary: python3-twisted: non-importable modules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-twisted
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2179155
TreeView+ depends on / blocked
 
Reported: 2023-03-30 03:22 UTC by Carl George 🤠
Modified: 2023-04-14 00:43 UTC (History)
2 users (show)

Fixed In Version: python-twisted-22.10.0-3.fc39 python-twisted-22.10.0-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-05 09:08:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Carl George 🤠 2023-03-30 03:22:27 UTC
Description of problem:
The version of twisted added to EPEL 9 (bug 2049035) is not compatible with the version of attrs in RHEL 9.


Version-Release number of selected component (if applicable):
python3-twisted-22.10.0-1.el9
python3-attrs-20.3.0-7.el9


How reproducible:
always


Steps to Reproduce:
1. python3 -c 'from twisted.trial.unittest import TestCase'


Actual results:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.9/site-packages/twisted/trial/unittest.py", line 10, in <module>
    from twisted.trial._asyncrunner import TestDecorator, TestSuite, decorate
  File "/usr/lib/python3.9/site-packages/twisted/trial/_asyncrunner.py", line 19, in <module>
    from twisted.trial._synctest import _logObserver
  File "/usr/lib/python3.9/site-packages/twisted/trial/_synctest.py", line 37, in <module>
    from attrs import frozen
ModuleNotFoundError: No module named 'attrs'


Expected results:
successful import


Additional info:
The attrs namespace wasn't added to the attrs module until version 21.3.0.

https://www.attrs.org/en/21.3.0/changelog.html

It might work to just patch twisted to use `from attr import ...` (the older interface) instead of `from attrs import ...`, but I haven't tested it.

Comment 1 Fedora Update System 2023-04-05 08:55:23 UTC
FEDORA-2023-d2db26f5cd has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d2db26f5cd

Comment 2 Fedora Update System 2023-04-05 09:08:59 UTC
FEDORA-2023-d2db26f5cd has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2023-04-05 15:13:00 UTC
FEDORA-EPEL-2023-f2f109d384 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-f2f109d384

Comment 4 Fedora Update System 2023-04-06 03:02:55 UTC
FEDORA-EPEL-2023-f2f109d384 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-f2f109d384

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

Comment 5 Fedora Update System 2023-04-14 00:43:39 UTC
FEDORA-EPEL-2023-f2f109d384 has been pushed to the Fedora EPEL 9 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.