[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-22 9:25:07
Message-ID: CAExHGmQ_RFq9WxNVdTTTvqV7_q51cYxfVm9y5BggsQyios1oYg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Phil,

On Sat, Mar 21, 2015 at 10:39 AM, Phil Thompson <phil@riverbankcomputing.com
> wrote:

> On 21/03/2015 8:29 am, Andreas Pakulat wrote:
>
>> 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.
>>
>
> I assume you are using configure-ng.py.
>

yes, I'm using configure-ng.py.


> Can you try with the current PyQt4 snapshot? I suspect that it has already
> been fixed.


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 :)

Andreas

[Attachment #5 (text/html)]

<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">&lt;<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;</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 &lt;<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&#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>
<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&#39;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&#39;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&#39;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>


[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