[PyQt] ImportError

FiFo fifothekid at gmail.com
Tue Sep 18 05:53:01 BST 2018


Unfortunately that's not an options for me
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...


On Tue, Sep 18, 2018 at 1:42 AM peter <peterrisley47 at gmail.com> wrote:

> 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.
>
>
> $ python3.7
> Python 3.7.0b3 (default, Mar 30 2018, 04:35:22)
> [GCC 7.3.0] on linux
>
> On 09/17/2018 05:36 PM, FiFo wrote:
>
> So I could build and install PyQt5 successfully. But now I cannot import
> any module.
> Just to recap:
> I have Windows 10 with Qt5 x86 built by me
> I built PyQt5 with the following commands:
> qt5vars.bat
> cd sip-4.19.12
> python configure.py --sip-module PyQt5.sip
> nmake
> nmake install
>
> cd ..
> cd PyQt5_gpl-5.11.2
> pip install enum34
> 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
> nmake
> nmake install
>
> D:\opencv\resources>pip freeze
> backports.functools-lru-cache==1.5
> cycler==0.10.0
> enum34==1.1.6
> kiwisolver==1.0.1
> matplotlib==2.2.3
> numpy==1.15.1
> Pillow==5.2.0
> pynaoqi==2.1.4.13
> pyodbc==4.0.24
> pyparsing==2.2.0
> PyQt5==5.11.3.dev1809141810
> PyQt5-sip==4.19.13.dev1809111822
> python-dateutil==2.7.3
> pytz==2018.5
> six==1.11.0
>
> D:\opencv\resources>python test1.py
> Traceback (most recent call last):
>   File "test1.py", line 4, in <module>
>     from PyQt5 import QtWidgets
> ImportError: cannot import name QtWidgets
>
> Any help would be appreciated
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.comhttps://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180918/797d4100/attachment-0001.html>


More information about the PyQt mailing list