Bug 2108898 - Package uses removed Python API, does not import
Summary: Package uses removed Python API, does not import
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-github3py
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alexander Bokovoy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-19 23:33 UTC by Benjamin Gilbert
Modified: 2022-07-29 02:27 UTC (History)
2 users (show)

Fixed In Version: python-github3py-3.2.0-1.fc37 python-github3py-3.2.0-1.fc35 python-github3py-3.2.0-1.fc36
Clone Of:
Environment:
Last Closed: 2022-07-29 01:24:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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