[PyQt] PyQt make error ubuntu 12.04

David Boddie david at boddie.org.uk
Mon Feb 17 23:55:13 GMT 2014


On Mon Feb 17 22:23:46 GMT 2014, Phil Thompson wrote:

> I only ever use Python built from python.org, I never use a distros
> version.
> 
> Can you run...
> 
> python -m sysconfig
> 
> ...and see if the correct directory shows up as one of the paths?

This doesn't print anything out. Should it? (I'm not trying to be obtuse
here, I don't follow the latest Python developments closely.)

This is what I get if I use the get_paths() function, which should
apparently show all the installation paths:

Python 2.7.3 (default, Jan  2 2013, 13:56:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_paths()
{'platinclude': '/usr/local/include/python2.7', 'platstdlib': 
'/usr/lib/python2.7', 'platlib': '/usr/local/lib/python2.7/dist-packages', 
'purelib': '/usr/local/lib/python2.7/dist-packages', 'stdlib': 
'/usr/lib/python2.7', 'scripts': '/usr/local/bin', 'include': 
'/usr/local/include/python2.7', 'data': '/usr/local'}

I'm guessing that this is wrong, at least for the "include" entry, so it
may be time to report a bug against the python2.7 package in Debian.

It seems that a workaround for Pablo would be to install Python from source,
then install sip and PyQt using that Python installation.

Unless someone else can suggest an alternative solution...

David


More information about the PyQt mailing list