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

Bug 616098

Summary: net-misc/spice-gtk-0.31 don’t compile with python3 (configure: error: "No python development headers found")
Product: Gentoo Linux Reporter: Alarig Le Lay <alarig>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alarig
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: console output and info

Description Alarig Le Lay 2017-04-20 09:26:59 UTC
Created attachment 470454 [details]
console output and info

There is a syntax error if you try to build spice-gtk with python 3.4:
checking for headers required to compile python extensions...   File "<string>", line 1
    import sys; print sys.prefix
                        ^
SyntaxError: invalid syntax
  File "<string>", line 1
    import sys; print sys.exec_prefix
                        ^
SyntaxError: invalid syntax
not found
configure: error: "No python development headers found"

It must be print(sys.exec_prefix) and not print sys.exec_prefix
alarig@LT-alelay ~ $ python
Python 3.4.5 (default, Dec  6 2016, 22:32:40) 
[GCC 4.9.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.prefix)
/usr/lib/python-exec/python3.4/../../..
>>>
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-04-20 09:32:52 UTC

*** This bug has been marked as a duplicate of bug 605636 ***