[Bug 870012] Re: UnicodeEncodeError: 'ascii' codec can't encode characters
Marco Biscaro
marcobiscaro2112 at gmail.com
Fri Oct 7 14:01:23 UTC 2011
** Description changed:
I've upgraded from natty to oneiric (sudo do-release-upgrade -d) and
this added comments like "disabled in upgrade to oneiric" in
- /etc/apt/sources.list
+ /etc/apt/sources.list and in files in /etc/apt/sources.list.d.
The problem is: in Brazilian Portuguese, the comment is "desabilitado na
atualização para oneiric" (it has unicode characters). When trying to
remove, edit or enable these entries via software-properties-gtk,
nothing happens.
+ Workaround: remove the comments manually from these files.
+
Running software-properties-gtk from a terminal, the following errors
appear, when trying to remove and enable the entries, respectively:
Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 839, in on_remove_clicked
- self.backend.RemoveSource(str(source_entry))
- File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in __call__
- **keywords)
- File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, in call_blocking
- message, timeout)
+ File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 839, in on_remove_clicked
+ self.backend.RemoveSource(str(source_entry))
+ File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in __call__
+ **keywords)
+ File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, 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 702, in _message_cb
- retval = candidate_method(self, *args, **keywords)
- File "/usr/lib/python2.7/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 268, in RemoveSource
- self.remove_source(str(source))
+ File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 702, in _message_cb
+ retval = candidate_method(self, *args, **keywords)
+ File "/usr/lib/python2.7/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 268, in RemoveSource
+ self.remove_source(str(source))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 72-73: ordinal not in range(128)
-------------------------
Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 647, in on_isv_source_toggled
- self.backend.ToggleSourceUse(str(source_entry))
- File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in __call__
- **keywords)
- File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, in call_blocking
- message, timeout)
+ File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 647, in on_isv_source_toggled
+ self.backend.ToggleSourceUse(str(source_entry))
+ File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in __call__
+ **keywords)
+ File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, 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 702, in _message_cb
- retval = candidate_method(self, *args, **keywords)
- File "/usr/lib/python2.7/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 156, in ToggleSourceUse
- self.toggle_source_use(str(source))
+ File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 702, in _message_cb
+ retval = candidate_method(self, *args, **keywords)
+ File "/usr/lib/python2.7/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 156, in ToggleSourceUse
+ self.toggle_source_use(str(source))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 72-73: ordinal not in range(128)
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: software-properties-gtk 0.81.9
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu2
Architecture: i386
Date: Fri Oct 7 10:51:58 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitecture: all
ProcEnviron:
- LANGUAGE=pt_BR:pt_PT:en
- PATH=(custom, no user)
- LANG=pt_BR.UTF-8
- LC_MESSAGES=pt_BR.UTF-8
- SHELL=/bin/bash
+ LANGUAGE=pt_BR:pt_PT:en
+ PATH=(custom, no user)
+ LANG=pt_BR.UTF-8
+ LC_MESSAGES=pt_BR.UTF-8
+ SHELL=/bin/bash
SourcePackage: software-properties
UpgradeStatus: Upgraded to oneiric on 2011-10-05 (1 days ago)
--
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/870012
Title:
UnicodeEncodeError: 'ascii' codec can't encode characters
Status in “software-properties” package in Ubuntu:
New
Bug description:
I've upgraded from natty to oneiric (sudo do-release-upgrade -d) and
this added comments like "disabled in upgrade to oneiric" in
/etc/apt/sources.list and in files in /etc/apt/sources.list.d.
The problem is: in Brazilian Portuguese, the comment is "desabilitado
na atualização para oneiric" (it has unicode characters). When trying
to remove, edit or enable these entries via software-properties-gtk,
nothing happens.
Workaround: remove the comments manually from these files.
Running software-properties-gtk from a terminal, the following errors
appear, when trying to remove and enable the entries, respectively:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 839, in on_remove_clicked
self.backend.RemoveSource(str(source_entry))
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, 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 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/lib/python2.7/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 268, in RemoveSource
self.remove_source(str(source))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 72-73: ordinal not in range(128)
-------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 647, in on_isv_source_toggled
self.backend.ToggleSourceUse(str(source_entry))
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630, 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 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/lib/python2.7/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 156, in ToggleSourceUse
self.toggle_source_use(str(source))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 72-73: ordinal not in range(128)
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: software-properties-gtk 0.81.9
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu2
Architecture: i386
Date: Fri Oct 7 10:51:58 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitecture: all
ProcEnviron:
LANGUAGE=pt_BR:pt_PT:en
PATH=(custom, no user)
LANG=pt_BR.UTF-8
LC_MESSAGES=pt_BR.UTF-8
SHELL=/bin/bash
SourcePackage: software-properties
UpgradeStatus: Upgraded to oneiric on 2011-10-05 (1 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/870012/+subscriptions
More information about the foundations-bugs
mailing list