<div dir="ltr"><span style="font-size:12.8px">I have a PyQt5 application running on Windows that I'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'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'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'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>