<div dir="ltr">Hi Phil,<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 21, 2015 at 10:39 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On 21/03/2015 8:29 am, Andreas Pakulat wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi Phil,<br>
<br>
On Fri, Mar 20, 2015 at 10:39 PM, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
wrote:<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On 20/03/2015 8:44 pm, Andreas Pakulat wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi,<br>
<br>
just installed the latest PyQt4 release (4.11.3) on MacOSX and could not<br>
impot PyQt4 afterwards in python. Turns out it decided to place itself<br>
into<br>
/System/Library/Frameworks/<u></u>Python.framework/Versions/2.7/<br>
lib/python2.7/site-packages,<br>
however that directory is not in sys.path after starting Python.<br>
<br>
sip on the other hand (installed just before, version is 4.16.6) put<br>
itself<br>
into /Library/Python/2.7/site-<u></u>packages and that is part of sys.path.<br>
<br>
I guess this isn't intended? Where does PyQt gather the default<br>
installation directory from?<br>
<br>
Andreas<br>
<br>
PS: Passing -d /Library/Python/2.7/site-<u></u>packages worked fine of course.<br>
<br>
</blockquote>
<br>
The /System/... location is for python that ships with OS X. The<br>
/Library/... location is for the python from <a href="http://python.org" target="_blank">python.org</a>.<br>
<br>
Are you sure you used the same python throughout?<br>
<br>
</blockquote>
<br>
<br>
Yes very sure since I did not have a python from <a href="http://python.org" target="_blank">python.org</a> when I tried<br>
first time. Explicitly starting python through<br>
/System/Library/FrameWorks/<u></u>Python.framework/Versions/2.7/<u></u>bin/python and<br>
fetching sys.path still shows no site-packages under the /System/<br>
hierarchy, but the one from /Library.<br>
<br>
I've meanwhile installed pip using the System python and that was placed in<br>
/Library as well.<br>
<br>
However I do notice now that my /usr/bin/python is slightly larger than the<br>
python2.7 binary. No idea wether thats normal or not (a hunch tells me this<br>
is because that one reads out some OSX config to determine which Python I<br>
want as default), but at least the dates of the two are matching (Sep 10th<br>
2014)<br>
<br>
All this is on a fresh OSX 10.10.<br>
</blockquote>
<br></div></div>
I assume you are using configure-ng.py.<br></blockquote><div><br></div><div>yes, I'm using configure-ng.py.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Can you try with the current PyQt4 snapshot? I suspect that it has already been fixed.</blockquote><div><br></div><div><div>I just tried PyQt-mac-gpl-4.11.4-snapshot-265be2eab2fa and indeed it seems to pick /Library/Python/2.7/site-packages as default installation directory. So unless there's some global cache of this I think the issue is fixed for 4.11.4 already :)</div><div><br></div><div>Andreas</div></div></div></div></div>