[sugar] Trouble with sugar-jhbuild

Marco Pesenti Gritti mpg
Tue Feb 6 19:44:22 EST 2007


On Tue, 2007-02-06 at 18:23 -0600, Ryan Pavlik wrote:
> Marco Pesenti Gritti wrote:
> > On Tue, 2007-02-06 at 15:34 -0600, Ryan Pavlik wrote:
> >   
> >> I'm trying to build Sugar on AMD64 Edgy.  SInce it's a Python 2.4 
> >> distro, I'm doing the build meta-sugar-base.  Everything appears to 
> >> build fine in the base packages except avahi - I am getting the 
> >> following error in configure:
> >>
> >> checking for python module gtk... no
> >> configure: error: Could not find Python module gtk
> >> *** error during stage configure of avahi: ########## Error running 
> >> ./autogen.sh --prefix /home/ryan/srctrees/sugar-jhbuild/build --libdir 
> >> '${exec_prefix}/lib64' --disable-qt3 --disable-qt4 --disable-mono 
> >> --disable-monodoc --disable-manpages --enable-compat-howl 
> >> --enable-compat-libdns_sd --disable-gdbm --disable-libdaemon  *** [26/29]
> >>
> >> This is on a clean everything, fresh git pull.
> >>
> >> Thanks for any help you could provide!
> >>     
> >
> > sugar-jhbuild shell
> >
> > set | grep PYTHONPATH
> >
> > Look inside that directory if you have a pygtk.pth file and a gtk-2.0
> > directory.
> >
> > Marco
> >
> >
> >   
> 
> configure: error: Could not find Python module gtk
> *** error during stage configure of avahi: ########## Error running 
> ./autogen.sh --prefix /home/ryan/srctrees/sugar-jhbuild/build --libdir 
> '${exec_prefix}/lib64' --disable-qt3 --disable-qt4 --disable-mono 
> --disable-monodoc --disable-manpages --enable-compat-howl 
> --enable-compat-libdns_sd --disable-gdbm --disable-libdaemon  *** [26/29]
> 
> 
>   [1] rerun stage configure
>   [2] ignore error and continue to build
>   [3] give up on module
>   [4] start shell
>   [5] go to stage force_checkout
> choice: 4
> exit shell to continue with build
> ryan at gamma:~/srctrees/sugar-jhbuild/source/avahi$ set | grep PYTHONPATH
> PYTHONPATH=/home/ryan/srctrees/sugar-jhbuild/build/lib64/python2.5/site-packages
> 
> I do not have the files you list in that directory.  However, in 
> /home/ryan/srctrees/sugar-jhbuild/build/lib64/ there is a pygtk 
> directory (which appears to only have demos) and a gtk-2.0 directory. 
> 
> There is also a pygtk.pth and a gtk-2.0 directory in 
> /home/ryan/srctrees/sugar-jhbuild/build/lib/python2.5/site-packages/ - 
> so I'm guessing either it's being installed to the wrong place or the 
> search path needs to be changed on 64 bit arches.
> 
> Do you know what the proper solution would be?  I presume copying the 
> files over is not a permanent fix, if any at all.

Try this:

python -c "from distutils import sysconfig; print
sysconfig.get_python_lib(1,0)"

What does print on your system?

Marco



More information about the Sugar-devel mailing list