[Debian-olpc-devel] Bug#476789: sugar: fails to find icon system-search

Shaun Jackman sjackman at gmail.com
Sat Apr 19 07:09:57 UTC 2008

Package: sugar
Version: 0.79.3-2
Severity: serious

Both sugar and sugar-emulator fail:
AttributeError: 'NoneType' object has no attribute 'get_filename'

The full log follows.


$ sugar-emulator
INFO:sugar-emulator:Attempting to find free port for X11 (Xephyr)
INFO:sugar-emulator:  Found free port: #5 (6005)
INFO:sugar-emulator:Starting the Xephyr nested X display on display 5
DEBUG:sugar-emulator:Xephyr command: Xephyr :5 -ac -screen 1200x900 -dpi 98
INFO:sugar-emulator:Attempting to launch sugar to replace this
process: dbus-launch dbus-launch --exit-with-session sugar-shell
Extended Input Devices not yet supported. Impelement it at line 625 in
    xkb_keycodes             { include "xfree86+aliases(qwerty)" };
    xkb_types                { include "complete" };
    xkb_compatibility        { include "complete" };
    xkb_symbols              { include "pc(pc105)+us" };
    xkb_geometry             { include "pc(pc101)" };
Could not init font path element /usr/share/fonts/X11/cyrillic,
removing from list!
exceptions.AttributeError                            Traceback (most
recent call last)

     30 from main import main
---> 32 main()
        main = <function main at 0xb564de64>

/usr/share/sugar/shell/main.py in main()
    141     # TODO: move initializations from the Shell constructor to
a start() method
--> 142     shell = view.Shell.get_instance()
        shell = undefined
        global view.Shell.get_instance = <function get_instance at 0xb56a3a04>
    143     service = ShellService()

/usr/share/sugar/shell/view/Shell.py in get_instance()
    274     global _instance
    275     if not _instance:
--> 276         _instance = Shell()
        global _instance = None
        global Shell = <class 'view.Shell.Shell'>
    277     return _instance

/usr/share/sugar/shell/view/Shell.py in __init__(self=<Shell object at
0xb56509b4 (GObject at 0x86eed20)>)
     64         self._frame = frame.get_instance()
---> 66         self._home_window = HomeWindow()
        self._home_window = undefined
        global HomeWindow = <class 'view.home.HomeWindow.HomeWindow'>
     67         self._home_window.show()

/usr/share/sugar/shell/view/home/HomeWindow.py in
__init__(self=<HomeWindow object at 0xb566257c (GtkWindow at
     62                                         self._motion_notify_event_cb)
---> 64         self._home_box = HomeBox()
        self._home_box = undefined
        global HomeBox = <class 'view.home.HomeBox.HomeBox'>
     65         self._friends_box = FriendsBox()
     66         self._mesh_box = MeshBox()

/usr/share/sugar/shell/view/home/HomeBox.py in __init__(self=<HomeBox
object at 0xb5662694 (SugarHomeBox at 0x8720260)>)
     41         self._enable_xo_palette = False
---> 43         self._toolbar = HomeToolbar()
        self._toolbar = undefined
        global HomeToolbar = <class 'view.home.HomeBox.HomeToolbar'>
     44         #self._toolbar.connect('query-changed',
     45         self._toolbar.connect('view-changed',

/usr/share/sugar/shell/view/home/HomeBox.py in
__init__(self=<HomeToolbar object at 0xb56626e4 (SugarHomeToolbar at
    129         self._search_entry = iconentry.IconEntry()
--> 131                                               'system-search')
    132         self._search_entry.add_clear_button()
    133         self._search_entry.set_width_chars(25)

/usr/lib/python2.4/site-packages/sugar/graphics/iconentry.py in
set_icon_from_name(self=<IconEntry object at 0xb5662784 (SexyIconEntry
at 0x85fc800)>, position=<enum SEXY_ICON_ENTRY_PRIMARY of type
SexyIconEntryPosition>, name='system-search')
     43                                            0)
---> 45         if icon_info.get_filename().endswith('.svg'):
        icon_info.get_filename.endswith = undefined
     46             loader = _SVGLoader()
     47             color = sugar.profile.get_color()

AttributeError: 'NoneType' object has no attribute 'get_filename'

(sugar-shell:5558): GStreamer-CRITICAL **:
Trying to dispose element alsamixerelement0, but it is not in the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (499, 'testing'), (498, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.23-rc3
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

Versions of packages sugar depends on:
ii  dbus-x11                      1.1.20-1   simple interprocess messaging syst
ii  matchbox-window-manager       1.1-1      window manager for resource-limite
ii  python                        2.4.4-2    An interactive high-level object-o
ii  python-cairo                  1.4.12-1   Python bindings for the Cairo vect
ii  python-central                0.6.4      register and build utility for Pyt
ii  python-dbus                   0.82.4-2   simple interprocess messaging syst
ii  python-gnome2-desktop         2.22.0-1   Python bindings for the GNOME desk
ii  python-gobject                2.14.1-3   Python bindings for the GObject li
ii  python-gst0.10                0.10.11-1  generic media-playing framework (P
ii  python-gtk2                   2.12.1-1   Python bindings for the GTK+ widge
ii  python-hippocanvas            0.2.23-4   Python bindings to hippo-canvas
ii  python-numpy                  1:1.0.1-1  Numerical Python adds a fast array
ii  python-sugar                  0.79.0-6   Sugar graphical shell - core funct
ii  python-sugar-toolkit          0.79.3-1   Sugar graphical shell - core widge
ii  python-telepathy              0.15.0-1   python language bindings for telep
ii  telepathy-gabble              0.7.2-1    Jabber/XMPP connection manager
ii  telepathy-salut               0.3.1-1    Link-local XMPP connection manager
ii  telepathy-stream-engine       0.4.0-2    stream handler for the Telepathy f

Versions of packages sugar recommends:
ii  gstreamer0.10-plugins-go 0.10.7-3        GStreamer plugins from the "good"
ii  net-tools                1.60-17         The NET-3 networking toolkit
pn  network-manager          <none>          (no description available)
ii  sugar-artwork            0.79.2-1        Sugar graphical shell - artwork
ii  xserver-xephyr           2:1.1.1-21etch4 Next Generation Nested X Server

-- no debconf information

More information about the Debian-olpc-devel mailing list