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

List:       pykde
Subject:    [PyQt]  Installing PyQt5 on macOS using Wheels
From:       James Stearns - NOAA Affiliate <james.stearns () noaa ! gov>
Date:       2017-07-20 20:05:07
Message-ID: CA+DPVUjkf_OmOaXYQgHQ=bx__zWE6GKL2Y+t1DeB2QY+aRRnGg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I have a PyQt5 application running on Windows that I'd like to get running
on macOS Sierra as well.

I'd prefer to install from wheels rather than source, a method
described in Installing
PyQt5 <http://pyqt.sourceforge.net/Docs/PyQt5/installation.html> . When I
do so, and attempt to run a file importing PyQt5.QtCore, I get this error:

RuntimeError: the sip module implements API v12.0 to v12.1 but the
> PyQt5.QtCore module requires API v12.2


Environment:

   - macOS Sierra 10.12.6
   - Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)
   - PyQt5 5.9 (pip3.6 PyQt5==5.9)

Research:

I found a reference of interest in the PyQt email archive on February 22nd
of this year. The error:

RuntimeError: the sip module implements API v12.0 but the PyQt5.QtCore module
> requires API v12.1


The responder's paragraph of interest:

You must actually be using an out of date version of libsip.a. I had a
> similar problem today but with the ‘sip' executable, in part because of
> incorrect PATH entries, and also [from] incorrect sip install paths.



> To troubleshoot you could delete the libsip you are linking into your app
> (statically) or that python is loading (dynamically) and hit "make install"
> from sip again. check file dates.


I'm not sure how to apply this advice to a PyQt5 installed via wheels.
W.r.t PATH, the problem occurs even with a PATH pared down the bin
directory of the Python virtual environment.

Suggestions on how to proceed would be much appreciated.

Thanks,

Jim Stearns

Software Engineer, NOAA Affiliate
Earth Resources Technology, Inc. (ERT, Inc)

[Attachment #5 (text/html)]

<div dir="ltr"><span style="font-size:12.8px">I have a PyQt5 application running on \
Windows that I&#39;d like to get running on macOS Sierra as well.  </span><div><span \
style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I&#39;d \
prefer to install from wheels rather than source, a method described in  </span><a \
href="http://pyqt.sourceforge.net/Docs/PyQt5/installation.html" target="_blank" \
style="font-size:12.8px">Installing PyQt5</a><span style="font-size:12.8px">  . When \
I do so, and attempt to run a file importing PyQt5.QtCore, I get this \
error:</span><div><div style="font-size:12.8px"><br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">RuntimeError: the \
sip module implements API v12.0 to v12.1 but the PyQt5.QtCore module requires API \
v12.2</span></blockquote><div style="font-size:12.8px"><br></div><div \
style="font-size:12.8px">Environment:</div><div style="font-size:12.8px"><ul><li \
style="margin-left:15px">macOS Sierra 10.12.6</li><li style="margin-left:15px">Python \
3.6.2  (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)</li><li \
style="margin-left:15px">PyQt5 5.9 (pip3.6 PyQt5==5.9)</li></ul></div><div \
style="font-size:12.8px">Research:  </div><div \
style="font-size:12.8px"><br></div><div style="font-size:12.8px">I found a reference \
of interest in the PyQt email archive on February 22nd of this year.  <span \
style="font-size:12.8px">The error:  </span></div><div style="font-size:12.8px"><span \
style="font-size:12.8px"><br></span></div><blockquote style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" \
class="gmail_quote"><span style="font-size:12.8px">RuntimeError: the sip module \
implements API v12.0 but the PyQt5.QtCore  </span><span \
style="font-size:12.8px">module requires API v12.1</span></blockquote><div \
style="font-size:12.8px"><br></div><div style="font-size:12.8px">The responder&#39;s \
paragraph of interest:</div><div style="font-size:12.8px"><br></div><div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">You must actually \
be using an out of date version of libsip.a. I had a similar problem today but with \
the ‘sip' executable, in part because of incorrect PATH entries, and also [from] \
incorrect sip install paths.</span></blockquote><div>  </div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">To troubleshoot you \
could delete the libsip you are linking into your app (statically) or that python is \
loading (dynamically) and hit "make install" from sip again. check file \
dates.</span></blockquote></div><div style="font-size:12.8px"><br></div><div \
style="font-size:12.8px">I&#39;m not sure how to apply this advice to a PyQt5 \
installed via wheels. W.r.t PATH, the problem occurs even with a PATH pared down the \
bin directory of the Python virtual environment.</div><div \
style="font-size:12.8px"><br></div><div style="font-size:12.8px">Suggestions on how \
to proceed would be much appreciated.  </div><div \
style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div \
style="font-size:12.8px">  <br></div><div \
class="gmail-m_-8201274236117649339gmail-m_-6934429615979821422gmail_signature" \
style="font-size:12.8px"><div dir="ltr">Jim \
Stearns</div></div></div><div><br></div><div class="gmail_signature"><div \
dir="ltr"><div><div>Software Engineer, NOAA Affiliate</div><div>Earth Resources \
Technology, Inc. (ERT, Inc)</div></div></div></div> </div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://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