Bug 1879235 - Python3.9: AttributeError: _scope_id
Summary: Python3.9: AttributeError: _scope_id
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: salt
Version: 33
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: David Murphy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-15 18:07 UTC by Frédéric Pierret
Modified: 2020-11-04 03:00 UTC (History)
4 users (show)

Fixed In Version: salt-3002-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 03:00:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Frédéric Pierret 2020-09-15 18:07:10 UTC
Following my comment on upstream https://github.com/saltstack/salt/issues/57456#issuecomment-692842325, I'm encountering the issue:

File "/usr/lib64/python3.9/ipaddress.py", line 1920, in __hash__
              return hash((self._ip, self._scope_id))
          AttributeError: _scope_id

salt is overriding IPv6Address of ipaddress module by IPv6AddressScoped but, in python3.9, there is a new attribute called _scope_id that salt does not currently provide. I've solved it by setting it in salt: https://github.com/fepitre/salt/commit/4c5e18bfd092d9003d12c89131f787a57d54cf38. If you are interested, I can submit a PR. Comments are welcomed.

Comment 1 Gwyn Ciesla 2020-10-26 03:00:57 UTC
Please do, I'm hitting this on f33.

Comment 2 Gwyn Ciesla 2020-10-26 03:18:00 UTC
Upstream PR I mean. I'm adding this patch to the Fedora packages.

Comment 3 Fedora Update System 2020-10-26 03:36:16 UTC
FEDORA-2020-b5a7428f0f has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b5a7428f0f

Comment 4 Fedora Update System 2020-10-27 02:36:30 UTC
FEDORA-2020-b5a7428f0f has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b5a7428f0f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b5a7428f0f

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

Comment 5 Frédéric Pierret 2020-10-27 13:40:54 UTC
(In reply to Gwyn Ciesla from comment #2)
> Upstream PR I mean. I'm adding this patch to the Fedora packages.

Yes it's already a pending PR on upstream. Do you think to backport this patch to FC32 too?

Comment 6 Gwyn Ciesla 2020-10-27 14:16:35 UTC
No, f32 has Python 3.8.

Comment 7 Fedora Update System 2020-11-04 03:00:58 UTC
FEDORA-2020-b5a7428f0f has been pushed to the Fedora 33 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.