Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#354 closed defect (obsolete)

sugar jhbuild fails to run under ubuntu 9.04 and fedora 10

Reported by: dfarning Owned by: sascha_silbe
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: sugar-jhbuild Version: Git as of bugdate
Severity: Unspecified Keywords:
Cc: sayamindu Distribution/OS: Ubuntu
Bug Status: New

Description

Below is the error messaged I recieved when building and running sugar under sugar-jhbuild on Ubuntu 9.04.

dfarning@3000N100LINUX:~/sugar-jhbuild$ ./sugar-jhbuild run
/var/lib/python-support/python2.5/gtk-2.0/gtk/init__.py:48: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

from gtk import _gtk

ImportError: could not import gio
ImportError: could not import gio
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[config/dbus] couldn't take over org.x.config: org.freedesktop.DBus.Error.AccessDenied (Connection ":1.50" is not allowed to own the service "org.x.config.display101" due to security policies in the configuration file)
unrecognised device identifier!
[ 0.288774] (EE) config/hal: NewInputDeviceRequest failed (2)
unrecognised device identifier!
[ 0.292298] (EE) config/hal: NewInputDeviceRequest failed (2)
unrecognised device identifier!
[ 0.296159] (EE) config/hal: NewInputDeviceRequest failed (2)
unrecognised device identifier!
[ 0.298418] (EE) config/hal: NewInputDeviceRequest failed (2)
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[ 0.363892] (EE) XKB: No components provided for device Virtual core keyboard
[config/dbus] couldn't take over org.x.config: org.freedesktop.DBus.Error.AccessDenied (Connection ":1.50" is not allowed to own the service "org.x.config.display101" due to security policies in the configuration file)
unrecognised device identifier!
[ 0.470496] (EE) config/hal: NewInputDeviceRequest failed (2)
unrecognised device identifier!
[ 0.474019] (EE) config/hal: NewInputDeviceRequest failed (2)
unrecognised device identifier!
[ 0.475885] (EE) config/hal: NewInputDeviceRequest failed (2)
unrecognised device identifier!
[ 0.478193] (EE) config/hal: NewInputDeviceRequest failed (2)
matchbox: keyboard does not appear to have a <alt> key.
matchbox: ignoring key shortcut <Alt>return=fullscreen

1234645747.734215 STARTUP: Starting the shell
/var/lib/python-support/python2.5/gtk-2.0/gtk/init__.py:48: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

from gtk import _gtk

ImportError: could not import gio
ImportError: could not import gio
ImportError: cannot import name Container from gtk
Traceback (most recent call last):

File "/home/dfarning/sugar-jhbuild/install/bin/sugar-session", line 48, in <module>

from jarabe.desktop.homewindow import HomeWindow

File "/home/dfarning/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/desktop/homewindow.py", line 24, in <module>

from jarabe.desktop.meshbox import MeshBox

File "/home/dfarning/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/desktop/meshbox.py", line 26, in <module>

from sugar.graphics.icon import CanvasIcon, Icon

File "/home/dfarning/sugar-jhbuild/install/lib/python2.5/site-packages/sugar/graphics/icon.py", line 312, in <module>

class Icon(gtk.Image):

AttributeError: 'module' object has no attribute 'Image'

Change History (12)

comment:2 Changed 12 years ago by erikos

  • Bug Status changed from Unconfimed to New
  • Component changed from sugar to sugar-jhbuild

comment:3 Changed 12 years ago by erikos

  • Distribution/OS changed from Unspecified to Ubuntu

comment:4 Changed 12 years ago by shanghaiscott

Exact same problem on Fedora 10 (fresh install + all updates, sugar-jhbuild from git, on a VirtualBox VM) All components build successfully, but final result is not usable.

comment:5 Changed 12 years ago by shanghaiscott

Install jukeboxactivity.py to /opt/olpc/git/sugar-jhbuild/install/share/sugar/activities/Jukebox.activity/jukeboxactivity.py.
* success * [35/35]
scott@f10vm1(0):sugar-jhbuild > ./sugar-jhbuild run
/usr/lib/python2.5/site-packages/gtk-2.0/gtk/init__.py:48: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

from gtk import _gtk

ImportError: could not import gio
ImportError: could not import gio
1236224843.2560401 STARTUP: Starting the shell
/usr/lib/python2.5/site-packages/gtk-2.0/gtk/init__.py:48: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

from gtk import _gtk

ImportError: could not import gio
ImportError: could not import gio
unrecognised device identifier!
(EE) config/hal: NewInputDeviceRequest failed
unrecognised device identifier!
(EE) config/hal: NewInputDeviceRequest failed
unrecognised device identifier!
(EE) config/hal: NewInputDeviceRequest failed
unrecognised device identifier!
(EE) config/hal: NewInputDeviceRequest failed
unrecognised device identifier!
(EE) config/hal: NewInputDeviceRequest failed
unrecognised device identifier!
(EE) config/hal: NewInputDeviceRequest failed
ImportError: cannot import name Container from gtk
Traceback (most recent call last):

File "/opt/olpc/git/sugar-jhbuild/install/bin/sugar-session", line 48, in <module>

from jarabe.desktop.homewindow import HomeWindow

File "/opt/olpc/git/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/desktop/homewindow.py", line 24, in <module>

from jarabe.desktop.meshbox import MeshBox

File "/opt/olpc/git/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/desktop/meshbox.py", line 26, in <module>

from sugar.graphics.icon import CanvasIcon, Icon

File "/opt/olpc/git/sugar-jhbuild/install/lib/python2.5/site-packages/sugar/graphics/icon.py", line 312, in <module>

class Icon(gtk.Image):

AttributeError: 'module' object has no attribute 'Image'
scott@f10vm1(0):sugar-jhbuild > uname -a
Linux f10vm1 2.6.27.19-170.2.35.fc10.i686 #1 SMP Mon Feb 23 13:21:22 EST 2009 i686 i686 i386 GNU/Linux
scott@f10vm1(0):sugar-jhbuild > cat /etc/fedora-release
Fedora release 10 (Cambridge)
scott@f10vm1(0):sugar-jhbuild > sudo yum update
[sudo] password for scott:
Loaded plugins: refresh-packagekit
Setting up Update Process
No Packages marked for Update

comment:6 Changed 12 years ago by shanghaiscott

  • Summary changed from sugar jhbuild fails to run under ubuntu 9.04 to sugar jhbuild fails to run under ubuntu 9.04 and fedora 10
  • Version changed from Unspecified to Git as of bugdate

Searching through all the source code pulled down by sugar-jhbuild, there are only two places where the error message "cannot import name Container from gtk" appears:

sugar-toolkit/src/sugar/_sugarext.c:1266: "cannot import name Container from gtk");

hippo-canvas/hippo.c:6226: "cannot import name Container from gtk");

comment:7 Changed 12 years ago by shanghaiscott

I was successful running sugar via sugar_jhbuild on F10. I did not have some F10 packages installed and even though sugar_jhbuild completed successfully it didn't work. My mistake was thinking that sugar-jhbuild was updating itself and the build would fail if I was missing some new dependency. The build would go fine, it just wouldn't work! I added in the "deps" (+) below, deleted my local sugar-jhbuild repo, and cloned it again. Then it worked.

# new deps on this page:
# http://wiki.laptop.org/go/Sugar_on_Fedora
scott@f10vm1(1):bin > cat new.txt
--- sorted.txt 2009-03-11 21:32:59.000000000 -0400
+++ wiki-sorted.txt 2009-03-11 21:31:43.000000000 -0400
@@ -4,13 +4,13 @@

automake17
avahi-devel
avahi-glib-devel

-avahi-gobject

avahi-gobject-devel
avahi-tools
bison
boost-devel
darcs
dbus-glib-devel
docbook-style-xsl
enchant-devel
expat-devel

@@ -33,14 +33,20 @@

gstreamer-python
gtk2-devel
gtk-doc

+hippo-canvas-python

icon-naming-utils
icon-slicer
intltool
libglade2-devel
libgsf-devel
libidn-devel
libjpeg-devel

+libmatchbox

liboil-devel

+libsoup22-devel

libtheora-devel
libtiff-devel
libtool

@@ -48,18 +54,30 @@

libXres-devel
libxslt-devel
libXt-devel

-loudmouth

loudmouth-devel

+matchbox-window-manager

ncurses-devel
numpy
openssl-devel
pango-devel
poppler-devel

+poppler-glib-devel

popt-devel

+pyabiword

pycairo-devel
pygtk2-devel

+python-cjson

python-devel
python-json

+python-simplejson

speex-devel
sqlite-devel

+wv
+wv-devel
+xapian-bindings-python
+xapian-core-libs

xorg-x11-server-Xephyr

+xulrunner-devel-unstable
+xulrunner-python
+xulrunner-python-devel

comment:8 Changed 12 years ago by sascha_silbe

  • Owner changed from marcopg to sascha_silbe
  • Status changed from new to assigned

comment:9 Changed 12 years ago by sascha_silbe

  • Resolution set to obsolete
  • Status changed from assigned to closed

dfarning:
Cannot reproduce on Ubuntu Jaunty using Python 2.5, so closing (as obsolete since Jaunty now uses Python 2.6 by default). If it still happens for you, please reopen.

shanghaiscott:
The Fedora dependencies list in sugar-jhbuild has been updated according to your diff (most of them already were listed).
If you got the time, it would be great if you could check whether "./sugar-jhbuild depscheck" lists all required packages on a fresh installation of Fedora, as I didn't manage to install F10 in a VM (hangs on the bootloader step).
In case anything is missing, please file a bug against sugar-jhbuild.

comment:10 Changed 12 years ago by sayamindu

  • Resolution obsolete deleted
  • Status changed from closed to reopened

This just happened to me in Rawhide. I noticed that we are installing pygobject in the jhbuild install directory, and running make uninstall in the pygobject directory fixed the issue for me. Is pygobject required ? I believe the version of pygobject we are installing is somewhat older than what Rawhide, etc ship with, which is probably triggering the issue.

Can't we use the pygobject shipped by the distros ?

comment:11 Changed 12 years ago by sayamindu

  • Cc sayamindu added

comment:12 Changed 12 years ago by sascha_silbe

  • Resolution set to obsolete
  • Status changed from reopened to closed

sayamindu, you're seeing a different bug. We're already using the distro version of python-gobject on all supported distros.
What most likely happened is that your machine, like my VM, recently decided to call itself "Fedora 10.93 / leonidas" instead of "Fedora Rawhide". Since we didn't have configs for 10.93, sugar-jhbuild pulled in everything from source instead of the distro packages..
Please prune sugar-jhbuild/install and try again. If you still have trouble, please open a new bug.

Note: See TracTickets for help on using tickets.