ImportError: cannot import name 'Iterable' from 'collections'

Bug #2033054 reported by Rolf Leggewie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-pex (Ubuntu)
New
Undecided
Unassigned

Bug Description

pex on jammy has an issue. Googling for the error seems to indicate this is a compatibility issue with python3.10. https://stackoverflow.com/a/72032154/10468807 has what looks like a good solution to me.

Is this still an issue in releases later than jammy?

$ pex --help
Traceback (most recent call last):
  File "/usr/bin/pex", line 11, in <module>
    load_entry_point('pex==1.1.14', 'console_scripts', 'pex')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 479, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2861, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2465, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2471, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/pex/bin/pex.py", line 19, in <module>
    from pex.base import maybe_requirement
  File "/usr/lib/python3/dist-packages/pex/base.py", line 6, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

Tags: jammy
Revision history for this message
Rolf Leggewie (r0lf) wrote :

On Debian, this is a QA package.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.