Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 568686

Summary: gnome-extra/gnome-builder-3.18.1[-python]: /usr/include/pygobject-3.0/pygobject.h:5:20: fatal error: Python.h: No such file or directory
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Kobboi 2015-12-18 22:22:19 UTC
Compiles fine with USE=python

In file included from pygobject/ide-pygobject-script.c:28:0:
/usr/include/pygobject-3.0/pygobject.h:5:20: fatal error: Python.h: No such file or directory


Reproducible: Always
Comment 1 Kobboi 2015-12-18 22:22:59 UTC
Created attachment 419648 [details]
build.log
Comment 2 Kobboi 2015-12-18 22:32:11 UTC
$ eix pygobject
[I] dev-python/pygobject
     Available versions:  
     (2)    2.28.6-r55{tbz2}
     (3)    3.14.0 3.16.2 (~)3.18.2{tbz2}
       {+cairo examples libffi test +threads PYTHON_TARGETS="python2_7 python3_3 python3_4 python3_5"}
     Installed versions:  2.28.6-r55(2){tbz2}(23:06:23 18-12-15)(examples -libffi -test PYTHON_TARGETS="python2_7") 3.18.2(3){tbz2}(23:07:10 18-12-15)(cairo examples threads -test PYTHON_TARGETS="python2_7 python3_4 -python3_3 -python3_5")
     Homepage:            https://wiki.gnome.org/Projects/PyGObject
     Description:         GLib's GObject library bindings for Python
Comment 3 Pacho Ramos gentoo-dev 2016-07-03 16:38:54 UTC
please retry with 3.20
Comment 4 Mart Raudsepp gentoo-dev 2016-09-22 15:47:53 UTC
Python shouldn't be optional in gnome-builder, or at least not like this. The python-pack-plugin stuff is actually pure C code and doesn't depend on anything python, so the configure arguments are wrong, and python itself remains automagic, but then error due to no pygobject getting pulled in while on gentoo of course the python stuff is seen at buildtime.
I've tweaked by version of 3.20 already in these regards, but we are stuck on a sandbox issue over at bug 587894 (which is why the 3.20 was reverted from main tree after comment #3)
Comment 5 Mart Raudsepp gentoo-dev 2017-01-12 01:12:54 UTC
Shouldn't happen with 3.22.4 (python is not optional)