Summary: | Gramps Version 0.9.4 build error | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ralph De Witt <ralphdewitt> |
Component: | New packages | Assignee: | Lisa Seelye (RETIRED) <lisa> |
Status: | RESOLVED LATER | ||
Severity: | critical | CC: | gentoo-bugs2, gnome, m.debruijne, spamlover |
Priority: | High | ||
Version: | 1.4 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 34873 | ||
Bug Blocks: |
Description
Ralph De Witt
2003-10-01 15:18:24 UTC
Though you would like to see this bug report. Did you do what the thing suggests with USE="gnome" emerge pygtk gramps ? Lisa:
I issued the command:
Accept_KEYWORDS=~x86 USE="gnome" emerge pygtk gramps and I have pygtk version
2.0.0 and pygtk version 1.99.16 installed now and the following errors on
Gramps:
>>> emerge (2 of 2) app-misc/gramps-0.9.4 to /
>>> md5 src_uri ;-) gramps-0.9.4.tar.gz
libtool
gnome.org
gnome2
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/lib/python2.2/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-0.9.4 failed.
!!! Function pkg_setup, Line 35, Exitcode 0
!!! libglade support missing from pygtk
kitty root #
I am not understanding the errors as Gramps version 0.9.3 is installed. I
should not be having any problems.
just for the record you can safely ignore the Xlib messages about the connection. it looks like you're pygtk/libglade has gone a bit funny. i'd recommend removing both versions of pygtk (2's what you really want) and then issuing USE="gnome" emerge pygtk to recompile pygtk freshly with libglade support. Try Mike's suggestion. And this isn't really a blocker. I unmerge all the pygtk's. Then issued the command ACCEPT_KEYWORDS=~x86 USE="gnome"
emerge pygtk. After it installed with no errors. I issured the command ACCEPT_KEYWORDS=~x86
emerge gramps and I came up with this:
kitty root # ACCEPT_KEYWORDS=~x86 emerge gramps
Calculating dependencies ...done!
>>> emerge (1 of 1) app-misc/gramps-0.9.4 to /
>>> md5 src_uri ;-) gramps-0.9.4.tar.gz
libtool
gnome.org
gnome2
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/lib/python2.2/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-0.9.4 failed.
!!! Function pkg_setup, Line 35, Exitcode 0
!!! libglade support missing from pygtk
kitty root #
The same error as before.
Lisa. Just looked thru some old email bug reports and I had this same problem when installing version 0.9.3. this is the comments: okay, i'll confirm this. if you'd like a quick solution just USE="gnome" emerge pygtk gramps that'll fix things up while we look for a solution to this. the problem is really that gramps needs pygtk to be compiled with what is currently an optional flag for it. thanks for your report, we'll look into it. and we prob need gramps to check for python libglade support in pkg_setup() Do not know why this is not working this time. the import gtk.glade check at the beginning of the ebuild needs X, that is failing and hence the ebuild thinks there is no libglade. someone needs to look at how the virtualx.eclass works with Xmake and Xemake and do something similar to that with the check. I get the following error when trying to emerge gramps 0.9.4: <snip> make[2]: Entering directory `/home/portage/portage/gramps-0.9.4/work/gramps-0.9.4/src/po' /usr/bin/msgconv --to-code=UTF-8 hu.po -o temp.po iconv --from-code=GB2312 --to-code=UTF-8 ../../src/po/zh_CN.po -o temp.po /usr/bin/msgfmt -v temp.po -o zh_CN.mo 353 translated messages, 1234 untranslated messages. rm temp.po /usr/bin/msgconv --to-code=UTF-8 cs.po -o temp.po /usr/bin/msgfmt -v temp.po -o cs.mo /usr/bin/msgfmt -v temp.po -o hu.mo temp.po:5220: keyword "ns" unknown temp.po:5220:3: parse error temp.po:5221: duplicate message definition temp.po:3380: ...this is the location of the first definition temp.po:5225: duplicate message definition temp.po:3384: ...this is the location of the first definition temp.po:5234: duplicate message definition temp.po:3392: ...this is the location of the first definition temp.po:5238: duplicate message definition temp.po:3396: ...this is the location of the first definition temp.po:5242: duplicate message definition temp.po:3400: ...this is the location of the first definition temp.po:5246: duplicate message definition temp.po:3404: ...this is the location of the first definition temp.po:5251: duplicate message definition temp.po:3408: ...this is the location of the first definition temp.po:5255: duplicate message definition temp.po:3412: ...this is the location of the first definition temp.po:5259: duplicate message definition temp.po:3416: ...this is the location of the first definition temp.po:5263: duplicate message definition temp.po:3420: ...this is the location of the first definition temp.po:5267: duplicate message definition temp.po:3424: ...this is the location of the first definition temp.po:5272: duplicate message definition temp.po:3428: ...this is the location of the first definition temp.po:5276: duplicate message definition temp.po:3432: ...this is the location of the first definition temp.po:5281: duplicate message definition temp.po:3436: ...this is the location of the first definition temp.po:5330: duplicate message definition temp.po:3472: ...this is the location of the first definition temp.po:5334: duplicate message definition temp.po:3476: ...this is the location of the first definition temp.po:5389: duplicate message definition temp.po:3480: ...this is the location of the first definition temp.po:5397: duplicate message definition /usr/bin/msgfmt: too many errors, aborting make[2]: *** [cs.mo] Error 1 make[2]: *** Waiting for unfinished jobs.... temp.po:5220: keyword "ns" unknown temp.po:5220:3: parse error temp.po:5221: duplicate message definition temp.po:3380: ...this is the location of the first definition temp.po:5225: duplicate message definition temp.po:3384: ...this is the location of the first definition temp.po:5234: duplicate message definition temp.po:3392: ...this is the location of the first definition temp.po:5238: duplicate message definition temp.po:3396: ...this is the location of the first definition temp.po:5242: duplicate message definition temp.po:3400: ...this is the location of the first definition temp.po:5246: duplicate message definition temp.po:3404: ...this is the location of the first definition temp.po:5251: duplicate message definition temp.po:3408: ...this is the location of the first definition temp.po:5255: duplicate message definition temp.po:3412: ...this is the location of the first definition temp.po:5259: duplicate message definition temp.po:3416: ...this is the location of the first definition temp.po:5263: duplicate message definition temp.po:3420: ...this is the location of the first definition temp.po:5267: duplicate message definition temp.po:3424: ...this is the location of the first definition temp.po:5272: duplicate message definition temp.po:3428: ...this is the location of the first definition temp.po:5276: duplicate message definition temp.po:3432: ...this is the location of the first definition temp.po:5281: duplicate message definition temp.po:3436: ...this is the location of the first definition temp.po:5330: duplicate message definition temp.po:3472: ...this is the location of the first definition temp.po:5334: duplicate message definition temp.po:3476: ...this is the location of the first definition temp.po:5389: duplicate message definition temp.po:3480: ...this is the location of the first definition temp.po:5397: duplicate message definition /usr/bin/msgfmt: too many errors, aborting make[2]: *** [hu.mo] Error 1 make[2]: Leaving directory `/home/portage/portage/gramps-0.9.4/work/gramps-0.9.4/src/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/portage/portage/gramps-0.9.4/work/gramps-0.9.4/src' make: *** [all-recursive] Error 1 !!! ERROR: app-misc/gramps-0.9.4 failed. !!! Function gnome2_src_compile, Line 39, Exitcode 2 !!! compile failure Any help appreciated I also get this:
bash-2.05b# emerge -u gramps
Calculating dependencies ...done!
>>> emerge (1 of 1) app-misc/gramps-0.9.4 to /
>>> md5 src_uri ;-) gramps-0.9.4.tar.gz
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/lib/python2.2/site-packages/gtk.py", line 22, in ?
ImportError: No module named _gtk
* You need to install pygtk with libglade support. Try:
* USE='gnome' emerge pygtk gramps
!!! ERROR: app-misc/gramps-0.9.4 failed.
!!! Function pkg_setup, Line 35, Exitcode 0
!!! libglade support missing from pygtk
bash-2.05b#
USE='gnome' emerge pygtk gramps
did not work for me.
I think there are two bugs here. When I try to upgrade from gramps 0.9.3 with X running I get something similar to Craig Main: <snip> make[2]: Entering directory `/var/tmp/portage/gramps-0.9.4/work/gramps-0.9.4/src/po' /usr/bin/msgconv --to-code=UTF-8 hu.po -o temp.po iconv --from-code=GB2312 --to-code=UTF-8 ../../src/po/zh_CN.po -o temp.po /usr/bin/msgfmt -v temp.po -o zh_CN.mo temp.po:5136: duplicate message definition temp.po:3920: ...this is the location of the first definition temp.po:5175: duplicate message definition temp.po:3924: ...this is the location of the first definition temp.po:5179: duplicate message definition temp.po:3928: ...this is the location of the first definition temp.po:5183: duplicate message definition temp.po:3932: ...this is the location of the first definition temp.po:5195: duplicate message definition temp.po:3940: ...this is the location of the first definition temp.po:5199: duplicate message definition temp.po:3944: ...this is the location of the first definition temp.po:5203: duplicate message definition temp.po:3948: ...this is the location of the first definition temp.po:5207: duplicate message definition temp.po:3952: ...this is the location of the first definition temp.po:5211: duplicate message definition temp.po:3956: ...this is the location of the first definition temp.po:5218: duplicate message definition temp.po:3962: ...this is the location of the first definition temp.po:5223: duplicate message definition temp.po:3967: ...this is the location of the first definition temp.po:5227: duplicate message definition temp.po:3971: ...this is the location of the first definition temp.po:5231: duplicate message definition temp.po:3975: ...this is the location of the first definition temp.po:5235: duplicate message definition temp.po:3979: ...this is the location of the first definition temp.po:5239: duplicate message definition temp.po:3983: ...this is the location of the first definition temp.po:5243: duplicate message definition temp.po:3936: ...this is the location of the first definition temp.po:5247: duplicate message definition temp.po:3987: ...this is the location of the first definition temp.po:5251: duplicate message definition temp.po:3991: ...this is the location of the first definition temp.po:5255: duplicate message definition temp.po:3995: ...this is the location of the first definition temp.po:5260: duplicate message definition /usr/bin/msgfmt: too many errors, aborting make[2]: *** [zh_CN.mo] Error 1 make[2]: *** Waiting for unfinished jobs.... /usr/bin/msgfmt -v temp.po -o hu.mo make[2]: *** Waiting for unfinished jobs.... temp.po:5136: duplicate message definition temp.po:3920: ...this is the location of the first definition temp.po:5175: duplicate message definition temp.po:3924: ...this is the location of the first definition temp.po:5179: duplicate message definition temp.po:3928: ...this is the location of the first definition temp.po:5183: duplicate message definition temp.po:3932: ...this is the location of the first definition temp.po:5195: duplicate message definition temp.po:3940: ...this is the location of the first definition temp.po:5199: duplicate message definition temp.po:3944: ...this is the location of the first definition temp.po:5203: duplicate message definition temp.po:3948: ...this is the location of the first definition temp.po:5207: duplicate message definition temp.po:3952: ...this is the location of the first definition temp.po:5211: duplicate message definition temp.po:3956: ...this is the location of the first definition temp.po:5218: duplicate message definition temp.po:3962: ...this is the location of the first definition temp.po:5223: duplicate message definition temp.po:3967: ...this is the location of the first definition temp.po:5227: duplicate message definition temp.po:3971: ...this is the location of the first definition temp.po:5231: duplicate message definition temp.po:3975: ...this is the location of the first definition temp.po:5235: duplicate message definition temp.po:3979: ...this is the location of the first definition temp.po:5239: duplicate message definition temp.po:3983: ...this is the location of the first definition temp.po:5243: duplicate message definition temp.po:3936: ...this is the location of the first definition temp.po:5247: duplicate message definition temp.po:3987: ...this is the location of the first definition temp.po:5251: duplicate message definition temp.po:3991: ...this is the location of the first definition temp.po:5255: duplicate message definition temp.po:3995: ...this is the location of the first definition temp.po:5260: duplicate message definition /usr/bin/msgfmt: too many errors, aborting make[2]: *** [hu.mo] Error 1 make[2]: Leaving directory `/var/tmp/portage/gramps-0.9.4/work/gramps-0.9.4/src/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gramps-0.9.4/work/gramps-0.9.4/src'make: *** [all-recursive] Error 1 !!! ERROR: app-misc/gramps-0.9.4 failed. !!! Function gnome2_src_compile, Line 39, Exitcode 2 !!! compile failure I also had problems with .po files (stuck on the end of bug 29414 - these bugs aren't really sticking to the point are they ;). As I wrote there, I "fixed" it with MAKEOPTS="-j1". Hope this helps. Not sure if this is the same problem, but I'm seeing: # emerge gramps Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/gramps-0.9.4 to / >>> md5 src_uri ;-) gramps-0.9.4.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-0.9.4 failed. !!! Function pkg_setup, Line 35, Exitcode 0 !!! libglade support missing from pygtk I have gnome flag set, tried re-emerging pygtk, etc. Have tried unsetting DISPLAY, setting MAKEOPTS to "-j1", etc... no luck... # emerge info Portage 2.0.49-r13-2 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r6, 2.4.20-xfs-r3) ================================================================= System uname: 2.4.20-xfs-r3 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.11 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/3.1/share/config /usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox strict ccache" GENTOO_MIRRORS="http://212.219.56.162/sites/www.ibiblio.org/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gtkhtml alsa gdbm slang readline arts aalib nas bonobo svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla gphoto2 cdr scanner 3dfx apache2 dga emacs fbcon gd gtk2 innodb jikes moznocompose moznoirc mozxmlterm pda pic sse tiff type1 usb voodoo3 Xaw3d xft xml -berkdb" Thanks george, the makeopts change worked for me as well. None of the tips help for me, I still get complaints about missing glade support, although I tried the USE='gnome' line as well as the MAKEOPTS thing. ImportError: No module named glade * You need to install pygtk with libglade support. Try: * USE='gnome' emerge pygtk gramps !!! ERROR: app-misc/gramps-0.9.4 failed. !!! Function pkg_setup, Line 35, Exitcode 0 !!! libglade support missing from pygtk By the way, after updating openssl, the installed gramps-0.9.3 version does not work any more. ImportError: libssl.so.0.9.6: cannot open shared object file: Datei oder Verzeichnis nicht gefunden So I tried to re-emerge =gramps-0.9.3, but it fails with the same messages as the new 0.9.4 version. In the process of emerging pygtk for gramps, it noted that PyOpenGL must be optionally emerged as well so I tried that. If failed, see bug #34873 for details. don't think that is very relevant to this bugreport. Anyway, libs should be fixed by revdep-rebuild which is an important step in the openssl update. just put in gramps-0.99 and i didn't have any problems at all with it. give it a test and report any bugs in a new report. Still, gramps does not compile on my machine, problems started with 0.9.4 and are still lasting. $ USE='gnome' emerge --verbose pygtk gramps [...] >>> emerge (2 of 2) app-misc/gramps-1.0.0 to / >>> md5 src_uri ;-) gramps-1.0.0.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.0 failed. !!! Function pkg_setup, Line 35, Exitcode 0 !!! libglade support missing from pygtk $ 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.3) ================================================================= System uname: 2.6.3 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.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /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/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox userpriv usersandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.easynet.nl/mirror/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 alsa apm avi berkdb bonobo cdr crypt cups doc dvd encode foomaticdb gd gdbm gnome gpm gtk gtk2 gtkhtml guile hbci imlib ipv6 java jpeg ldap libg++ libwww mad mozilla moznocompose moznoirc moznomail mpeg ncurses nls nocardbus oggvorbis opengl oss pam pda pdflib perl png postgres python readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype usb x86 xml2 xmms xv zlib" This is still failing for gramps-1.0.0 in the same way:
# emerge gramps
Calculating dependencies ...done!
>>> emerge (1 of 1) app-misc/gramps-1.0.0 to /
>>> md5 src_uri ;-) gramps-1.0.0.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.0 failed.
!!! Function pkg_setup, Line 35, Exitcode 0
!!! libglade support missing from pygtk
# qpkg -v pygtk
dev-python/pygtk-2.0.0-r1 *
...
|