Bug#759377: "TypeError: TreePath does not support indexing" when installing new printer

Kernc kerncece at gmail.com
Tue Aug 26 21:11:42 UTC 2014


Package: system-config-printer
Version: 1.4.3-4~bpo70+1
Severity: important
Tags: patch

Dear Maintainer,

Installing a new printer through the interface, at the final step of
selecting the
(correctly recognized and pre-selected printer (e.g. Xerox Phaser 3140), the
wizard doesn't proceed -- it can be Closed, but Forward doesn't do anthing,
particularly it doesn't install the printer!

Running `system-config-printer --debug` reveals the following Python error:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 912, in
on_btnNPForward_clicked
    self.nextNPTab()
  File "/usr/share/system-config-printer/newprinter.py", line 1459, in
nextNPTab
    self.ppd = self.getNPPPD()
  File "/usr/share/system-config-printer/newprinter.py", line 3786, in
getNPPPD
    nr = model.get_path(iter)[0]
TypeError: 'TreePath' object does not support indexing

I did manage to fix it by changing the offending line (and another similar
line
futher below in the file) to:

  nr = int(str(model.get_path(iter)))

Not sure if it has something to do with Gtk3's PyGObject introspection (et
al.)
incompletely migrated into stable or whether it's a genuine overlooked bug,
I'm tagging it patch.


-- System Information:
Debian Release: 7.6

Versions of packages system-config-printer depends on:
ii  gir1.2-gdkpixbuf-2.0       2.26.1-1
ii  gir1.2-glib-2.0            1.32.1-1
ii  gir1.2-gtk-3.0             3.4.2-7
ii  gir1.2-notify-0.7          0.7.5-1
ii  gir1.2-packagekitglib-1.0  0.7.6-3
ii  gir1.2-pango-1.0           1.30.0-1
ii  gnome-icon-theme           3.4.0-2
ii  python                     2.7.3-4+deb7u1
ii  python-cairo               1.8.8-1+b2
ii  python-cups                1.9.63-1~bpo70+1
ii  python-cupshelpers         1.4.3-4~bpo70+1
ii  python-dbus                1.1.1-1
ii  python-gi                  3.2.2-2
ii  python-gobject-2           2.28.6-10
ii  python-libxml2             2.8.0+dfsg1-7+wheezy1

Versions of packages system-config-printer recommends:
pn  cups-pk-helper              <none>
ii  gir1.2-gnomekeyring-1.0     3.4.1-1
ii  python-smbc                 1.0.6-1+b1
ii  system-config-printer-udev  1.4.3-4~bpo70+1

Versions of packages system-config-printer suggests:
pn  python-gnomekeyring  <none>
pn  sessioninstaller     <none>

-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20140826/07acf48c/attachment-0001.html>


More information about the pkg-gnome-maintainers mailing list