[PyQt] 回复: PyQt5.QtGui can't be imported
levinie
levinie at qq.com
Mon Jul 15 10:59:01 BST 2013
Thanks for your help.
I pass this to configure.py:
/opt/python/bin/python3 configure.py --qmake /home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake --sip /opt/python/bin/sip
Here is the output:
DBus v1 does not seem to be installed.
Qt v5.1.0 (Open Source) is being used.
The qmake executable is /home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake.
Qt is built as a shared library.
SIP 4.14.7 is being used.
The sip executable is /opt/python/bin/sip.
These PyQt5 modules will be built: QtCore, QtNetwork, QtXmlPatterns, QtDBus.
The PyQt5 Python package will be installed in
/opt/python/lib/python3.3/site-packages.
PyQt5 is being built with generated docstrings.
PyQt5 is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in
/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/plugins/designer.
The PyQt5 .sip files will be installed in /opt/python/share/sip/PyQt5.
pyuic5, pyrcc5 and pylupdate5 will be installed in /opt/python/bin.
The interpreter used by pyuic5 is /opt/python/bin/python.
Embedding sip flags...
Generating the .pro file for the QPy support library for QtCore...
Generating the Makefile for the QPy support library for QtCore...
Generating the C++ source for the QtCore module...
Generating the .pro file for the QtCore module...
Generating the Makefile for the QtCore module...
Generating the C++ source for the QtNetwork module...
Generating the .pro file for the QtNetwork module...
Generating the Makefile for the QtNetwork module...
Generating the C++ source for the QtXmlPatterns module...
Generating the .pro file for the QtXmlPatterns module...
Generating the Makefile for the QtXmlPatterns module...
Generating the .pro file for the QPy support library for QtDBus...
Generating the Makefile for the QPy support library for QtDBus...
Generating the C++ source for the QtDBus module...
Generating the .pro file for the QtDBus module...
Generating the Makefile for the QtDBus module...
Generating the .pro file for the QPy support libraries...
Generating the Makefile for the QPy support libraries...
Generating the C++ source for the Qt module...
Generating the .pro file for the Qt module...
Generating the Makefile for the Qt module...
Generating the .pro file for pylupdate5...
Generating the Makefile for pylupdate5...
Generating the .pro file for pyrcc5...
Generating the Makefile for pyrcc5...
Generating the pyuic5 wrapper...
Generating the top-level .pro file...
Generating the top-level Makefile...
Making the pyuic5 wrapper executable...
------------------ 原始邮件 ------------------
发件人: "Phil Thompson"<phil at riverbankcomputing.com>;
发送时间: 2013年7月15日(星期一) 下午5:48
收件人: "levinie"<levinie at qq.com>;
抄送: "PyQt"<pyqt at riverbankcomputing.com>;
主题: Re: [PyQt] PyQt5.QtGui can't be imported
On Mon, 15 Jul 2013 17:03:49 +0800, "levinie" <levinie at qq.com> wrote:
> I found PyQt5 today and have a try.I installed it on Python3.3.2 +
> Ubuntu12.04, but some module can't be imported such as PyQt5.QtGui,
> PyQt5.QtWidgets.
>
>
> Some other is ok, like QtCore, QtDBus, QtNetwork, QtXmlPatterns. In
fact,
> this .so file in the /opt/python/bin/lib/python3.3/site-packages, but
> QtGui.so, QtWidgets.so not.
>
>
> Who can help me? I really like the PyQt5.
Did you build it yourself? What flags did you pass to configure.py? What
was the output?
Phil
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130715/c0f0be79/attachment.html>
More information about the PyQt
mailing list