Discussion:
[blfs-support] pygtk-2.24.0 no longer installing its include files ?
Ken Moffat
2018-04-20 02:38:25 UTC
Permalink
I'm on a new build, and I was hoping to build gimp-2.10.0-RC2 (I
build -RC1 on a new build on a different machine a couple of weeks
ago). But the gimp errored out with:

CC gimpuimodule.lo
gimpuimodule.c:26:10: fatal error: pygtk/pygtk.h: No such file or directory
#include <pygtk/pygtk.h>
^~~~~~~~~~~~~~~

Looking at previous builds, pygtk.h has been in
/usr/include/pygtk-2.0/pygtk/pygtk.h - and the version of pygtk has
been 2.24.0 since at least BLFS-7.9. But on the current build with
2.24.0 NO files were installed in /usr/include, all I have there is
pyglib.h and pygobject.h

/me curses Python again, but does anybody have any guidance on WTF
is going on with this [expletive-deleted] ?

ĸen
--
In my seventh decade astride this planet, and as my own cells degrade,
there are some things I cannot do now: skydiving, marathon running,
calculus. I couldn't do them in my 20s either, so no big loss.
-- Derek Smalls, formerly of Spinal Tap
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/f
Pierre Labastie
2018-04-20 16:22:26 UTC
Permalink
Post by Ken Moffat
I'm on a new build, and I was hoping to build gimp-2.10.0-RC2 (I
build -RC1 on a new build on a different machine a couple of weeks
CC gimpuimodule.lo
gimpuimodule.c:26:10: fatal error: pygtk/pygtk.h: No such file or directory
#include <pygtk/pygtk.h>
^~~~~~~~~~~~~~~
Looking at previous builds, pygtk.h has been in
/usr/include/pygtk-2.0/pygtk/pygtk.h - and the version of pygtk has
been 2.24.0 since at least BLFS-7.9. But on the current build with
2.24.0 NO files were installed in /usr/include, all I have there is
pyglib.h and pygobject.h
/me curses Python again, but does anybody have any guidance on WTF
is going on with this [expletive-deleted] ?
Hmmm, could it be related to the failure to install pkgconfig and headers for
pycairo, as you described on -dev? I've built pycairo 1.17.0 adding:
python2 setup.py install_pkgconfig # as root
python2 setup.py install_pycairo_header # as root

and same with python3

then built gimp and its deps by the book, and everything went well...

Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubs
Ken Moffat
2018-04-20 19:26:38 UTC
Permalink
Post by Pierre Labastie
Post by Ken Moffat
I'm on a new build, and I was hoping to build gimp-2.10.0-RC2 (I
build -RC1 on a new build on a different machine a couple of weeks
CC gimpuimodule.lo
gimpuimodule.c:26:10: fatal error: pygtk/pygtk.h: No such file or directory
#include <pygtk/pygtk.h>
^~~~~~~~~~~~~~~
Hmmm, could it be related to the failure to install pkgconfig and headers for
python2 setup.py install_pkgconfig # as root
python2 setup.py install_pycairo_header # as root
and same with python3
then built gimp and its deps by the book, and everything went well...
Pierre
Thanks, Pierre, you've nailed it.

I had to come back to this machine and unhibernate it before I could
be sure, but I now see that my build order was

pycairo-1.17.0
pygobject2
pygtk
pygobject3 failed
pycairo-1.16.3
pygobject3

and looking at the log from pygtk I can now see
checking for PYCAIRO... no
no
not checking for gtk due to missing pycairo

I've now reinstalled pygtk, it added the header and python2
site-packages/gtk-2.0/ files/ and gimp-2.10-RC2 is now installed.

Cheers, I'm calming down now and I might even change my .sig

ĸen
--
Misquoting "The Plan" : Python modules tend towards a crock of
shite, which stinks to heaven -- me
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsu
Loading...