Eric IDE fails to launch, cannot import Qsci

Bug #380701 reported by Justin Chudgar
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
eric (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: eric

Using eric 4.3.0-0ubuntu1 on karmic, eric the python IDE fails to launch with the following error:

Traceback (most recent call last):
  File "/usr/share/eric/modules/eric4.py", line 43, in <module>
    from KdeQt.KQApplication import KQApplication
  File "/usr/share/eric/modules/KdeQt/__init__.py", line 20, in <module>
    import Preferences
  File "/usr/share/eric/modules/Preferences/__init__.py", line 26, in <module>
    from PyQt4 import Qsci
ImportError: cannot import name Qsci

apt-get install -reinstall'ing and dpkg-reconfigure'ing eric and the qt-scintilla packages fails to help resolve. Eric worked in Jaunty-release.

The dpkg -l | grep scintilla shows:

ii libqscintilla2-3 2.3.2-0ubuntu2 The Qt4 port of the Scintilla source code ed
ii python-qscintilla2 2.3.2-0ubuntu2 Python bindings for QScintilla 2

Revision history for this message
Chris (chris-pm) wrote :

I can confirm.

python-scintilla2 is unusable with Karmic. It was working until updates approximately one week ago (about 20th May).

Trying to use Scintilla from python results in;

>>> from PyQt4 import Qsci
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name Qsci

Revision history for this message
Chris (chris-pm) wrote :

Although I'm not a C++ developer, brief testing from Qt Creator shows the problem is similar from C++. When using and importing from "#include "Qsci/qsciscintilla.h"" i get the following error;

/home/chris/Dev/scratch/qtcreator/qtcTestProject/ui_mainwindow.h:52:
undefined reference to `QsciScintilla::QsciScintilla(QWidget*)'

Scite (which uses scintilla) works normally, so i suspect the problem is with;

libqscintilla2-3

and not with the original GTK Scintilla or the Qt derived python version.

Revision history for this message
Chris (chris-pm) wrote :

OK, just built the example Qt4 file for qScintilla and it runs without problems. Looks like i was wrong with the previous post.

Revision history for this message
Chris (chris-pm) wrote :

Importing the example project (which did compile and run) file to "Qt Creator" gives the same error as previously. As i said, not a C++ dev, so I'm probably of no help at this point, but could be the problem actually *might* be python-qscintilla2.

Revision history for this message
Chris (chris-pm) wrote :

python-qscintilla2 updated today to 2.3.2-1.1ubunt1.

eric now displays the splash screen followed by;

Warning: translation file 'qt_en_GB'could not be loaded.
Using default.
Warning: translation file 'eric4_en_GB'could not be loaded.
Using default.
Warning: translation file 'qscintilla_en_GB'could not be loaded.
Using default.
Segmentation fault

The problem may have been resolved and hopefully further package updates will resolve the above.

Revision history for this message
Justin Chudgar (justinzane) wrote :

dpkg -l | grep sqci
ii libqscintilla2-3 2.3.2-0ubuntu2 The Qt4 port of the Scintilla source code ed
ii libqscintilla2-5 2.3.2-1.1ubuntu1 The Qt4 port of the Scintilla source code ed
ii python-qscintilla2 2.3.2-1.1ubuntu1 Python bindings for QScintilla 2

Eric now launches for me. ('course plasma just kicked the bucket while I launched eric... but that's another report) However, I get a number of odd "debug" message dialogs. I'll look more into it as I have time.

Revision history for this message
Justin Chudgar (justinzane) wrote :

Now I get a segfault trying to launch eric.

If I run /usr/bin/eric4 i get:

Traceback (most recent call last):
  File "/usr/share/eric/modules/eric4.py", line 43, in <module>
    from KdeQt.KQApplication import KQApplication
  File "/usr/share/eric/modules/KdeQt/__init__.py", line 20, in <module>
    import Preferences
  File "/usr/share/eric/modules/Preferences/__init__.py", line 26, in <module>
    from PyQt4 import Qsci
RuntimeError: the sip module implements API v4.0 but the 0��o��^� module requires API v3.8

Changed in eric (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris (chris-pm) wrote :

I'm getting the same;

chris@black-lap:~$ eric
Segmentation fault
chris@black-lap:~$ eric
Traceback (most recent call last):
  File "/usr/share/eric/modules/eric4.py", line 43, in <module>
    from KdeQt.KQApplication import KQApplication
  File "/usr/share/eric/modules/KdeQt/__init__.py", line 20, in <module>
    import Preferences
  File "/usr/share/eric/modules/Preferences/__init__.py", line 26, in <module>
    from PyQt4 import Qsci
RuntimeError: the sip module implements API v4.0 but the ��o�q��qg�~
                                                                    ���9�u�w�[^]Ð����������U�����U�]���c������Q� module requires API v3.8
chris@black-lap:~$

Usually just a plain seg fault, but occassionaly a traceback.

Revision history for this message
Daniel Flinkmann (ubuntu-flinkmann) wrote :

I have the same segmentation fault and runtime error like Chris.
The developert of Eric told me that the mixes of sip versions is not valid and must be fixed. So the issue is somewhere between PyQT4 / Qsci .

By the way, you get the same report, when trying to install it manually:

# dpkg -l | grep -e pyqt -e qsci
ii libqscintilla2-3 2.3.2-0ubuntu2 The Qt4 port of the Scintilla source code ed
ii libqscintilla2-5 2.3.2-1.1ubuntu1 The Qt4 port of the Scintilla source code ed
ii libqscintilla2-dev 2.3.2-1.1ubuntu1 The Scintilla source code editing widget for
ii libqscintilla7 1.7.1-2 Qt source code editing component based on Sc
ii pyqt4-dev-tools 4.5-0ubuntu1 Development tools for PyQt4
ii python-qscintilla2 2.3.2-1.1ubuntu1 Python bindings for QScintilla 2

~/eric4-4.3.4# python ./install.py
An internal error occured. Please report all the output of the program,
including the following traceback, to <email address hidden>.

Traceback (most recent call last):
  File "./install.py", line 666, in <module>
    main(sys.argv)
  File "./install.py", line 607, in main
    doDependancyChecks()
  File "./install.py", line 504, in doDependancyChecks
    from PyQt4 import Qsci
RuntimeError: the sip module implements API v4.0 but the $��2���������������������E��D$
                                                                                        module requires API v3.8

Revision history for this message
Justin Chudgar (justinzane) wrote :

I do not know who manages PyQt4 and SIP, but, this bug was getting buried. I apologize if I overstepped my bounds making this change.

Changed in eric (Ubuntu):
assignee: nobody → Dawud (pythonides)
assignee: Dawud (pythonides) → Debian Python Modules Team (python-modules-team)
assignee: Debian Python Modules Team (python-modules-team) → nobody
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 380701] Re: Eric IDE fails to launch, cannot import Qsci

It's on my list to look at.

Revision history for this message
Darren Dale (dsdale24) wrote :

sip-4.8 and pyqt4-4.5.1 were needed in order to build pykde-4.3. Please just bump qscintilla and python-qscintilla to version 2.4, that should solve the problem reported here. (It would be nice if these could be bumped soon, I rely heavily on eric4).

Thanks

Revision history for this message
Justin Chudgar (justinzane) wrote :

Sorry to be pushy. Just wanted to make sure that this did not get buried. Thanks.

Changed in eric (Ubuntu):
assignee: nobody → Scott Kitterman (kitterman)
Revision history for this message
Scott Kitterman (kitterman) wrote :

I'm currently undecided between ignoring the bug now or sending you an invoice after I fix it.

Changed in eric (Ubuntu):
assignee: Scott Kitterman (kitterman) → nobody
Revision history for this message
Daniel Flinkmann (ubuntu-flinkmann) wrote :

@Darren Dale:

karmic currently not the right platform for production usage.

If you are really in the need of eric, try following workaround:

sudo apt-get remove eric eric-api-files libqscintilla2-5 python-qscintilla2 python-qt4 python-sip4

Change the apt sources.list from karmic to jaunty

sudo apt-get update
sudo apt-get install eric eric-api-files libqscintilla2-3 python-qscintilla2 python-qt4 python-sip4

After that you could probably switch to karmic again, but ofcourse the package management would like to update the jaunty-packages again, so be aware of that.

Daniel

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

After the update of qscintilla2 in Karmic, a newer version of eric (4.3.4-1) has been compiled and this problem is now solved.

Closing this bug report.

Fabrice

Changed in eric (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Chris (chris-pm) wrote :

Confirmed, Eric is back!!!! :D

Revision history for this message
grahamt (grahamtooley) wrote :

This bug still still persists when using Kunbuntu Jaunty with kubuntu-ppa backports enabled.

deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jaunty main

Revision history for this message
pandarean (mclzc89) wrote :

Same as grahamt, i've the ppa kubuntu packages and eric just crashes.

Revision history for this message
Zane Tu (zanetu-live) wrote :

Same as grahamt.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

As it's linked to a ppa, please open another bug report, explaining the problem.

Thanks,

Fabrice

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.