4

I'm installing PyQt4 on an old Linux system (CentOS 4.4) that can't be upgraded for hardware compatibility reasons. I've got Python 2.6, QT4 and SIP installed, and the installation of PyQt4 didn't give me any errors.

When I run Python, this happens:

Python 2.6.2 (r262:71600, May 11 2011, 14:18:37) 
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4
>>> import PyQt4.Qsci
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named Qsci

I looked around, and found /usr/local/lib/python2.6/site-packages/PyQt4/uic/widget-plugins/qscintilla.py, which is almost empty of non-comment stuff:

pluginType = MODULE

def moduleInformation():
    return "PyQt4.Qsci", ("QsciScintilla", )

Any ideas?

nmichaels
  • 49,466
  • 12
  • 107
  • 135

1 Answers1

7

You need to install qscintilla separately. If PyQt is already installed, then you should just have to install the qscintilla python bindings. Hopefully this fixes your issue!

acormier
  • 86
  • 3
  • 2
    The page you linked to doesn't have a download link, the source for [QScintilla2 can be downloaded here](http://www.riverbankcomputing.co.uk/software/qscintilla/download) – dbr Sep 22 '11 at 00:18
  • In ubuntu is this package: libqscintilla2-dev – avances123 Apr 21 '14 at 14:41
  • thanks @dbr ! and here is how to install it http://pyqt.sourceforge.net/Docs/QScintilla2/ – Aziz Alto Apr 07 '15 at 02:21