ImportError: No module named IconColor

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Simon Schampijer-2
Hi,
a) Someone had this error already? Happened after a fresh git pull on
Debian i386.

./sugar-jhbuild run
Running the installed sugar...
Traceback (most recent call last):
 File "/home/erikos/sugar-jhbuild/build/bin/sugar", line 18, in ?
   from sugar import env
 File
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/env.py",
line 11, in ?
   import sugar.conf
 File
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/conf/__init__.py",
line 2, in ?
   from sugar.conf.Profile import Profile
 File
"/home/erikos/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/conf/Profile.py",
line 3, in ?
   from sugar.canvas.IconColor import IconColor
ImportError: No module named IconColor


b) Are root privilegies needed for the build? Did an installation by
hand from source/artwork to get over that error.
ake: *** [install-recursive] Error 1
*** error during stage install of artwork: Error running make   install
*** [2/15]

Thanks,
Simon
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Marco Pesenti Gritti
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...

> 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...

Marco
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Simon Schampijer-2
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 <[hidden email]>
Date:   Mon Aug 21 19:37:19 2006 +0200

   Enable sugar emulator



>> 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:)

*** Installing artwork *** [2/15]

make   install
Making install in art
make[1]: Entering directory `/home/erikos/sugar-jhbuild/source/artwork/art'
Making install in cursor
make[2]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor'
Making install in cursorthemegen
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor/cursorthemegen'
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor/cursorthemegen'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor/cursorthemegen'
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor/cursorthemegen'
Making install in Bluecurve
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor/Bluecurve'
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor/Bluecurve'
make[4]: Nothing to be done for `install-exec-am'.
/bin/sh ../../../mkinstalldirs /usr/local/share/icons/Bluecurve/cursors/
for i in `cd Bluecurve && echo *` ;
do                                                  \
         /usr/bin/install -c ../../../art/cursor/Bluecurve/theme/$i
/usr/local/share/icons/Bluecurve/cursors/$i ;  \
       done
/bin/sh: line 2: cd: Bluecurve: No such file or directory
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor/Bluecurve'
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor/Bluecurve'
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor'
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor'
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor'
make[2]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/cursor'
Making install in icon-theme
make[2]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme'
Making install in 24x24
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/24x24'
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/24x24'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/icons/olpc/24x24/stock" || mkdir -p --
"/usr/local/share/icons/olpc/24x24/stock"
/usr/bin/install -c -m 644 'back.png'
'/usr/local/share/icons/olpc/24x24/stock/back.png'
/usr/bin/install -c -m 644 'forward.png'
'/usr/local/share/icons/olpc/24x24/stock/forward.png'
/usr/bin/install -c -m 644 'reload.png'
'/usr/local/share/icons/olpc/24x24/stock/reload.png'
/usr/bin/install -c -m 644 'expand.png'
'/usr/local/share/icons/olpc/24x24/stock/expand.png'
/usr/bin/install -c -m 644 'unexpand.png'
'/usr/local/share/icons/olpc/24x24/stock/unexpand.png'
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/24x24'
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/24x24'
Making install in 32x32
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/32x32'
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/32x32'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/icons/olpc/32x32/stock" || mkdir -p --
"/usr/local/share/icons/olpc/32x32/stock"
/usr/bin/install -c -m 644 'back.png'
'/usr/local/share/icons/olpc/32x32/stock/back.png'
/usr/bin/install -c -m 644 'forward.png'
'/usr/local/share/icons/olpc/32x32/stock/forward.png'
/usr/bin/install -c -m 644 'reload.png'
'/usr/local/share/icons/olpc/32x32/stock/reload.png'
/usr/bin/install -c -m 644 'expand.png'
'/usr/local/share/icons/olpc/32x32/stock/expand.png'
/usr/bin/install -c -m 644 'unexpand.png'
'/usr/local/share/icons/olpc/32x32/stock/unexpand.png'
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/32x32'
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/32x32'
Making install in 48x48
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/48x48'
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/48x48'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/icons/olpc/48x48/stock" || mkdir -p --
"/usr/local/share/icons/olpc/48x48/stock"
/usr/bin/install -c -m 644 'back.png'
'/usr/local/share/icons/olpc/48x48/stock/back.png'
/usr/bin/install -c -m 644 'forward.png'
'/usr/local/share/icons/olpc/48x48/stock/forward.png'
/usr/bin/install -c -m 644 'reload.png'
'/usr/local/share/icons/olpc/48x48/stock/reload.png'
/usr/bin/install -c -m 644 'expand.png'
'/usr/local/share/icons/olpc/48x48/stock/expand.png'
/usr/bin/install -c -m 644 'unexpand.png'
'/usr/local/share/icons/olpc/48x48/stock/unexpand.png'
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/48x48'
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/48x48'
Making install in scalable
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable'
Making install in activities
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable/activities'

make[5]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable/activities'

make[5]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/icons/olpc/scalable/activities" || mkdir -p --
"/usr/local/share/icons/olpc/scalable/activities"
/usr/bin/install -c -m 644 'activity-web.svg'
'/usr/local/share/icons/olpc/scalable/activities/activity-web.svg'
/usr/bin/install -c -m 644 'activity-groupchat.svg'
'/usr/local/share/icons/olpc/scalable/activities/activity-groupchat.svg'
make[5]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable/activities'

make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable/activities'

Making install in stock
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable/stock'
make[5]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable/stock'
make[5]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/icons/olpc/scalable/stock" || mkdir -p --
"/usr/local/share/icons/olpc/scalable/stock"
/usr/bin/install -c -m 644 'stock-buddy.svg'
'/usr/local/share/icons/olpc/scalable/stock/stock-buddy.svg'
make[5]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable/stock'
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable/stock'
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable'
make[5]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable'
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable'
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme/scalable'
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme'
make[4]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/icons/olpc" || mkdir -p --
"/usr/local/share/icons/olpc"
/usr/bin/install -c -m 644 'index.theme'
'/usr/local/share/icons/olpc/index.theme'
make[4]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme'
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme'
make[2]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/art/icon-theme'
make[2]: Entering directory `/home/erikos/sugar-jhbuild/source/artwork/art'
make[3]: Entering directory `/home/erikos/sugar-jhbuild/source/artwork/art'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/erikos/sugar-jhbuild/source/artwork/art'
make[2]: Leaving directory `/home/erikos/sugar-jhbuild/source/artwork/art'
make[1]: Leaving directory `/home/erikos/sugar-jhbuild/source/artwork/art'
Making install in gtk-engine
make[1]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/gtk-engine'
Making install in src
make[2]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/gtk-engine/src'
make[3]: Entering directory
`/home/erikos/sugar-jhbuild/source/artwork/gtk-engine/src'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/lib/gtk-2.0//engines" || mkdir -p --
"/usr/local/lib/gtk-2.0//engines"
/bin/sh ../../libtool --mode=install /usr/bin/install -c  'libolpc.la'
'/usr/local/lib/gtk-2.0//engines/libolpc.la'
/usr/bin/install -c .libs/libolpc.so
/usr/local/lib/gtk-2.0//engines/libolpc.so
/usr/bin/install: cannot remove
`/usr/local/lib/gtk-2.0//engines/libolpc.so': Permission denied
make[3]: *** [install-engineLTLIBRARIES] Error 1
make[3]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/gtk-engine/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/gtk-engine/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/erikos/sugar-jhbuild/source/artwork/gtk-engine'
make: *** [install-recursive] Error 1
*** error during stage install of artwork: Error running make   install
*** [2/15]


 [1] rerun stage install
 [2] ignore error and continue to done
 [3] give up on module
 [4] start shell
choice:



Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Simon Schampijer-2
In reply to this post by Marco Pesenti Gritti
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 <[hidden email]>
>> 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
>

Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Simon Schampijer-2
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 <[hidden email]>
>>> 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
> [hidden email]
> http://mailman.laptop.org/mailman/listinfo/sugar
>

Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Marco Pesenti Gritti
Simon Schampijer wrote:
> Solved,
> sugar is coming up and it looks good:)
> When trying to launch the chat I get the following with a green screen:

The empty chat is expected... the chat activity is not implemented...
You can chat in the context of a shared activity though. Just open a
browser activity and F3 on it (this is going to change a lot with the
final design).

The traceback is not expected though... and I cannot reproduce... I had
some changes locally that I just checked in, can you update and try it
again please?

(sugar-jhbuild buildone sugar will suffice)

Marco
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Simon Schampijer-2
Marco Pesenti Gritti wrote:

> Simon Schampijer wrote:
>> Solved,
>> sugar is coming up and it looks good:)
>> When trying to launch the chat I get the following with a green screen:
>
> The empty chat is expected... the chat activity is not implemented...
> You can chat in the context of a shared activity though. Just open a
> browser activity and F3 on it (this is going to change a lot with the
> final design).
>
> The traceback is not expected though... and I cannot reproduce... I
> had some changes locally that I just checked in, can you update and
> try it again please?
>
> (sugar-jhbuild buildone sugar will suffice)
>
> Marco
>

Ok. I remember the idea of having the chat activity being available in
all the activities. This is working as expected (F3). But after a
'buildone sugar' I still have the same traceback when starting the chat
activity.
Keep up the great work'
Simon

Traceback (most recent call last):
  File
"/home/erikos/sugar-jhbuild/build/share/sugar/shell/home/HomeView.py",
line 24, in __activity_opened_cb
    self._add(activity)
  File
"/home/erikos/sugar-jhbuild/build/share/sugar/shell/home/HomeView.py",
line 36, 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 (4907): Level 40 - Traceback (most recent call last):
  File
"/home/erikos/sugar-jhbuild/build/share/sugar/shell/home/HomeView.py",
line 24, in __activity_opened_cb
    self._add(activity)
  File
"/home/erikos/sugar-jhbuild/build/share/sugar/shell/home/HomeView.py",
line 36, 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 (4939): Level 20 - Starting activity factory
com.redhat.Sugar.GroupChatActivity

Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Marco Pesenti Gritti

>
> Ok. I remember the idea of having the chat activity being available in
> all the activities. This is working as expected (F3). But after a
> 'buildone sugar' I still have the same traceback when starting the
> chat activity.
> Keep up the great work'
> Simon

Weird... Can you please give me the output of:

cat
/home/marco/sugar-jhbuild/build/share/sugar/activities/groupchat.activity

ls -l
/home/marco/sugar-jhbuild/build/share/sugar/activities/groupchat.activity

(Adjust the sugar-jhbuild path)

If you runned sugar-jhbuild as root before that might be the issue...

Thanks,
Marco
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Simon Schampijer-2
Marco Pesenti Gritti wrote:

>
>>
>> Ok. I remember the idea of having the chat activity being available
>> in all the activities. This is working as expected (F3). But after a
>> 'buildone sugar' I still have the same traceback when starting the
>> chat activity.
>> Keep up the great work'
>> Simon
>
> Weird... Can you please give me the output of:
>
> cat
> /home/marco/sugar-jhbuild/build/share/sugar/activities/groupchat.activity
>
[Activity]
name = GroupChat
icon = activity-groupchat
id = com.redhat.Sugar.GroupChatActivity
python_module = groupchat.GroupChatActivity.GroupChatActivity
show_launcher = yes

> ls -l
> /home/marco/sugar-jhbuild/build/share/sugar/activities/groupchat.activity
I am the user of this file:  -rw-r--r-- 1 erikos erikos
I did not run sugar-jhbuilda as root - I just built artwork manually and
did a make install as root there.
 
Simon

Reply | Threaded
Open this post in threaded view
|

ImportError: No module named IconColor

Marco Pesenti Gritti
Simon Schampijer wrote:

> Marco Pesenti Gritti wrote:
>>
>>>
>>> Ok. I remember the idea of having the chat activity being available
>>> in all the activities. This is working as expected (F3). But after a
>>> 'buildone sugar' I still have the same traceback when starting the
>>> chat activity.
>>> Keep up the great work'
>>> Simon
>>
>> Weird... Can you please give me the output of:
>>
>> cat
>> /home/marco/sugar-jhbuild/build/share/sugar/activities/groupchat.activity
>>
>>
> [Activity]
> name = GroupChat
> icon = activity-groupchat
> id = com.redhat.Sugar.GroupChatActivity
> python_module = groupchat.GroupChatActivity.GroupChatActivity
> show_launcher = yes
>
>> ls -l
>> /home/marco/sugar-jhbuild/build/share/sugar/activities/groupchat.activity
>>
> I am the user of this file:  -rw-r--r-- 1 erikos erikos
> I did not run sugar-jhbuilda as root - I just built artwork manually
> and did a make install as root there.

Looks like an icon theme issue... Try to remove the icon theme
(build/share/icons/olpc) and to rebuild artwork.

It could also just be that you need to update the cache:

cd build/share/icons/olpc
gtk-update-icon-cache -f .


But if you installed artwork as root you might still have probs.

Marco