[PyKDE] Qscintilla error when using QT Designer plugin

Phil Thompson phil at riverbankcomputing.co.uk
Wed Jan 17 13:08:50 GMT 2007


On Friday 12 January 2007 1:45 pm, Carlos Eduardo wrote:
> I created a form with a QScintilla input widget. I followed all
> instructions from html docs (built QScintilla, QScintilla Python bindings
> and QT Designer Plugin).
>
> Then I run pyuic4 to generate the .py files from .ui ones created from
> designer.
>
> I´m having the following error:
>
> Traceback (most recent call last):
>   File "C:\Carlos\#Projects\UniversalSQL Navigator\UniSQLNav.py", line 115,
> in a ctionNew_SQL_Window_Clicked
>     from ui.sqlWindow import sqlWindow
>   File "C:\Carlos\#Projects\UniversalSQL Navigator\ui\sqlWindow.py", line
> 25, in <module>
>     from ui_sqlwindow import Ui_SQLWindow
>   File "C:\Carlos\#Projects\UniversalSQL Navigator\ui\ui_sqlwindow.py",
> line 229 , in <module>
>     from qsciscintilla import QsciScintilla
> ImportError: No module named qsciscintilla
>
>
> I saw that in ui_sqlwindow.py the module tries to import qsciscintilla but
> the module has been installed in PyQt4/Qsci.pyd automatically.
>
> If i change the ui_sqlwindow.py auto generated file from:
>
> from qsciscintilla import QsciScintilla
>
>  to
>
> from PyQt4.Qsci import QsciScintilla
>
> The app loads correctly and widget is displayed.

Should be fixed in tonight's PyQt4 snapshot.

Phil




More information about the PyQt mailing list