[PyQt] PyQt5 module not found

Dmitry Shachnev mitya57 at ubuntu.com
Fri Jul 5 16:22:09 BST 2013


On Fri, Jul 5, 2013 at 6:30 PM, Shriramana Sharma <samjnaa at gmail.com> wrote:
> Hi Scott/Dmitry -- if you have some time could I have a reply to this
> mail of last week please? Thank you!
>
> On Wed, Jun 26, 2013 at 8:23 PM, Shriramana Sharma <samjnaa at gmail.com> wrote:
>> On Wed, Jun 26, 2013 at 6:46 PM, Dmitry Shachnev <mitya57 at ubuntu.com> wrote:
>>> I have packages for Saucy in ppa:mitya57/ppa, if you've already
>>> upgraded your sip, you can try to use them on a Raring system.
>>
>> Hi Dmitry (and Scott) and thanks for this. I've downloaded the
>> packaging information and now building it myself on Raring. The
>> process seems to go on fine until:
>>
>> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -DSIP_PROTECTED_IS_PUBLIC
>> -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB
>> -I/usr/share/qt5/mkspecs/linux-g++ -I. -I/usr/include/python3.3dm
>> -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
>> -I../../dbus -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I.
>> ../../dbus/helper.h -o moc_helper.cpp
>> g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC
>> -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB
>> -I/usr/share/qt5/mkspecs/linux-g++ -I. -I/usr/include/python3.3dm
>> -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
>> -I../../dbus -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I. -o
>> moc_helper.o moc_helper.cpp
>> rm -f libqt.so
>> g++ -Wl,-O1 -shared -o libqt.so dbus.o moc_helper.o  -ldbus-1
>> -lQt5Core -lpthread
>> cp -f libqt.so qt.so
>> make[2]: Leaving directory
>> `/mnt/sda8/samjnaa/sr/_backport/pyqt5-5.0/dbg-build-3.3/dbus'
>> make[1]: Leaving directory
>> `/mnt/sda8/samjnaa/sr/_backport/pyqt5-5.0/dbg-build-3.3'
>> touch dbg-build-3.3/build-stamp
>>  fakeroot debian/rules binary
>> dh_testdir
>> dh_testroot
>> dh_prep -a
>> dh_installdirs -a
>>
>> followed by a big list of install commands but it ends in:
>>
>> mv debian/python3-pyqt5-dbg/usr/lib/python3.3/dist-packages/PyQt5/QtWebKit.so \
>>            debian/python3-pyqt5-dbg/usr/lib/python3.3/dist-packages/PyQt5/QtWebKitWidgets.so
>> \
>>
>> debian/python3-pyqt5.qtwebkit-dbg/usr/lib/python3.3/dist-packages/PyQt5
>> mv: cannot stat
>> ‘debian/python3-pyqt5-dbg/usr/lib/python3.3/dist-packages/PyQt5/QtWebKitWidgets.so’:
>> No such file or directory
>> make[1]: *** [install-arch-3.3] Error 1
>> make[1]: Leaving directory `/mnt/sda8/samjnaa/sr/_backport/pyqt5-5.0'
>> make: *** [install-arch] Error 2
>> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
>>
>> How can I fix this? Thanks!

Looks like either you didn't install all build dependencies, or some
of them are missing/incomplete on Raring.

As a work-around, you can try to comment out the WebKitWidgets-related
lines from debian/rules and debian/python3-pyqt5.qtwebkit.install.

--
Dmitry Shachnev


More information about the PyQt mailing list