Bug 2108898

Summary: Package uses removed Python API, does not import
Product: [Fedora] Fedora Reporter: Benjamin Gilbert <bgilbert>
Component: python-github3pyAssignee: Alexander Bokovoy <abokovoy>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: abokovoy, igor.raits
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-github3py-3.2.0-1.fc37 python-github3py-3.2.0-1.fc35 python-github3py-3.2.0-1.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-29 01:24:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Benjamin Gilbert 2022-07-19 23:33:02 UTC
Description of problem:
Importing github3 fails.

Version-Release number of selected component (if applicable):
1.3.0-8.fc36

How reproducible:
Always

Steps to Reproduce:
import github3

Actual results:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/github3/__init__.py", line 24, in <module>
    from .api import (
  File "/usr/lib/python3.10/site-packages/github3/api.py", line 13, in <module>
    from .github import GitHub, GitHubEnterprise
  File "/usr/lib/python3.10/site-packages/github3/github.py", line 10, in <module>
    from . import apps
  File "/usr/lib/python3.10/site-packages/github3/apps.py", line 10, in <module>
    from . import models
  File "/usr/lib/python3.10/site-packages/github3/models.py", line 13, in <module>
    from . import session
  File "/usr/lib/python3.10/site-packages/github3/session.py", line 3, in <module>
    from collections import Callable
ImportError: cannot import name 'Callable' from 'collections' (/usr/lib64/python3.10/collections/__init__.py)

Expected results:
Import succeeds.

Additional info:
Callable was moved to collections.abc and the compat alias was removed in Python 3.10.

Comment 1 Fedora Update System 2022-07-20 06:27:16 UTC
FEDORA-2022-cea905854d has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-cea905854d

Comment 2 Fedora Update System 2022-07-20 06:28:13 UTC
FEDORA-2022-cea905854d has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2022-07-20 06:31:03 UTC
FEDORA-2022-8990012bbc has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-8990012bbc

Comment 4 Alexander Bokovoy 2022-07-20 06:32:12 UTC
I already had 3.0.0 packaged for Rawhide, updated to use 3.2.0 in both Rawhide and F36. It should address this problem.

Comment 5 Benjamin Gilbert 2022-07-20 06:35:23 UTC
Thanks for the quick fix!

And I just noticed that Fedora 35 also ships Python 3.10.

Comment 6 Fedora Update System 2022-07-20 06:58:05 UTC
FEDORA-2022-28edded434 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-28edded434

Comment 7 Fedora Update System 2022-07-21 22:45:26 UTC
FEDORA-2022-28edded434 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-28edded434`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-28edded434

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

Comment 8 Fedora Update System 2022-07-21 23:05:00 UTC
FEDORA-2022-8990012bbc has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-8990012bbc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-8990012bbc

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

Comment 9 Fedora Update System 2022-07-29 01:24:28 UTC
FEDORA-2022-28edded434 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2022-07-29 02:27:28 UTC
FEDORA-2022-8990012bbc has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.