UnicodeEncodeError: 'ascii' codec can't encode character u'\xd1' in position 132: ordinal not in range(128)

Bug #1179975 reported by Angel Guzman Maeso on 2013-05-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iotop (Ubuntu)

Bug Description

I get this python traceback running the program:

$ sudo iotop
Traceback (most recent call last):
  File "/usr/sbin/iotop", line 17, in <module>
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 610, in main
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 600, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 498, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 491, in run_iotop_window
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 155, in run
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 472, in refresh_display
    self.win.addstr(i + len(summary) + 1, 0, lines[i])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd1' in position 132: ordinal not in range(128)

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: iotop 0.5-2
ProcVersionSignature: Ubuntu 3.8.0-13.23-generic 3.8.3
Uname: Linux 3.8.0-13-generic i686
ApportVersion: 2.10-0ubuntu3
Architecture: i386
Date: Tue May 14 16:49:26 2013
InstallationDate: Installed on 2013-02-03 (100 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MarkForUpload: True
SourcePackage: iotop
UpgradeStatus: Upgraded to saucy on 2013-02-03 (99 days ago)

Angel Guzman Maeso (shakaran) wrote :
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package iotop - 0.6-1

iotop (0.6-1) unstable; urgency=low

  * New upstream release
    - Doesn't crash with UTF-8 command-lines (Closes: #708252) (LP: #1179975)

 -- Paul Wise <email address hidden> Fri, 07 Jun 2013 14:00:56 +0800

Changed in iotop (Ubuntu):
status: New → Fix Released
Felix Moreno (info-justdust) wrote :

I can't upgrade from ubuntu 13.04 to 13.10 due to a similar error...

felisuco@felisuco-E500-U-AP50B:~$ do-release-upgrade -d
Comprobar si hay una nueva versión de Ubuntu
Obtener:1 Firma de la herramienta de actualización [198 B]
Obtener:2 Herramienta de actualización [1.203 kB]
Obtenidos 1.203 kB en 0seg. (0 B/s)
autentificar «saucy.tar.gz» contra «saucy.tar.gz.gpg»
extrayendo «saucy.tar.gz»

Leyendo caché

Ha ocurrido un error fatal

Informe de este fallo e incluya los archivos
/var/log/dist-upgrade/main.log y /var/log/dist-upgrade/apt.log en el
informe. La actualización ha sido cancelada.
Su archivo sources.list original se guardó en

Traceback (most recent call last):

File "/tmp/ubuntu-release-upgrader-00xuto/saucy", line 10, in

line 240, in main

line 133, in save_system_state

File "/tmp/ubuntu-release-upgrader-00xuto/DistUpgrade/apt_clone.py",
line 149, in save_state
self._write_state_sources_list(tar, scrub_sources)

File "/tmp/ubuntu-release-upgrader-00xuto/DistUpgrade/apt_clone.py",
line 241, in _write_state_sources_list

File "/tmp/ubuntu-release-upgrader-00xuto/DistUpgrade/apt_clone.py",
line 252, in _add_file_to_tar_with_password_check

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in
position 106: ordinal not in range(128)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers