← Back to team overview

desktop-packages team mailing list archive

[Bug 905602] Re: software-properties-gtk crashed with AttributeError in _decode_value(): 'NoneType' object has no attribute 'decode'

 

Happened twice here. Call software-properties via alt+f2, view updates tab, close the GUI. Apport reports a crash, collects info and leads me to an already existing bug 911834 which is a dupe of this one.
~$ apt-cache policy python-gobject
python-gobject:
  Installed: 3.0.3-2
  Candidate: 3.0.3-2
  Version table:
 *** 3.0.3-2 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/905602

Title:
  software-properties-gtk crashed with AttributeError in
  _decode_value(): 'NoneType' object has no attribute 'decode'

Status in “pygobject” package in Ubuntu:
  Fix Released
Status in “pygobject” source package in Precise:
  Fix Released

Bug description:
  Tried to set the apt mirrir to "other".

  TEST CASE:
  1. Launch software-properties-gtk from a console
  2. Switch to first tab 'Ubuntu Software' if not already selected
  3. On the combobox 'Download from' select 'Other ...'

  ACTUAL RESULT:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 477, in on_combobox_server_changed
      uri = server_store.get_value(iter, 1)
    File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 977, in get_value
      return self._decode_value(treeiter, column, value)
    File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 803, in _decode_value
      value = value.decode('UTF-8')
  AttributeError: 'NoneType' object has no attribute 'decode'

  EXPECTED RESULT
  The user can proceed with the selection of another mirror.

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: software-properties-gtk 0.82
  ProcVersionSignature: Ubuntu 3.2.0-5.11-generic 3.2.0-rc5
  Uname: Linux 3.2.0-5-generic x86_64
  NonfreeKernelModules: fglrx
  ApportVersion: 1.90-0ubuntu1
  Architecture: amd64
  Date: Sat Dec 17 00:02:57 2011
  EcryptfsInUse: Yes
  ExecutablePath: /usr/bin/software-properties-gtk
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111216.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/software-properties-gtk -n -t 0
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/bin/software-properties-gtk', '-n', '-t', '0']
  SourcePackage: software-properties
  Title: software-properties-gtk crashed with AttributeError in _decode_value(): 'NoneType' object has no attribute 'decode'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/905602/+subscriptions