LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-12-2015, 06:32 AM   #1
marrowsuck
Member
 
Registered: Sep 2006
Posts: 202

Rep: Reputation: 89
PyQt broken after sip-4.16.9 upgrade


Hello,

I just got this RuntimeError in python:
Code:
>>> 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.
 
Old 08-12-2015, 02:22 PM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Thanks. I got this issue with Electrum-2.4 and upgrading PyQt to 4.11.4 also fixed it for me.
 
Old 08-12-2015, 05:35 PM   #3
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
HPLIP is affected too

Code:
~$ 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
 
Old 08-12-2015, 06:58 PM   #4
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Code:
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 View Post
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
 
Old 08-12-2015, 07:44 PM   #5
jmpz
Member
 
Registered: Jul 2012
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
matplotlib is also effected. Is there any plan to upgrade the PyQt? A quick walk around I have applied is just downgrading the sip package.

Last edited by jmpz; 08-12-2015 at 07:54 PM.
 
Old 08-13-2015, 11:06 AM   #6
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
Quote:
Originally Posted by chris.willing View Post
Code:
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

Code:
root@darkstar:/home/elio# find / -name libpyqt4.so
find: `/home/elio/.gvfs': Permission denied
/usr/lib64/qt/plugins/designer/libpyqt4.so
find: `/proc/1618/task/1618/net': Invalid argument
find: `/proc/1618/net': Invalid argument
My english isn't that good, may be you mean something else...
Ciao
 
Old 08-13-2015, 04:44 PM   #7
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by urka58 View Post
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

Code:
root@darkstar:/home/elio# find / -name libpyqt4.so
find: `/home/elio/.gvfs': Permission denied
/usr/lib64/qt/plugins/designer/libpyqt4.so
find: `/proc/1618/task/1618/net': Invalid argument
find: `/proc/1618/net': Invalid argument
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.

chris
 
Old 08-13-2015, 05:14 PM   #8
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
Quote:
Originally Posted by chris.willing View Post
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
 
Old 08-16-2015, 07:29 AM   #9
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
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.

chris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sip upgrade to 4.16? Lenard Spencer Slackware 5 06-08-2015 12:35 PM
Consequences of local upgrade to PyQt 4.5.4 Yalla-One Slackware 4 08-31-2009 09:18 PM
pykde ,sip and pyqt question ngan_yine Linux - Software 0 01-31-2004 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration