Bug 1046613

Summary: [abrt] eric: __init__.py:25:<module>:RuntimeError: the sip module implements API v10.0 to v10.1 but the PyQt4.Qsci module requires API v9.2
Product: [Fedora] Fedora Reporter: a.thiaville
Component: ericAssignee: Rex Dieter <rdieter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: a.thiaville, dennis, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/de0c5bfeedfab224616b1c26f1b7d04e6e7d2ab0
Whiteboard: abrt_hash:09e1701adc9a68d6e2de3b5d2c168922a81f77f3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-29 19:31:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description a.thiaville 2013-12-26 10:20:39 UTC
Description of problem:
starting eric4 : i.e eric4 in a a konsole

Version-Release number of selected component:
eric-4.5.15-1.fc19

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /usr/lib/python2.7/site-packages/eric4/eric4.py
executable:     /usr/lib/python2.7/site-packages/eric4/eric4.py
kernel:         3.11.10-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            1001

Truncated backtrace:
#1 <module> in /usr/lib/python2.7/site-packages/eric4/Preferences/__init__.py:25
#2 <module> in /usr/lib/python2.7/site-packages/eric4/KdeQt/__init__.py:20
#3 <module> in /usr/lib/python2.7/site-packages/eric4/eric4.py:57

Comment 1 a.thiaville 2013-12-26 10:20:44 UTC
Created attachment 841862 [details]
File: backtrace

Comment 2 a.thiaville 2013-12-26 10:20:46 UTC
Created attachment 841863 [details]
File: environ

Comment 3 Rex Dieter 2013-12-26 19:38:10 UTC
$ rpm -q sip PyQt4 qscintilla-python

please.

I can confirm this combination works for me:
eric-4.5.15-1.fc19.x86_64
sip-4.14.6-1.fc19.x86_64
PyQt4-4.10.1-4.fc19.x86_64
qscintilla-python-2.7.1-1.fc19.x86_64

Comment 4 Rex Dieter 2013-12-26 19:44:37 UTC
I ask because the backtrace here:

__init__.py:25:<module>:RuntimeError: the sip module implements API v10.0 to v10.1 but the PyQt4.Qsci module requires API v9.2

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/eric4/eric4.py", line 57, in <module>
    from KdeQt.KQApplication import KQApplication
  File "/usr/lib/python2.7/site-packages/eric4/KdeQt/__init__.py", line 20, in <module>
    import Preferences
  File "/usr/lib/python2.7/site-packages/eric4/Preferences/__init__.py", line 25, in <module>
    from PyQt4 import Qsci
RuntimeError: the sip module implements API v10.0 to v10.1 but the PyQt4.Qsci module requires API v9.2

implies you have a different version of sip installed somewhere.

Comment 5 a.thiaville 2013-12-26 20:20:11 UTC
[Alain@alix /]$ sorry but it's not NOT A BUG: IT was caused by a more recent QtCore.so library in /usr/lib64/python2.7/site-package/Qt4 which overwrites the one from the rpm PyQt4
 rpm -q sip PyQt4 qscintilla-python pykde4 eric
sip-4.14.6-1.fc19.x86_64
PyQt4-4.10.1-4.fc19.x86_64
qscintilla-python-2.7.1-1.fc19.x86_64
pykde4-4.11.4-2.fc19.x86_64
eric-4.5.15-1.fc19.x86_64
[Alain@alix /]$ python
Python 2.7.5 (default, Nov 12 2013, 16:18:42) 
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtCore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: the sip module implements API v9.0 to v9.2 but the PyQt4.QtCore module requires API v10.1
I fixed if with
sudo rm /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so
and
sudo yum reinstall PyQt4

Comment 6 a.thiaville 2013-12-26 20:25:35 UTC
yes, you can close this "false" bug I reinstall sip and PyQT4 which where overwritten .