AttributeError: module 'collections' has no attribute 'Iterable'

Bug #1966442 reported by Felipe Reyes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-win
Fix Released
Undecided
Felipe Reyes
python-os-win (Ubuntu)
Fix Released
High
Felipe Reyes

Bug Description

the collections module has deprecated (and now removed) the "Iterable" class, the correct way of importing it in python3 is using the "collections.abc" module.

So os-win is failing at the moment on python 3.9 and 3.10.

Tags: patch
Felipe Reyes (freyes)
Changed in os-win:
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-win (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/os-win/+/835224

Changed in os-win:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-win (master)

Reviewed: https://review.opendev.org/c/openstack/os-win/+/835224
Committed: https://opendev.org/openstack/os-win/commit/c672101e6039ce8a10a834ae36779f49ecd01b30
Submitter: "Zuul (22348)"
Branch: master

commit c672101e6039ce8a10a834ae36779f49ecd01b30
Author: Felipe Reyes <email address hidden>
Date: Fri Mar 25 10:04:05 2022 -0300

    Drop collections.Iterable in favor of collections.abc.Iterable

    Python3 has deprecated (and recently dropped) collections.Iterable in
    favor of using the collections.abc module. This change fixes the import.

    Closes-Bug: #1966442
    Change-Id: I76ed972890a2fe0bedebd0364276590d5aa90f29

Changed in os-win:
status: In Progress → Fix Released
Felipe Reyes (freyes)
Changed in python-os-win (Ubuntu):
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
Felipe Reyes (freyes) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lp1966442_jammy.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
James Page (james-page) wrote :
Changed in python-os-win (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-os-win - 5.5.0-0ubuntu2

---------------
python-os-win (5.5.0-0ubuntu2) jammy; urgency=medium

  * d/p/lp1966442.patch: drop collections.Iterable in favor
    collections.abc.Iterable (LP: #1966442).

 -- Felipe Reyes <email address hidden> Fri, 25 Mar 2022 15:17:49 -0300

Changed in python-os-win (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-win 5.7.0

This issue was fixed in the openstack/os-win 5.7.0 release.

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.