[Bug 839005] Re: software-properties-gtk crashed with UnicodeEncodeError in exists(): 'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128)

der_alex1980 839005 at bugs.launchpad.net
Fri Jul 27 08:46:50 UTC 2012


This bug occurs if the path to the keyfile contains non ascii
characters, for example when importing from

/home/alex/Arbeitsfläche/keyfile.ppa.asc

which is the default Desktop directory in German Xubuntu.

Log:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 848, in add_key_clicked
    if not self.backend.AddKey(chooser.get_filename()):
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.UnicodeEncodeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 280, in AddKey
    return self.add_key(path)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 742, in add_key
    if not os.path.exists(path):
  File "/usr/lib/python2.7/genericpath.py", line 18, in exists
    os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 20: ordinal not in range(128)

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

Title:
  software-properties-gtk crashed with UnicodeEncodeError in exists():
  'ascii' codec can't encode character u'\xe9' in position 13: ordinal
  not in range(128)

Status in “software-properties” package in Ubuntu:
  Confirmed

Bug description:
  install in synaptic ubuntugames ppa, add key public bug  :

  -----BEGIN PGP PUBLIC KEY BLOCK-----
  Version: GnuPG v1.4.9 (GNU/Linux)

  mQGiBEzFMy4RBADBKpxsRAMJDjP/DAgqNuxC20/Xf4DXEt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Sj/KYVvv
  kfSwt8cVROfPnxgrxRSCyi0K3Yei2lnwCwADBQf+LnoGeWepWrCtwHkH5MtzX8G0
  vtahqv2qgt5ygynAd1YLiGW1XPvvmso1EeQcEgeSQNXWot9C5zOCEqfJXYTzQUfX
  YdRLaX9gHMU3heZl7SHogv2PETJNa4hEpH1skj912KbYr2onu6WQiw9ifavVR5tR
  Q25uld79csRAjXP3QSkWXJyDUbMkpC7eDq019Gkgay6fgZ6JjAYxHc3qFdbvezAJ
  wdb2bbrddmjWRgmGr+oJwK9r1bNrq0+bLX/NVLA6yVUlQ+eFDLd+FRB8VCa3bi6h
  EuFUxr6kZVUSEEvbPhExTJjTMJZb6R59a7LA36S4oaUYgZ08AknvzFDA6IkDmYhJ
  BBgRAgAJBQJMxTMuAhsMAAoJEOK7uUFR53B5gp4An1jpefc66pBYkMs3y+kbWsBg
  XyZ0AKC+n3BSwhDcgm2aQIjYxRHrL1uDpQ==
  =W9Hr
  -----END PGP PUBLIC KEY BLOCK-----

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: software-properties-gtk 0.81.9
  ProcVersionSignature: Ubuntu 3.0.0-9.15-generic 3.0.3
  Uname: Linux 3.0.0-9-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  Date: Thu Sep  1 20:48:04 2011
  ExecutablePath: /usr/bin/software-properties-gtk
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64+mac (20110830)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/software-properties-gtk -n -t 62914689
  ProcEnviron:
   SHELL=/bin/bash
   LANG=fr_FR.UTF-8
   PATH=(custom, no user)
  PythonArgs: ['/usr/bin/software-properties-gtk', '-n', '-t', '62914689']
  SourcePackage: software-properties
  Title: software-properties-gtk crashed with UnicodeEncodeError in exists(): 'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128)
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/839005/+subscriptions




More information about the foundations-bugs mailing list