Package: miro
Version: 2.0.3-1
Severity: normal

Hi,

I get a lot of (non fatal) tracebacks when using the search feature of miro:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/miro/frontends/widgets/gtk/threads.py", 
line 39, in wrap_idle_func
    func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.5/miro/frontends/widgets/application.py", 
line 988, in handle_items_changed
    app.info_updater.handle_items_changed(message)
  File "/usr/lib/pymodules/python2.5/miro/frontends/widgets/application.py", 
line 870, in handle_items_changed
    callback(message)
  File 
"/usr/lib/pymodules/python2.5/miro/frontends/widgets/itemlistcontroller.py", 
line 306, in handle_items_changed
    self.item_list_group.update_items(message.changed)
  File "/usr/lib/pymodules/python2.5/miro/frontends/widgets/itemlist.py", line 
237, in update_items
    self._setup_info(item_info)
  File "/usr/lib/pymodules/python2.5/miro/frontends/widgets/itemlist.py", line 
206, in _setup_info
    self.html_stripper.strip(info.description)
  File "/usr/lib/pymodules/python2.5/miro/util.py", line 715, in strip
    self.feed(s)
  File "/usr/lib/python2.5/sgmllib.py", line 99, in feed
    self.goahead(0)
  File "/usr/lib/python2.5/sgmllib.py", line 181, in goahead
    self.handle_charref(name)
  File "/usr/lib/pymodules/python2.5/miro/util.py", line 755, in handle_charref
    self.__add(unichr(int(ref)))
  ValueError: invalid literal for int() with base 10: 'xBF'

This is caused by the character reference being encoded in hexadecimal and the
int() function of Python expecting  16 passed as a second argument. So
handle_charref should look like:

if ref.startswith('x'):
    charnum = int(ref[1:], 16)
else:
    charnum = int(ref)
self.__add(unichr(charnum))

Thanks for your work for Debian


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (70, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages miro depends on:
ii  libboost-python1.37.0      1.37.0-8      Boost.Python Library
ii  libc6                      2.9-4         GNU C Library: Shared libraries
ii  libgcc1                    1:4.3.3-3     GCC support library
ii  libglib2.0-0               2.20.0-2      The GLib library of C routines
ii  libgtk2.0-0                2.16.1-2      The GTK+ graphical user interface 
ii  libnspr4-0d                4.7.4-2       NetScape Portable Runtime Library
ii  libstdc++6                 4.3.3-3       The GNU Standard C++ Library v3
ii  libx11-6                   2:1.2.1-1     X11 client-side library
ii  libxine1                   1.1.16.2-1+b1 the xine video/media player librar
ii  libxine1-plugins           1.1.16.2-1    the xine video/media player librar
ii  libxine1-x                 1.1.16.2-1+b1 X desktop video output plugins for
ii  miro-data                  2.0.3-1       GTK+ based RSS video aggregator da
ii  python                     2.5.4-2       An interactive high-level object-o
ii  python-dbus                0.83.0-1      simple interprocess messaging syst
ii  python-glade2              2.14.1-2      GTK+ bindings: Glade support
ii  python-gnome2              2.22.3-3      Python bindings for the GNOME desk
ii  python-gtk2                2.14.1-2      Python bindings for the GTK+ widge
ii  python-gtkmozembed         2.25.3-1      Python bindings for the GtkMozEmbe
ii  python-libtorrent          0.14.2-2+b1   Python bindings for libtorrent-ras
ii  python-pysqlite2           2.5.0-2       Python interface to SQLite 3
ii  python-support             1.0.2         automated rebuilding support for P
ii  xulrunner-1.9              1.9.0.7-1     XUL + XPCOM application runner

Versions of packages miro recommends:
ii  python-psyco                  1.6-1      Python specializing compiler

Versions of packages miro suggests:
ii  gstreamer0.10-ffmpeg         0.10.7-1    FFmpeg plugin for GStreamer
ii  gstreamer0.10-plugins-bad    0.10.10.3-1 GStreamer plugins from the "bad" s
ii  gstreamer0.10-plugins-base   0.10.22-5   GStreamer plugins from the "base" 
ii  gstreamer0.10-plugins-good   0.10.14-2   GStreamer plugins from the "good" 
ii  gstreamer0.10-plugins-ugly   0.10.11-1   GStreamer plugins from the "ugly" 
ii  gstreamer0.10-x              0.10.22-5   GStreamer plugins for X11 and Pang
ii  python-gst0.10               0.10.14-2   generic media-playing framework (P
ii  python-notify                0.1.1-2+b1  Python bindings for libnotify
ii  ttf-dejavu                   2.29-2      Metapackage to pull in ttf-dejavu-

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to