[PyKDE] Qscintilla error when using QT Designer plugin

Carlos Eduardo cedepaula at yahoo.com.br
Fri Jan 12 13:45:25 GMT 2007


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.

Regards,

Carlos
 




More information about the PyQt mailing list