[Bug 1030072] Re: Software Sources (software-properties-gtk) crashes with KeyError in show_drivers()
Andrew Starr-Bochicchio
a.starr.b at gmail.com
Sat Jul 28 01:56:42 UTC 2012
*** This bug is a duplicate of bug 1028388 ***
https://bugs.launchpad.net/bugs/1028388
** This bug has been marked a duplicate of bug 1028388
software-properties-gtk crashed with KeyError in show_drivers(): 'model'
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1030072
Title:
Software Sources (software-properties-gtk) crashes with KeyError in
show_drivers()
Status in “software-properties” package in Ubuntu:
Confirmed
Bug description:
Software Sources fails to launch when started from the App menu.
When running software-properties-gtk from terminal however, the following Traceback occurs:
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 103, in <module>
app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 180, in __init__
self.show_drivers()
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1280, in show_drivers
widget = Gtk.Label("{}: {}".format(self.devices[device]['vendor'], self.devices[device]['model']))
KeyError: 'model'
As can be seen from the Traceback, the KeyError occurs in the
show_drivers() method, which supports the "Additional Drivers" tab
within Software Sources.
Replacing the line
"widget = Gtk.Label("{}: {}".format(self.devices[device]['vendor'], self.devices[device]['model']))"
with
"widget = Gtk.Label("{}".format(self.devices[device]['vendor']))"
allowed Software Sources to start up normally.
If the extra debug information didn't attach properly, here it is:
Description: Ubuntu quantal (development branch)
Release: 12.10
software-properties-gtk:
Installed: 0.91
Candidate: 0.91
Version table:
*** 0.91 0
500 http://ftp.leg.uct.ac.za/ubuntu/ quantal/main amd64 Packages
100 /var/lib/dpkg/status
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: software-properties-gtk 0.91
ProcVersionSignature: Ubuntu 3.5.0-6.6-generic 3.5.0
Uname: Linux 3.5.0-6-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.4-0ubuntu5
Architecture: amd64
Date: Fri Jul 27 19:03:36 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_ZA:en
TERM=xterm
PATH=(custom, no user)
LANG=en_ZA.UTF-8
SHELL=/bin/zsh
SourcePackage: software-properties
UpgradeStatus: Upgraded to quantal on 2012-07-23 (4 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1030072/+subscriptions
More information about the foundations-bugs
mailing list