Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1978342 - git-cinnabar: ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib64/python3.10/collections/__init__.py)
Summary: git-cinnabar: ImportError: cannot import name 'Iterable' from 'collections' (...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: git-cinnabar
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10 F35FTBFS
TreeView+ depends on / blocked
 
Reported: 2021-07-01 15:34 UTC by Miro Hrončok
Modified: 2021-08-03 08:10 UTC (History)
2 users (show)

Fixed In Version: git-cinnabar-0.5.7-5.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-03 08:10:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github glandium git-cinnabar issues 279 0 None None None 2021-08-02 02:45:31 UTC

Description Miro Hrončok 2021-07-01 15:34:50 UTC
Description of problem:
git-cinnabar fails to build in Rawhide with Python 3.10:

======================================================================
ERROR: dag (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: dag
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/git-cinnabar-0.5.7/tests/dag.py", line 3, in <module>
    from cinnabar.dag import gitdag
  File "/builddir/build/BUILD/git-cinnabar-0.5.7/cinnabar/dag.py", line 6, in <module>
    from .util import (
  File "/builddir/build/BUILD/git-cinnabar-0.5.7/cinnabar/util.py", line 19, in <module>
    from collections import (
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib64/python3.10/collections/__init__.py)


Version-Release number of selected component:
git-cinnabar-0.5.7-1.fc35

git-cinnabar was not included in the Python 3.10 mass rebuild as it does not require a specific Python version on runtime.

However, this error seems like something that can happen on runtime as well.



See https://docs.python.org/3.10/whatsnew/3.10.html#removed

"Remove deprecated aliases to Collections Abstract Base Classes from the collections module."

E.g. instead of collections.Iterable, use collections.abc.Iterable

Comment 1 Fedora Release Engineering 2021-07-11 04:23:15 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 35.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2021-08-26).

A week before the mass branching of Fedora 36 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 34 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-36/f-36-key-tasks.html

Comment 2 Fedora Release Engineering 2021-08-01 04:23:13 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 35.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2021-08-26).

A week before the mass branching of Fedora 36 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 34 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-36/f-36-key-tasks.html

Comment 3 Elliott Sales de Andrade 2021-08-02 02:45:31 UTC
This is fixed, but there are still test failures preventing the build.


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