Gramps does not even start to emerge, because it complains about libglade support missing in pygtk. Suggestion is: * You need to install pygtk with libglade support. Try: * USE='gnome' emerge pygtk gramps But doing so does not change the result. This problem appeared first in 0.9.5 and has not yet disappeared, although i tried every version since then. Reproducible: Always Steps to Reproduce: 1. emerge gramps (fails) 2. USE='gnome' emerge pygtk gramps (fails @ gramps) 3. Actual Results: king root # emerge gramps Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/gramps-1.0.1 to / >>> md5 src_uri ;-) gramps-1.0.1.tar.gz Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named glade * You need to install pygtk with libglade support. Try: * USE='gnome' emerge pygtk gramps !!! ERROR: app-misc/gramps-1.0.1 failed. !!! Function pkg_setup, Line 35, Exitcode 0 !!! libglade support missing from pygtk king root # USE='gnome' emerge pygtk gramps [...] * Cleaning orphaned Python bytecode from /usr/share/pygtk/2.0/codegen .. * Cleaning orphaned Python bytecode from /usr/lib/python2.2/site-packages .. * Cleaning orphaned Python bytecode from /usr/lib/python2.3/site-packages .. * Linking /usr/lib/python2.3/site-packages/pygtk.py-2.0 to /usr/lib/python2.3/s ite-packages/pygtk.py (relative) * Linking /usr/lib/python2.3/site-packages/pygtk.pth-2.0 to /usr/lib/python2.3/ site-packages/pygtk.pth (relative) >>> original instance of package unmerged safely. * Byte compiling python modules for python-2.3 ..... [ ok ] * Linking /usr/lib/python2.3/site-packages/pygtk.py-2.0 to /usr/lib/python2.3/s ite-packages/pygtk.py (relative) * Linking /usr/lib/python2.3/site-packages/pygtk.pth-2.0 to /usr/lib/python2.3/ site-packages/pygtk.pth (relative) * Caching service dependencies... [ ok ] >>> dev-python/pygtk-2.2.0 merged. >>> clean: No packages selected for removal. >>> emerge (2 of 2) app-misc/gramps-1.0.1 to / >>> md5 src_uri ;-) gramps-1.0.1.tar.gz Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named glade * You need to install pygtk with libglade support. Try: * USE='gnome' emerge pygtk gramps !!! ERROR: app-misc/gramps-1.0.1 failed. !!! Function pkg_setup, Line 35, Exitcode 0 !!! libglade support missing from pygtk Expected Results: A working Gramps 1.0.1 version. king root # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.2.5-r2,2.3.3_pre20040207-r0, 2.6.4) ================================================================= System uname: 2.6.4 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /opt/resin/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apm avi berkdb bonobo cdr crypt cups doc dvd dvdr encode foomaticdb gd gdbm gnome gpm gtk gtk2 gtkhtml guile hbci imagemagick imlib ipv6 java jpeg ldap libg++ libwww mad mozilla moznocompose moznoirc moznomail mpeg ncurses nls nocardbus nvidia oggvorbis opengl pam pda pdflib perl png python readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype usb x86 xml2 xmms xv zlib"
This problem is related to pyGTK. Althought it is compiled with GNOME in USE, still doesn't support libglade. Maybe try to reemerge libglade, then pyGTK and gramps?
> Maybe try to reemerge libglade, then pyGTK and gramps? No luck.
I got this error for as well for a while and I just realised that I would like something newer than gramps-0.98.1 :-?. When you look well at the output of the python command blocking the ebuild (python -c "import gtk.glade"), you will remark that you get an error in a console, python complaining that it cannot open the display ... you see the point ? Try emerging gramps under X and ya will get a damn good surprise (by the way, you could just rename the old ebuild to version 1.0.2, digest it and you will get the very last release of gramps!). Greetings, S
I got this error for as well for a while and I just realised that I would like something newer than gramps-0.98.1 :-?. When you look well at the output of the python command blocking the ebuild (python -c "import gtk.glade"), you will remark that you get an error in a console, python complaining that it cannot open the display ... you see the point ? Try emerging gramps under X and ya will get a damn good surprise (by the way, you could just rename the old ebuild to version 1.0.2, digest it and you will get the very last release of gramps!). Greetings, Sébastien
indeed. so i suggest to replace current condition checking for libglade support with: "if ! grep gnome /var/db/pkg/dev-python/pygtk-*/PKGUSE &> /dev/null; then"
err, USE, not PKGUSE
I do have honestly not a clue what you are talking about. I am emerging gramps under X everytime, this time even with xhosts +, but the result is always the same: king root # emerge -u gramps Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/gramps-1.0.1 to / >>> md5 src_uri ;-) gramps-1.0.1.tar.gz Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named glade * You need to install pygtk with libglade support. Try: * USE='gnome' emerge pygtk gramps !!! ERROR: app-misc/gramps-1.0.1 failed. !!! Function pkg_setup, Line 35, Exitcode 0 !!! libglade support missing from pygtk This stays unchanged, even with "USE='gnome' emerge libglade pygtk gramps". There is obviously no python console output about X display opening or such.
Christoph, could you attach complete log from emerging pygtk? I mean the result of USE="gnome" emerge pygtk &> pygtk_emerge.log
Created attachment 28931 [details] Output of USE="gnome" emerge pygtk &> pygtk_emerge.log
what does: python -c 'import gtk.glade' and python -c 'import gtk' return when you try it on the console?
christoph@king christoph $ python -c 'import gtk.glade' Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named glade christoph@king christoph $ python -c 'import gtk' christoph@king christoph $
Having the same problem. Tried emerging it under X (under a KDE konsole), didn't help. I have full gnome 2.4 installed (aka, emerge gnome) --- # ACCEPT_KEYWORDS="~x86" emerge gramps Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/gramps-1.0.1 to / >>> md5 src_uri ;-) gramps-1.0.1.tar.gz Xlib: connection to ":1.0" refused by server Xlib: No protocol specified Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 43, in ? from _gtk import * RuntimeError: could not open display * You need to install pygtk with libglade support. Try: * USE='gnome' emerge pygtk gramps !!! ERROR: app-misc/gramps-1.0.1 failed. !!! Function pkg_setup, Line 35, Exitcode 0 !!! libglade support missing from pygtk --- The following errors out with the same error message. # USE='gnome' ACCEPT_KEYWORDS="~x86" emerge pygtk gramps Other requested output: # python -c 'import gtk.glade' # python -c 'import gtk' (aka no output, for both)
Forgot the tidbit that I even logged in as root into KDE, so there really shouldn't be a problem with X. And pyGTK is compiled with all USE flags on: # ACCEPT_KEYWORDS="~x86" emerge -pv pygtk These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-python/pygtk-2.2.0 +gnome +opengl 0 kB Total size of downloads: 0 kB
there seems to be two different problems. christoph, for some reason, does not have the glade module installed with pygtk. henk's problem is that import gtk requires a valid X display. henk, can you try using DISPLAY="" emerge gramps, and also attach emerge info
Created attachment 29220 [details] DISPLAY="" ACCEPT_KEYWORDS="~x86" emerge gramps &> gramps_emerge.log Logfile as requested
FWIW: I installed gramps 1.0.1-1 on my personal machine. When I went to install it on my mother's machine, I got the same error messages and results as described here. On both machines, I added USE="gnome" to /etc/make.config. I'm including the 'emerge info' for both machines. If there is information you'ld like me to collect from each machine, just let me know. ***************************************************************** My machine: Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.5) ================================================================= System uname: 2.6.5 i686 AMD Athlon(TM) XP 1900+ Gentoo Base System version 1.4.6 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -Os -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://adelie.polymtl.ca/ http://212.219.247.10/sites/www.ibiblio.org/gentoo/ http://212.219.247.12/sites/www.ibiblio.org/gentoo/ http://212.219.247.14/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X alsa apm arts athena avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde ldap libg++ libwww mad mikmod mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib" ********************************************************************* Mumzie's machine: Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-rc2) ================================================================= System uname: 2.6.4-rc2 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.6 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.ccccom.com ftp://gentoo.ccccom.com ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://212.219.247.15/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcltk tcpd truetype usb x86 xml2 xmms xv zlib"
Ah, "emerge info" was meant as CLI command... oh well, here it is.... Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-rc1) ================================================================= System uname: 2.6.4-rc1 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.3.13p1 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.sdv.fr http://ds.thn.htu.se/linux/gentoo http://gentoo.tiscali.nl/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa arts avi berkdb cdr crypt cups directfb doc dvd encode esd faad flac foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imlib java javascript jpeg kde ldap libg++ libwww linguas_nl mad matroska mikmod mmx motif mozilla mpeg mysql ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline samba scanner sdl slang speex spell sse ssl svga tcltk tcpd theora tiff truetype usb wmf x86 xml2 xmms xv zlib"
fixed using virtualx now.
approved