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
Bug 1926080 - packit fails to build with Python 3.10: ImportError: cannot import name 'Iterable' from 'collections'
Summary: packit fails to build with Python 3.10: ImportError: cannot import name 'Iter...
Alias: None
Product: Fedora
Classification: Fedora
Component: packit
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Frantisek Lachman
QA Contact: Fedora Extras Quality Assurance
Depends On: 1926090
Blocks: PYTHON3.10
TreeView+ depends on / blocked
Reported: 2021-02-08 07:37 UTC by Tomáš Hrnčiar
Modified: 2021-03-05 14:30 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-03-05 14:30:12 UTC
Type: Bug

Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-02-08 07:37:38 UTC
packit fails to build with Python 3.10.0a5.

Traceback (most recent call last):
  File "/builddir/build/BUILD/packitos-0.24.0/", line 27, in <module>
  File "/usr/lib/python3.10/site-packages/setuptools/", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python3.10/distutils/", line 148, in setup
  File "/usr/lib64/python3.10/distutils/", line 966, in run_commands
  File "/usr/lib64/python3.10/distutils/", line 985, in run_command
  File "/usr/lib/python3.10/site-packages/click_man/commands/", line 65, in run
    cli = entry_point.resolve()
  File "/usr/lib/python3.10/site-packages/pkg_resources/", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/builddir/build/BUILD/packitos-0.24.0/packit/cli/", line 28, in <module>
    from import build
  File "/builddir/build/BUILD/packitos-0.24.0/packit/cli/", line 29, in <module>
    from packit.cli.utils import cover_packit_exception, get_packit_api
  File "/builddir/build/BUILD/packitos-0.24.0/packit/cli/", line 35, in <module>
    from packit.api import PackitAPI
  File "/builddir/build/BUILD/packitos-0.24.0/packit/", line 37, in <module>
    from tabulate import tabulate
  File "/usr/lib/python3.10/site-packages/", line 16, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib64/python3.10/collections/

bpo-37324: Remove deprecated aliases to Collections Abstract Base Classes
from the collections module.

For the build logs, see:

For all our attempts to build packit with Python 3.10, see:

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Frantisek Lachman 2021-02-08 08:28:01 UTC
I've created an upstream issue for that and hope we can fix that quickly:

(We release to Fedora bi-weekly.)

Comment 2 Miro Hrončok 2021-02-08 09:13:46 UTC
This needs a code change in tabulate, bz1926090.

Comment 3 Ben Cotton 2021-02-09 16:05:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 4 Tomas Tomecek 2021-02-23 13:30:10 UTC
Miro and Tome, thank you for fixing tabulate!

I'm assuming that packit should now build for 3.10 in rawhide once we do a new upstream release in a week, is that correct?

Comment 5 Miro Hrončok 2021-02-23 13:45:35 UTC
Rawhide is still at Python 3.9.

The build with Python 3.10 only happen in Copr. Once you push to rawhide, copr should attempt to build it. But note that the packages in Copr are in a middle of dependency cluster...issue now, so it might fail because of that.

Comment 6 Tomáš Hrnčiar 2021-03-05 14:30:12 UTC
I am closing this since dependencies in Copr are now fixed and packit builds with 6th alpha of Python 3.10.

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