[Eric] Re: QWidget: Must construct a QApplication before a QPaintDevice

Bob Tanner tanner at real-time.com
Wed Aug 29 15:22:11 BST 2007


> $ eric4
> Warning: translation file 'qt_en_US'could not be loaded.
> Using default.
> Warning: translation file 'eric4_en_US'could not be loaded.
> Using default.
> Warning: translation file 'qscintilla_en_US'could not be loaded.
> Using default.
> QWidget: Must construct a QApplication before a QPaintDevice
> 

Doing some debugging.

$ pythonw2.5 -m pdb  
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/eric4/eric4.py

Code 

throws the error at UserInterface.py:668

-> self.shell = Shell(debugServer, self.viewmanager, self.shellDock)

That steps out of eric4 and into QScintilla, debug of pdb

-> self.shell = Shell(debugServer, self.viewmanager, self.shellDock)
(Pdb) s
--Call--
> 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/eric4/QScintilla/Shell.py(34)__init__()
-> 

def __init__(self, dbs, vm, parent = None):
(Pdb)
> 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/eric4/QScintilla/Shell.py(42)__init__()
-> 

QsciScintillaCompat.__init__(self, parent)
(Pdb)
--Call--
> 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/eric4/QScintilla/QsciScintillaCompat.py(44)__init__()
-> 

def __init__(self, parent = None):
(Pdb)
> 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/eric4/QScintilla/QsciScintillaCompat.py(52)__init__()
-> 

try:
(Pdb)
> 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/eric4/QScintilla/QsciScintillaCompat.py(53)__init__()
-> 

QsciScintilla.__init__(self, parent)
(Pdb)
QWidget: Must construct a QApplication before a QPaintDevice

Any help?




More information about the Eric mailing list