pull-lp-source crashed with AttributeError in __new__(): module 'collections' has no attribute 'Callable'

Bug #1959541 reported by Matthew Ruffell
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

Attempting to fetch a source package hits the below Traceback:

$ pull-lp-source systemd bionic
Traceback (most recent call last):
  File "/usr/bin/pull-lp-source", line 11, in <module>
    PullPkg.main(distro='ubuntu', pull='source')
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 107, in main
    cls(*args, **kwargs).pull()
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 400, in pull
    params = self._get_params(options)
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 318, in _get_params
    (r, v, p) = self.parse_release_and_version(distro, options['release'],
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 267, in parse_release_and_version
    (release, pocket) = self.parse_release(distro, release)
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 254, in parse_release
    d = Distribution(distro)
  File "/usr/lib/python3/dist-packages/ubuntutools/lp/lpapicache.py", line 174, in __new__
    if isinstance(fetch, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'

ProblemType: Crash
DistroRelease: Ubuntu 22.04
Package: ubuntu-dev-tools 0.187
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu76
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Jan 31 15:27:59 2022
ExecutablePath: /usr/bin/pull-lp-source
InstallationDate: Installed on 2022-01-02 (29 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220101)
InterpreterPath: /usr/bin/python3.10
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/pull-lp-source systemd bionic
Python3Details: /usr/bin/python3.10, Python 3.10.2, python3-minimal, 3.10.1-0ubuntu1
PythonArgs: ['/usr/bin/pull-lp-source', 'systemd', 'bionic']
PythonDetails: N/A
SourcePackage: ubuntu-dev-tools
Title: pull-lp-source crashed with AttributeError in __new__(): module 'collections' has no attribute 'Callable'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip libvirt lpadmin lxd plugdev sambashare sudo

Revision history for this message
Matthew Ruffell (mruffell) wrote :
Revision history for this message
Dan Streetman (ddstreet) wrote :

looks like this was fixed in git already, and should be fixed once 0.188 is released; @mapreri you planning to release that in debian soon?

Revision history for this message
Mattia Rizzolo (mapreri) wrote :

"right now"

thanks for the ping :)

Changed in ubuntu-dev-tools (Ubuntu Jammy):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.188

---------------
ubuntu-dev-tools (0.188) unstable; urgency=medium

  [ Mattia Rizzolo ]
  * archive.py:
    + Support Python 3.6 by calling functools.lru_cache() as a function, and
      avoid using @functools.cached_property (both new in Python 3.8).

  [ Graham Inggs ]
  * lpapicache.py:
    + Use collections.abc.Callable instead of the long deprecated
      collections.Callable. LP: #1959541

 -- Mattia Rizzolo <email address hidden> Mon, 07 Feb 2022 16:30:07 +0100

Changed in ubuntu-dev-tools (Ubuntu Jammy):
status: Fix Committed → Fix Released
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.