← 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'

 

This bug was fixed in the package pygobject - 3.0.3-2

---------------
pygobject (3.0.3-2) unstable; urgency=medium

  * Urgency medium as the previous release with the regression already made it
    into testing and is causing quite a few unexpected breakages.
  * Add 01_revert_tree_model_unicode_conversion.patch: Revert "Convert all
    strings to utf-8 encoding when retrieving from TreeModel" change from
    previous release. This changes existing behaviour (model values being str
    instead of unicode) and also makes tree model behaviour incompatible to
    the rest of Gtk behaviour (which always returns UTF-8 encoded str objects,
    not unicode). The original bug description was a bug in the test case
    code, you cannot mix str and unicode objects in interpolation.
    (LP: #905602)
 -- Martin Pitt <martin.pitt@xxxxxxxxxx>   Fri, 06 Jan 2012 16:38:51 +0100

** Changed in: pygobject (Ubuntu Precise)
       Status: In Progress => Fix Released

-- 
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