Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227397 - app-misc/gramps-3.0.1-r1: configure fails
Summary: app-misc/gramps-3.0.1-r1: configure fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Steve Dibb (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-16 10:22 UTC by Bartłomiej Syryjczyk
Modified: 2008-09-07 01:48 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge.info,3.32 KB, text/plain)
2008-06-17 04:12 UTC, Bartłomiej Syryjczyk
Details
config.log (config.log,23.49 KB, text/plain)
2008-06-17 04:13 UTC, Bartłomiej Syryjczyk
Details
build.log (build.log,4.64 KB, text/plain)
2008-06-17 04:14 UTC, Bartłomiej Syryjczyk
Details
write2david Build.log (build.log,128.51 KB, text/plain)
2008-08-10 18:32 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bartłomiej Syryjczyk 2008-06-16 10:22:16 UTC
app-misc/gramps-3.0.1-r1: failed to build / upgrade

Reproducible: Always

Steps to Reproduce:
1. emerge app-misc/gramps
or
1. emerge -u app-misc/gramps
Actual Results:  
[...]
checking for python extension module directory... ${exec_prefix}/lib64/python2.5/site-packages
checking for sh... /bin/sh
checking Python bindings for gtk2.10 (pygtk2>=2.10.0)... configure: error:

**** The python bindings for gtk 2.4 (pygtk2>=2.10.0) could not be found.
[...]


I've got dev-python/pygtk-2.12.0 installed
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-16 14:03:56 UTC
Please provide both the output of emerge --info, the build log and the config.log that the build system mentioned.
Comment 2 Bartłomiej Syryjczyk 2008-06-17 04:12:20 UTC
Created attachment 157183 [details]
emerge --info
Comment 3 Bartłomiej Syryjczyk 2008-06-17 04:13:43 UTC
Created attachment 157185 [details]
config.log
Comment 4 Bartłomiej Syryjczyk 2008-06-17 04:14:06 UTC
Created attachment 157187 [details]
build.log
Comment 5 Werner Macho 2008-07-17 17:33:38 UTC
same failure here but on a 32bit system

checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for sh... /bin/sh
checking Python bindings for gtk2.10 (pygtk2>=2.10.0)... configure: error:

**** The python bindings for gtk 2.4 (pygtk2>=2.10.0) could not be found.

(In reply to comment #0)
> app-misc/gramps-3.0.1-r1: failed to build / upgrade
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge app-misc/gramps
> or
> 1. emerge -u app-misc/gramps
> Actual Results:  
> [...]
> checking for python extension module directory...
> ${exec_prefix}/lib64/python2.5/site-packages
> checking for sh... /bin/sh
> checking Python bindings for gtk2.10 (pygtk2>=2.10.0)... configure: error:
> 
> **** The python bindings for gtk 2.4 (pygtk2>=2.10.0) could not be found.
> [...]
> 
> 
> I've got dev-python/pygtk-2.12.0 installed
> 

Comment 6 Werner Macho 2008-07-17 17:35:00 UTC
same failure here but on 32bit system
python2.4 and python 2.5 is installed but ..
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for sh... /bin/sh
checking Python bindings for gtk2.10 (pygtk2>=2.10.0)... configure: error:

**** The python bindings for gtk 2.4 (pygtk2>=2.10.0) could not be found.



(In reply to comment #0)
> app-misc/gramps-3.0.1-r1: failed to build / upgrade
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge app-misc/gramps
> or
> 1. emerge -u app-misc/gramps
> Actual Results:  
> [...]
> checking for python extension module directory...
> ${exec_prefix}/lib64/python2.5/site-packages
> checking for sh... /bin/sh
> checking Python bindings for gtk2.10 (pygtk2>=2.10.0)... configure: error:
> 
> **** The python bindings for gtk 2.4 (pygtk2>=2.10.0) could not be found.
> [...]
> 
> 
> I've got dev-python/pygtk-2.12.0 installed
> 

Comment 7 Gordon Malm (RETIRED) gentoo-dev 2008-07-18 03:28:39 UTC
For those still having issues: update to python-2.5 (now stable) if you haven't already, run python-updater, then re-merge pygtk.  gramps should then emerge ok.  WFM at least.
Comment 8 David 2008-07-23 02:46:34 UTC
Thanks for the idea, but it did not fix the "python bindings" error for me.
Comment 9 Werner Macho 2008-07-24 14:37:10 UTC
idea is nice - but error still remains ..
Python bindings for gtk could not be found .

on x86 the suggestion fixed the problem but on amd64 unfortunately not ..
Comment 10 Gordon Malm (RETIRED) gentoo-dev 2008-08-08 04:22:23 UTC
Please try adding "sqlite" USE flag (and maybe even sqlite3?), re-merge python and then try emerging gramps again.
Comment 11 David 2008-08-10 18:32:34 UTC
Created attachment 162634 [details]
write2david Build.log

After fixing pygtk/symlink emerge error, now my gramps error changes.
Comment 12 David 2008-08-10 18:36:38 UTC
Sorry, should have included this note with the build.log attachment I just added:

Trying the suggestion of "sqlite" to fix the "Python bindings for gtk2" error:  On x86, I added the "sqlite" USE flag to python, re-emerged python, attempted to emerge gramps, and it failed with the same error.

BUT, I noticed that whenever I re-emerge pygtk, I get "unable to establish symlink" errors.  Using this* site, I fixed that, re-emerged python as well, and now I get a different error when emerging gramps (see build.log attachment).

*http://forums.gentoo.org/viewtopic-t-575963-start-0-postdays-0-postorder-asc-highlight-pygtk.html


(In reply to comment #11)
> Created an attachment (id=162634) [edit]
> write2david Build.log
> 
> After fixing pygtk/symlink emerge error, now my gramps error changes.
Comment 13 David 2008-08-10 22:08:53 UTC
Okay, I started with the "python bindings for gtk2..." error (on an x86), and Gramps finally emerges/runs now.

1) Following Gordon's suggestion (above) I added the "sqlite" USE flag to python (in /etc/portage/package.use)

2) Then do some reinstalls to fix the "pygtk symlink errors" noted above: emerge -avN pygobject pygtk python

3) Then update:  python-updater

4) Compile/install gramps:  emerge -avN gramps

5) Gramps emerges, but fails to run, showing an error that ends with: "Import error: no module named cairo"

6) So:  emerge -av pycairo

7) Gramps now runs.

I suppose I should have added a "-1" to each emerge command above (except for emerging gramps itself).  Dunno how many of the above steps are absolutely necessary or are related to issues/problems unique to my system.
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2008-08-17 21:45:11 UTC
Adding myself as I am a maintainer and were never added.
Comment 15 Christian Faulhammer (RETIRED) gentoo-dev 2008-08-17 21:53:46 UTC
My guess is that most problems have to do with the upgrade of Python to 2.5.  Has everybody run python-updater and still have the problems?  What about the way David suggested.  Please put your hands up if you still have problems.

Meanwhile I added a check for USE=sqlite on Python.
Comment 16 andrex 2008-09-04 20:16:13 UTC
(In reply to comment #15)
> Meanwhile I added a check for USE=sqlite on Python.

After adding this check the error messages on lines 33-36 in app-misc/gramps-3.0.1-r1 ebuild also need updating.  When dev-lang/python is built with berkdb and without sqlite USE flags (as was the case on my test machine) the build process currently fails with a bit misleading message.

Maybe a better wording for the message would be:

eerror "You need to install python with Berkely Database and sqlite support."
eerror "Add 'dev-lang/python berkdb sqlite' to /etc/portage/package.use "
eerror "and then re-emerge python."
die "berkdb or sqlite support missing from dev-lang/python"


Other than that, re-emerging dev-lang/python with sqlite USE flag was enough to get app-misc/gramps-3.0.1-r1 installed and running on my x86 system.
Comment 17 Christian Faulhammer (RETIRED) gentoo-dev 2008-09-07 01:48:26 UTC
> Maybe a better wording for the message would be:

 Fixed, thanks for the note.  Closing this bug now.