[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt4 installed into different dir than sip and not importable on MacOSX
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2015-03-21 8:29:28
Message-ID: CAExHGmQ=LjeuiD--FOgQxDDRAfVBGe3kfAKKk25V85ZAa97sPw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Phil,

On Fri, Mar 20, 2015 at 10:39 PM, Phil Thompson <phil@riverbankcomputing.com
> wrote:

> On 20/03/2015 8:44 pm, Andreas Pakulat wrote:
>
>> Hi,
>>
>> just installed the latest PyQt4 release (4.11.3) on MacOSX and could not
>> impot PyQt4 afterwards in python. Turns out it decided to place itself
>> into
>> /System/Library/Frameworks/Python.framework/Versions/2.7/
>> lib/python2.7/site-packages,
>> 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
>> itself
>> 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?
>>
>> Andreas
>>
>> PS: Passing -d /Library/Python/2.7/site-packages worked fine of course.
>>
>
> 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 tried
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 the
python2.7 binary. No idea wether thats normal or not (a hunch tells me this
is because that one reads out some OSX config to determine which Python I
want as default), but at least the dates of the two are matching (Sep 10th
2014)

All this is on a fresh OSX 10.10.

Andreas

[Attachment #5 (text/html)]

<div dir="ltr">Hi Phil,<div class="gmail_extra"><br><div class="gmail_quote">On Fri, \
Mar 20, 2015 at 10:39 PM, Phil Thompson <span dir="ltr">&lt;<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 20/03/2015 8:44 pm, \
Andreas Pakulat wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc 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 into<br>
/System/Library/Frameworks/<u></u>Python.framework/Versions/2.7/<u></u>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 itself<br>
into /Library/Python/2.7/site-<u></u>packages and that is part of sys.path.<br>
<br>
I guess this isn&#39;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>
</blockquote>
<br></div></div>
The /System/... location is for python that ships with OS X. The /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></blockquote><div><br></div><div><br></div><div>Yes very sure since I \
did not have a python from <a href="http://python.org">python.org</a> when I tried \
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.</div><div><br></div><div>I&#39;ve meanwhile installed pip using the System \
python and that was placed in /Library as well.</div><div><br></div><div>However I do \
notice now that my /usr/bin/python is slightly larger than the python2.7 binary. No \
idea wether thats normal or not (a hunch tells me this is because that one reads out \
some OSX config to determine which Python I want as default), but at least the dates \
of the two are matching (Sep 10th 2014)</div><div><br></div><div>All this is on a \
fresh OSX 10.10.</div><div><br></div><div>Andreas  </div></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic