[sugar] New runtime error

Marco Pesenti Gritti mpg at redhat.com
Thu May 31 14:16:50 EDT 2007


Ryan Pavlik wrote:
> Thanks for the patch to the previous error - it came in and seems to be 
> working fine now.  I am now getting a new error when I run 
> ./sugar-jhbuild run and sugar never loads completely.  (This looks like 
> perhaps another side effect of running on an AMD64 platform)
>
> Thoughts?
>
> ryan at gamma:~/srctrees/sugar-jhbuild$ ./sugar-jhbuild run
> INFO:sugar-emulator:Attempting to find free port for X11 (Xephyr)
> INFO:sugar-emulator:  Found free port: #1 (6001)
> INFO:sugar-emulator:Starting the Xephyr nested X display on display 1
> /home/ryan/srctrees/sugar-jhbuild/build/bin/sugar-emulator:79: 
> GtkWarning: Unable to locate theme engine in module_path: "candido",
>   dpi = gtk.settings_get_default().get_property('gtk-xft-dpi')
> DEBUG:sugar-emulator:Xephyr command: Xephyr :1 -ac -screen 1200x900 -dpi 96
> INFO:sugar-emulator:Attempting to launch sugar to replace this process: 
> dbus-launch dbus-launch --exit-with-session sugar-shell
> _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
> _XSERVTransOpen: transport open failed for inet6/gamma:1
> _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
> Extended Input Devices not yet supported. Impelement it at line 625 in 
> ../../../../hw/kdrive/src/kinput.c
> Could not init font path element /usr/share/fonts/X11/cyrillic, removing 
> from list!
> ERROR:root:Error reading public key: [Errno 2] No such file or 
> directory: '/home/ryan/.sugar/default/owner.key.pub'
> ERROR:root:Error reading private key: [Errno 2] No such file or 
> directory: '/home/ryan/.sugar/default/owner.key'
> Traceback (most recent call last):
>   File "/home/ryan/srctrees/sugar-jhbuild/build/bin/sugar-shell", line 
> 37, in ?
>     from view.Shell import Shell
>   File 
> "/home/ryan/srctrees/sugar-jhbuild/build/share/sugar/shell/view/Shell.py", 
> line 29, in ?
>     from view.frame.frame import Frame
>   File 
> "/home/ryan/srctrees/sugar-jhbuild/build/share/sugar/shell/view/frame/frame.py", 
> line 23, in ?
>     from view.frame.ActivitiesBox import ActivitiesBox
>   File 
> "/home/ryan/srctrees/sugar-jhbuild/build/share/sugar/shell/view/frame/ActivitiesBox.py", 
> line 22, in ?
>     from sugar.graphics.iconbutton import IconButton
>   File 
> "/home/ryan/srctrees/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/graphics/iconbutton.py", 
> line 34, in ?
>     class IconButton(CanvasIcon, hippo.CanvasItem):
>   File 
> "/home/ryan/srctrees/sugar-jhbuild/build/lib/python2.4/site-packages/gtk-2.0/gobject/__init__.py", 
> line 37, in __init__
>     cls._type_register(cls.__dict__)
>   File 
> "/home/ryan/srctrees/sugar-jhbuild/build/lib/python2.4/site-packages/gtk-2.0/gobject/__init__.py", 
> line 49, in _type_register
>     type_register(cls, namespace.get('__gtype_name__'))
> OverflowError: signed integer is greater than maximum (while registering 
> property 'size' for GType 'SugarIconButton')
>   

I opened a pygobject bug, I want to figure out what's the right solution:

http://bugzilla.gnome.org/show_bug.cgi?id=442652

While this get solved properly you can easily hack around by putting 
0x7fffffff instead of sys.maxint.

Marco


More information about the Sugar mailing list