[sugar] ImportError: No module named IconColor

Simon Schampijer simon
Thu Aug 24 18:05:20 EDT 2006


Solved,
sugar is coming up and it looks good:)
When trying to launch the chat I get the following with a green screen:

Traceback (most recent call last):
  File 
"/home/erikos/sugar-jhbuild/build/share/sugar/shell/home/HomeView.py", 
line 23, in __activity_opened_cb
    self._add(activity)
  File 
"/home/erikos/sugar-jhbuild/build/share/sugar/shell/home/HomeView.py", 
line 35, in _add
    item = self.add_piece(100 / 8, icon_name, IconColor())
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/DonutItem.py", 
line 98, in add_piece
    piece_item.set_icon(icon_name, color)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/DonutItem.py", 
line 42, in set_icon
    self._icon = PieceIcon(self, icon_name, color)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/DonutItem.py", 
line 9, in __init__
    IconItem.__init__(self, icon_name, color, 48, **kwargs)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/IconItem.py", 
line 58, in __init__
    pixbuf = icon_cache.get_icon(icon_name, color, size)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/IconItem.py", 
line 49, in get_icon
    icon = self._create_icon(name, color, size)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/IconItem.py", 
line 19, in _create_icon
    info = theme.lookup_icon(name, size, 0)
TypeError: GtkIconTheme.lookup_icon() argument 1 must be string, not None

sugar (7050): Level 40 - Traceback (most recent call last):
  File 
"/home/erikos/sugar-jhbuild/build/share/sugar/shell/home/HomeView.py", 
line 23, in __activity_opened_cb
    self._add(activity)
  File 
"/home/erikos/sugar-jhbuild/build/share/sugar/shell/home/HomeView.py", 
line 35, in _add
    item = self.add_piece(100 / 8, icon_name, IconColor())
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/DonutItem.py", 
line 98, in add_piece
    piece_item.set_icon(icon_name, color)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/DonutItem.py", 
line 42, in set_icon
    self._icon = PieceIcon(self, icon_name, color)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/DonutItem.py", 
line 9, in __init__
    IconItem.__init__(self, icon_name, color, 48, **kwargs)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/IconItem.py", 
line 58, in __init__
    pixbuf = icon_cache.get_icon(icon_name, color, size)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/IconItem.py", 
line 49, in get_icon
    icon = self._create_icon(name, color, size)
  File 
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/canvas/IconItem.py", 
line 19, in _create_icon
    info = theme.lookup_icon(name, size, 0)
TypeError: GtkIconTheme.lookup_icon() argument 1 must be string, not None

sugar-activity-factory (7068): Level 20 - Starting activity factory 
com.redhat.Sugar.GroupChatActivity

Cheers,
Simon



Simon Schampijer wrote:
> Great,
> thanks a lot.
> make[1]: Leaving directory `/home/erikos/sugar-jhbuild/source/sugar'
> *** success *** [1/1]
> make[1]: Leaving directory `/home/erikos/sugar-jhbuild/source/artwork'
> *** success *** [1/1]
> I installed it by hand, indeed after I got some errors. No I have to 
> find out why the installation of the python2.4-avahi package tries to 
> remove python2.4-cairo python2.4-gtk2 python2.4-numeric:)
> Simon
>
>
> Marco Pesenti Gritti wrote:
>> Simon Schampijer wrote:
>>> Marco Pesenti Gritti wrote:
>>>> Simon Schampijer wrote:
>>>>> Hi,
>>>>> a) Someone had this error already? Happened after a fresh git pull 
>>>>> on Debian i386.
>>>>
>>>> Should be fixed now. Dan checked in a fix...
>>>>
>>> Marco,
>>> thanks for the quick reply,
>>> git pull says: Already up-to-date.
>>> The last log entry is the enabling of the sugar emulator:
>>>
>>> commit 1e972bc413648534aafa40ece2e6fd4c2d75c7f6
>>> Author: Marco Pesenti Gritti <marco at localhost.localdomain>
>>> Date:   Mon Aug 21 19:37:19 2006 +0200
>>>
>>>    Enable sugar emulator
>>>
>>
>> Yeah, it's fixed in sugar...
>>
>> sugar-jhbuild buildone sugar
>>
>> That should do it.
>>
>>>
>>>>> b) Are root privilegies needed for the build? Did an installation 
>>>>> by hand from source/artwork to get over that error.
>>>>
>>>> Nope they aren't. Can you show the whole output please...
>>>>
>>> Here the hole output:)
>>>
>>
>> That's... weird... Maybe you runned autogen manually?
>>
>> Try if is this solves it:
>>
>> sugar-jhbuild buildone -a artwork
>>
>> Marco
>>
>
> _______________________________________________
> Sugar mailing list
> Sugar at laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar
>



More information about the Sugar-devel mailing list