[Eric] error running eric

Detlev Offenbach detlev at die-offenbachs.de
Sat Sep 12 15:13:44 BST 2009


On Samstag, 12. September 2009, Alexei Gilchrist wrote:
> > Did you install the QScintilla2 Python bindings as well? In a Python
> > console try
> >
> > from PyQt4 import Qsci
> >
> > This should not raise an ImportError. If it does, your installation is
> > corrupt.
>
> hmm, it does raise and import error but I did the following from source:
>
> # cd QScintilla-gpl-2.4/Qt4
> # qmake qscintilla.pro
> # make
>
> -no errors, compiled fine-
>
> # sudo make install
>
> cp -f -r /usr/local/src/QScintilla-gpl-2.4/Qt4/Qsci /usr/include/qt4/
> install -m 644 -p
> /usr/local/src/QScintilla-gpl-2.4/Qt4/qscintilla_cs.qm
> /usr/share/qt4/translations/
> install -m 644 -p
> /usr/local/src/QScintilla-gpl-2.4/Qt4/qscintilla_de.qm
> /usr/share/qt4/translations/
> install -m 644 -p
> /usr/local/src/QScintilla-gpl-2.4/Qt4/qscintilla_es.qm
> /usr/share/qt4/translations/
> install -m 644 -p
> /usr/local/src/QScintilla-gpl-2.4/Qt4/qscintilla_fr.qm
> /usr/share/qt4/translations/
> install -m 644 -p
> /usr/local/src/QScintilla-gpl-2.4/Qt4/qscintilla_pt_br.qm
> /usr/share/qt4/translations/
> install -m 644 -p
> /usr/local/src/QScintilla-gpl-2.4/Qt4/qscintilla_ru.qm
> /usr/share/qt4/translations/
> cp -f -r /usr/local/src/QScintilla-gpl-2.4/qsci /usr/share/qt4/
> install -m 755 -p "libqscintilla2.so.5.1.0"
> "/usr/lib/libqscintilla2.so.5.1.0" ln -sf "libqscintilla2.so.5.1.0"
> "/usr/lib/libqscintilla2.so"
> ln -sf "libqscintilla2.so.5.1.0" "/usr/lib/libqscintilla2.so.5"
> ln -sf "libqscintilla2.so.5.1.0" "/usr/lib/libqscintilla2.so.5.1"
>
> # cd ../Python/
> # python configure.py
> # make
>
> -again no problems-
>
> # sudo make install
>
> cp -f Qsci.so /usr/lib/python2.6/dist-packages/PyQt4/Qsci.so

This should be "/usr/lib/python2.6/site-packages/PyQt4/Qsci.so".
                                   ^^^^

> cp -f sip/qscilexerruby.sip /usr/share/sip/PyQt4/Qsci/qscilexerruby.sip
> cp -f sip/qscimodcommon.sip /usr/share/sip/PyQt4/Qsci/qscimodcommon.sip
> ... and so on
>
> but still I get
>
> # cd ../../eric4-4.3.7.1/
> # sudo python install.py
> Sorry, please install QScintilla2 and
> it's PyQt4 wrapper.
> Error: cannot import name Qsci
>
> ??!
>
> forcing the compile with -x will compile ok but then won't run of
> course because it doesn't find Qsci
>
> Still at a loss ...
>
> cheers,
>
> Alexei


Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list