Qsci cannot be imported (breaks Eric) after installing Kubuntu backport to Jaunty

Bug #411003 reported by Stephen Boddy
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-qt4 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-qt4

After installing Kubuntu backport which includes python-qt4 - 4.5.2-0ubuntu1~jaunty2 + friends, it is no longer possible to "from PyQt4 import Qsci" (Qsci being the scintilla editing component). This breaks Eric (obviously) and it fails to start.
Running it from the command line gives the following traceback:

XXXX@XXXX:~/Desktop$ 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
ImportError: cannot import name Qsci

The QSci files are there:

XXXX@XXXX:/usr/lib/python2.6/dist-packages/PyQt4$ ls -la
total 780
drwxr-xr-x 3 root root 4096 2009-08-07 03:13 .
drwxr-xr-x 150 root root 20480 2009-08-05 23:49 ..
-rw-r--r-- 1 root root 762052 2009-02-27 00:40 Qsci.so
drwxr-xr-x 3 root root 4096 2009-08-05 20:24 uic
XXXX@XXXX:/usr/lib/python2.6/dist-packages/PyQt4$ file Qsci.so
Qsci.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Temporary Workaround: I managed to get Eric working by installing the Karmic versions of the following packages with "deb -i *.deb":

libqscintilla2-5_2.4-3_i386.deb
libqscintilla2-designer_2.4-3_i386.deb
libqscintilla2-dev_2.4-3_all.deb
libqscintilla2-doc_2.4-3_all.deb
python-qscintilla2_2.4-3_i386.deb
python-support_1.0.3ubuntu1_all.deb

Warning: might break other things :-) This was a result of hacking around.

Revision history for this message
francois (francois-beaubert) wrote :
Download full text (4.4 KiB)

I've got the same problem here

I don't have the files:

/usr/lib/python2.5/site-packages/PyQt4/uic/widget-plugins/qscintilla.py
/usr/lib/python2.5/site-packages/PyQt4/uic/widget-plugins/qscintilla.pyc
/usr/lib/python2.6/dist-packages/PyQt4/uic/widget-plugins/qscintilla.py
/usr/lib/python2.6/dist-packages/PyQt4/uic/widget-plugins/qscintilla.pyc

with the following python-qt4 package

sudo apt-cache show python-qt4
Package: python-qt4
Source: python-qt4
Priority: optional
Section: python
Installed-Size: 20276
Maintainer: Ubuntu Core Developers <email address hidden>
Architecture: i386
Version: 4.5.2-0ubuntu1~jaunty2
Replaces: python-qt4-common, python-qt4-dev (<< 4.4.4-3~)
Suggests: python-qt4-dbg
Provides: python2.5-qt4, python2.6-qt4
Depends: libc6 (>...

Read more...

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

@ francois: I have the same version of python-qt4 as you do, and am also missing the files you list, but eric works for me with the workaround in my #1 comment. Have you tried the workaround, and did it work?

You need to download the packages manually and install them.

Revision history for this message
francois (francois-beaubert) wrote : Re: [Bug 411003] Re: Qsci cannot be imported (breaks Eric) after installing Kubuntu backport to Jaunty

Hi Stephen

Thanks for your kind answer.
I haven't tried your workaround yet but I plan to try it soon.
But I think I really need those files for spyder
http://code.google.com/p/spyderlib/

Anyway thank you very for your help!
Cheers

François

Revision history for this message
R. Drew Davis (drewclist) wrote :

I encountered the same problem when I tried to re-install eric 4.3.6 after upgrading ibex to jaunty. For some reason the python-qscintilla2 package was present before the upgrade, but not present after the upgrade. All I needed to do to fix the problem was to use Synaptic to install the python-scintilla package and try to do the install again.

Attached are the "selections" from dpkg from the ibex system before the upgrade, and from the jaunty system after getting eric 4.3.6 to install. Also attached is the log of the reinstall of eric.

By the way, the eric dpkg in the repository is way out of date. Eric recognizes that a more recent version is available, but the official one needs to be uninstalled and you need to go behind Synaptic's back to get the current version and install it. Life with Ubuntu should be better than that.

Drew

Revision history for this message
R. Drew Davis (drewclist) wrote :
Revision history for this message
R. Drew Davis (drewclist) wrote :
Revision history for this message
Scott Kitterman (kitterman) wrote :

This is fixed in more recent releases.

Changed in python-qt4 (Ubuntu):
status: New → Fix Released
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.