software-properties-gtk crashed with NameError in sort_mirrors(): global name 'cmp' is not defined

Bug #1022665 reported by Jule Slootbeek on 2012-07-09
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
High
Colin Watson

Bug Description

I was running the "Find Best Server" script from Software Update Settings when this occurred.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: software-properties-gtk 0.86
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic-pae 3.2.19
Uname: Linux 3.2.0-26-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.3-0ubuntu2
Architecture: i386
Date: Mon Jul 9 12:42:53 2012
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/software-properties-gtk
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
InterpreterPath: /usr/bin/python3.2mu
PackageArchitecture: all
ProcCmdline: /usr/bin/python3.2 /usr/bin/software-properties-gtk --open-tab 2
PythonArgs: ['/usr/bin/software-properties-gtk', '--open-tab', '2']
SourcePackage: software-properties
Title: software-properties-gtk crashed with NameError in sort_mirrors(): global name 'cmp' is not defined
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py", line 65, in sort_mirrors
     return cmp(url1, url2)
 NameError: global name 'cmp' is not defined
UpgradeStatus: Upgraded to quantal on 2012-07-09 (0 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Jule Slootbeek (jslootbeek) wrote :
tags: removed: need-duplicate-check
Colin Watson (cjwatson) on 2012-07-10
Changed in software-properties (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
visibility: private → public
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.87

---------------
software-properties (0.87) quantal; urgency=low

  * Restore apt-add-repository symlink.
  * Handle removal of cmp builtin from Python 3 (LP: #1022665).
  * Open NamedTemporaryFile in text mode when writing text to it
    (LP: #1021639).
  * Fix display glitch in add-apt-repository that caused "None" to be
    printed for any PPA without a description.
 -- Colin Watson <email address hidden> Tue, 10 Jul 2012 09:56:14 +0100

Changed in software-properties (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers