SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
>>> from PyQt4 import QtCore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: the sip module implements API v11.0 to v11.2 but the PyQt4.QtCore module requires API v9.1
I upgraded to PyQt-4.11.4, since PyQt-4.9.6 wouldn't compile.
Working now.
~$ hp-systray -x
HP Linux Imaging and Printing System (ver. 3.15.2)
System Tray Status Service ver. 2.0
Copyright (c) 2001-15 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Traceback (most recent call last):
File "/usr/bin/hp-systray", line 107, in <module>
import ui4.systemtray as systray
File "/usr/share/hplip/ui4/systemtray.py", line 35, in <module>
from .ui_utils import *
File "/usr/share/hplip/ui4/ui_utils.py", line 35, in <module>
from PyQt4.QtCore import *
RuntimeError: the sip module implements API v11.0 to v11.2 but the PyQt4.QtCore module requires API v9.1
chris@d6:~/src/Designer$ pyuic4 atest.ui >ui_atest.py
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/PyQt4/uic/pyuic.py", line 31, in <module>
from PyQt4 import QtCore
RuntimeError: the sip module implements API v11.0 to v11.2 but the PyQt4.QtCore module requires API v9.1
Also, if all these API problems with new sip package drive an update to the PyQt package, could the missing designer plugin libpyqt4.so (was named libpythonplugin.so in 14.1) be included please? It just requires a change from:
Code:
make install DESTDIR=$PKG || exit 1
to
Code:
make install DESTDIR=$PKG INSTALL_ROOT=$PKG || exit 1
I understand Eric has included this fix in one of his repos, with no adverse effects that I've heard of since then
Quote:
Originally Posted by Alien Bob
The updated PyQt and the new PyQt5 packages I have built for my KDE 5 repository have the designer plugin included. I hope to release them in a couple of days (after I have rebuilt the whole of KDE 5 with new versions).
chris@d6:~/src/Designer$ pyuic4 atest.ui >ui_atest.py
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/PyQt4/uic/pyuic.py", line 31, in <module>
from PyQt4 import QtCore
RuntimeError: the sip module implements API v11.0 to v11.2 but the PyQt4.QtCore module requires API v9.1
Also, if all these API problems with new sip package drive an update to the PyQt package, could the missing designer plugin libpyqt4.so (was named libpythonplugin.so in 14.1) be included please? It just requires a change from:
Code:
make install DESTDIR=$PKG || exit 1
to
Code:
make install DESTDIR=$PKG INSTALL_ROOT=$PKG || exit 1
I understand Eric has included this fix in one of his repos, with no adverse effects that I've heard of since then
chris
I upgraded to PyQt-4.11.4 using the slackbuild of PyQt-4.9.6 (plus the Phonon patch from Current_64 sources) and seems the plugin is installed
My english isn't that good, may be you mean something else...
Ciao
However if you make a package, it does not include the libpyqt4.so file. The reason it exists on your system is because when you run 'make install DESTDIR=$PKG', the Makefile in the designer directory does not recognize DESTDIR and installs directly into the build machine, not into the package directory as expected.
However if you make a package, it does not include the libpyqt4.so file. The reason it exists on your system is because when you run 'make install DESTDIR=$PKG', the Makefile in the designer directory does not recognize DESTDIR and installs directly into the build machine, not into the package directory as expected.
chris
Yes, you're right, the plugin is not in the package...I'm going to try with Eric's fix and see what differences I'll find in the package.
Ciao
UPDATE 14/08: alienbob's quick fix proposed by chris works and installs the plugin from the package or in other words the package has the plugin built in...if you prefer
Ciao
Last edited by urka58; 08-14-2015 at 01:41 AM.
Reason: Tried the patch to install the plugin
Today's -current updates included PyQt-4.11.4 which fixes the API errors I was seeing following the recent sip upgrade. The new PyQt package also contains the previously missing Designer plugin, so thumbs up from me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.