Le 26/06/2013 14:59, Shriramana Sharma a écrit :
Hello. Trying to compile PyQt5 on my Kubuntu Raring system, I had
problems: the SIP version was too old, backporting the latest from
Debian broke the existing PyQt4 packages because they depend on an
older SIP API, and that removed the existing PyQt4/PyKDE4/PyQsci-based
apps, so I rebuilt the latest version of all those against the latest
SIP, and then installed everything and finally compiled PyQt5.
However, even after doing sudo make install, I am trying to do "from
PyQt5 import *" or running one of the provided examples but to no
avail. I get the error:
ImportError: No module named 'PyQt5'
I should note that I have compiled only against Py3. I am not sure
what went wrong because the compile ended with:
make[1]: Entering directory `/mnt/sda8/samjnaa/sr/PyQt-gpl-5.0/pyrcc'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG
-DQT_XML_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I.
-I. -I/usr/include/qt5 -I/usr/include/qt5/QtXml
-I/usr/include/qt5/QtCore -I. -o main.o main.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG
-DQT_XML_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I.
-I. -I/usr/include/qt5 -I/usr/include/qt5/QtXml
-I/usr/include/qt5/QtCore -I. -o rcc.o rcc.cpp
g++ -m64 -Wl,-O1 -o pyrcc5 main.o rcc.o -lQt5Xml
-L/usr/lib/x86_64-linux-gnu -lQt5Core -lpthread
make[1]: Leaving directory `/mnt/sda8/samjnaa/sr/PyQt-gpl-5.0/pyrcc'
... which seems to be OK. Help please!
PyQt5 is probably installed into site-packages and not dist-packages.
You must verify your PYTHONPATH, and add site-package if needed.
export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.2/site-packages (adapt
the path)
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt