[PyQt] ImportError

FiFo fifothekid at gmail.com
Tue Sep 18 04:36:33 BST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180918/8f3cdd78/attachment.html>


More information about the PyQt mailing list