[PyQt] PyQt4 installed into different dir than sip and not importable on MacOSX
phil at riverbankcomputing.com
Sat Mar 21 09:39:56 GMT 2015
On 21/03/2015 8:29 am, Andreas Pakulat wrote:
> Hi Phil,
> On Fri, Mar 20, 2015 at 10:39 PM, Phil Thompson
> <phil at riverbankcomputing.com
>> On 20/03/2015 8:44 pm, Andreas Pakulat wrote:
>>> just installed the latest PyQt4 release (4.11.3) on MacOSX and could
>>> impot PyQt4 afterwards in python. Turns out it decided to place
>>> however that directory is not in sys.path after starting Python.
>>> sip on the other hand (installed just before, version is 4.16.6) put
>>> into /Library/Python/2.7/site-packages and that is part of sys.path.
>>> I guess this isn't intended? Where does PyQt gather the default
>>> installation directory from?
>>> PS: Passing -d /Library/Python/2.7/site-packages worked fine of
>> The /System/... location is for python that ships with OS X. The
>> /Library/... location is for the python from python.org.
>> Are you sure you used the same python throughout?
> Yes very sure since I did not have a python from python.org when I
> first time. Explicitly starting python through
> /System/Library/FrameWorks/Python.framework/Versions/2.7/bin/python and
> fetching sys.path still shows no site-packages under the /System/
> hierarchy, but the one from /Library.
> I've meanwhile installed pip using the System python and that was
> placed in
> /Library as well.
> However I do notice now that my /usr/bin/python is slightly larger than
> python2.7 binary. No idea wether thats normal or not (a hunch tells me
> is because that one reads out some OSX config to determine which Python
> want as default), but at least the dates of the two are matching (Sep
> All this is on a fresh OSX 10.10.
I assume you are using configure-ng.py.
Can you try with the current PyQt4 snapshot? I suspect that it has
already been fixed.
More information about the PyQt