<div dir="ltr">Unfortunately that's not an options for me<div>I'm stuck with a library that only works on Python 2.x x86 (naoqi for Nao Robot to be specific), and I need to build it for this specific framework...</div></div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 18, 2018 at 1:42 AM peter <<a href="mailto:peterrisley47@gmail.com" target="_blank">peterrisley47@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Don't know if this will help. I have installed PyQt5.11 on Ubuntu
18.04, and get same error when I use python3.7 and idle but it
works when I use python3.6.5 and Idle. I have not figured out how
to make python3.7 to work with PyQt5 and do not know why it won't.</p>
<p><br>
</p>
$ python3.7<br>
Python 3.7.0b3 (default, Mar 30 2018, 04:35:22) <br>
[GCC 7.3.0] on linux<br>
<br>
<div class="m_2238443902961636810m_-5231671815061872431moz-cite-prefix">On 09/17/2018 05:36 PM, FiFo wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">So I could build and install PyQt5
successfully. But now I cannot import any module.
<div>Just to recap:</div>
<div>I have Windows 10 with Qt5 x86 built by me</div>
<div>I built PyQt5 with the following commands:</div>
<div>
<div>qt5vars.bat</div>
<div>cd sip-4.19.12</div>
<div>python configure.py --sip-module PyQt5.sip</div>
<div>nmake</div>
<div>nmake install</div>
<div><br>
</div>
<div>cd ..</div>
<div>cd PyQt5_gpl-5.11.2</div>
<div>pip install enum34</div>
<div>python configure.py --qmake d:\qt5_32\bin\qmake.exe
--static --sip-incdir
..\sip-4.19.13.dev1809111822\siplib --sip
d:\opencv\sip-4.19.13.dev1809111822\sipgen\sip.exe
--confirm-license</div>
<div>nmake</div>
<div>nmake install</div>
</div>
<div><br>
</div>
<div>
<div>D:\opencv\resources>pip freeze</div>
<div>backports.functools-lru-cache==1.5</div>
<div>cycler==0.10.0</div>
<div>enum34==1.1.6</div>
<div>kiwisolver==1.0.1</div>
<div>matplotlib==2.2.3</div>
<div>numpy==1.15.1</div>
<div>Pillow==5.2.0</div>
<div>pynaoqi==2.1.4.13</div>
<div>pyodbc==4.0.24</div>
<div>pyparsing==2.2.0</div>
<div>PyQt5==5.11.3.dev1809141810</div>
<div>PyQt5-sip==4.19.13.dev1809111822</div>
<div>python-dateutil==2.7.3</div>
<div>pytz==2018.5</div>
<div>six==1.11.0</div>
</div>
<div><br>
</div>
<div>
<div>D:\opencv\resources>python test1.py</div>
<div>Traceback (most recent call last):</div>
<div> File "test1.py", line 4, in <module></div>
<div> from PyQt5 import QtWidgets</div>
<div>ImportError: cannot import name QtWidgets</div>
</div>
<div><br>
</div>
<div>Any help would be appreciated</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_2238443902961636810m_-5231671815061872431mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
PyQt mailing list <a class="m_2238443902961636810m_-5231671815061872431moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a>
<a class="m_2238443902961636810m_-5231671815061872431moz-txt-link-freetext" href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
</div>
</blockquote></div>