[PyQt] PyQt5 module not found

Shriramana Sharma samjnaa at gmail.com
Wed Jun 26 13:59:24 BST 2013


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!

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा


More information about the PyQt mailing list