Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176202 - [FEATURES=test failure] dev-python/gnome-python-desktop-2.16.0 test failed: ImportError: could not import gtk
Summary: [FEATURES=test failure] dev-python/gnome-python-desktop-2.16.0 test failed: I...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome-tests
  Show dependency tree
 
Reported: 2007-04-27 06:51 UTC by Lónyai Gergely
Modified: 2007-10-28 13:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,106.13 KB, text/plain)
2007-04-27 06:52 UTC, Lónyai Gergely
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lónyai Gergely 2007-04-27 06:51:23 UTC
>>> Source compiled.
Making check in docs
make[1]: Entering directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs'
Making check in gtksourceview
make[2]: Entering directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs/gtksourceview'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs/gtksourceview'
Making check in gnomeprint
make[2]: Entering directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs/gnomeprint'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs/gnomeprint'
Making check in gnomeprintui
make[2]: Entering directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs/gnomeprintui'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs/gnomeprintui'
make[2]: Entering directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs'
make[1]: Leaving directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/docs'
Making check in tests
make[1]: Entering directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/tests'
make  check-local
make[2]: Entering directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/tests'
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Trying to import module gnomeapplet... 
Traceback (most recent call last):
  File "./runtests.py", line 6, in ?
    import common
  File "/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/tests/common.py", line 32, in ?
    __import__(module) # try to import the module to catch undefined symbols
  File "/usr/lib/python2.4/ihooks.py", line 404, in import_module
    q, tail = self.find_head_package(parent, str(name))
  File "/usr/lib/python2.4/ihooks.py", line 440, in find_head_package
    q = self.import_it(head, qname, parent)
  File "/usr/lib/python2.4/ihooks.py", line 495, in import_it
    m = self.loader.load_module(fqname, stuff)
  File "/usr/lib/python2.4/ihooks.py", line 268, in load_module
    m = self.hooks.load_dynamic(name, filename, file)
  File "/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/tests/ltihooks.py", line 50, in load_dynamic
    return ihooks.Hooks.load_dynamic(self, name, filename, file)
  File "/usr/lib/python2.4/ihooks.py", line 172, in load_dynamic
    return imp.load_dynamic(name, filename, file)
ImportError: could not import gtk
make[2]: *** [check-local] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/work/gnome-python-desktop-2.16.0/tests'
make: *** [check-recursive] Error 1

!!! ERROR: dev-python/gnome-python-desktop-2.16.0 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_test
  ebuild.sh, line 1026:   Called qa_call 'src_test'
  environment, line 3880:   Called src_test
  gnome-python-desktop-2.16.0.ebuild, line 41:   Called die

!!! tests failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-python/gnome-python-desktop-2.16.0/temp/build.log'.

...

emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r6 i686)
=================================================================
System uname: 2.6.20-gentoo-r6 i686 Intel(R) Celeron(R) CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 27 Apr 2007 06:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="hu_HU.utf8"
LC_ALL="hu_HU.utf8"
LINGUAS="hu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/hron /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/enlightenment /usr/portage/local/layman/vmware"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi afs aim alsa apache2 bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cddb cdr clamav cli cracklib crypt cups dbus directfb dri dvd dvdr dvdread eds emboss encode esd fbcon ffmpeg firefox flac fortran ftp gcj gdbm gif gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal iconv icq imap isdnlog jabber java javascript jbig jpeg jpeg2k kerberos ldap libg++ libnotify logrotate mad matroska midi mikmod mime mmx mng mp3 mpeg msn ncurses nls nptl nptlonly nsplugin odbc ogg openal opengl oscar pam pdf perl php png postgres ppds pppd prelude python quicktime rdesktop readline reflection samba sdl session spell spl sse sse2 ssl svg symlink tcpd test theora tiff truetype truetype-fonts type1-fonts unicode usb vhosts vorbis win32codecs x264 x86 xcomposite xml xorg xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu" USERLAND="GNU" VIDEO_CARDS="i810 fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lónyai Gergely 2007-04-27 06:52:20 UTC
Created attachment 117370 [details]
build.log
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-06-19 08:46:57 UTC
could you try unsetting DISPLAY, SESSIONMANAGER and the like and see if the test pass ?
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-10-28 13:25:53 UTC
additionnaly, how do you get root access to emerge stuff ? (su, su -, sudo, other ?), otherwise it's a worksforme.