[PyQt] Error when compiling Py in Eric4
Patrick Moran
pmoran at aptect.com
Mon Jun 7 07:52:45 BST 2010
I received this reply to a bug I reported to the Eric 4 guys. When I add the
QtPlot widget in Qt to a Mainwindow dialog box it causes their Dialog
Compiler to crash.
Hi,
this is a PyQt4 issue. You should report it (together with a minimal
example) on the PyQt4 mailing list.
Regards,
Detlev
On Samstag, 5. Juni 2010, you wrote:
> This error is apparently caused by the addition of a QtPlot widget.
> When I removed it the error went away. ---- Version Numbers:
> Python 2.6.4
> Qt 4.5.2
> PyQt4 4.5.4
> sip 4.8.2
> QScintilla 2.4
> eric4 4.4.4a (r3717)
>
> Platform: win32
> 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
> ----
> Plugins Version Numbers:
> PluginAbout 4.4.0
> PluginEricapi 4.4.0
> PluginEricdoc 4.4.0
> PluginProjectPylons 1.0.0
> PluginProjectWxPython 1.0.3
> PluginSyntaxChecker 4.4.0
> PluginTabnanny 4.4.0
> PluginVcsPySvn 4.4.0
> PluginVcsSubversion 4.4.0
> PluginVmListspace 4.4.0
> PluginVmMdiArea 4.4.0
> PluginVmTabview 4.4.0
> PluginVmWorkspace 4.4.0
> PluginWizardPyRegExp 4.4.0
> PluginWizardQColorDialog 4.4.0
> PluginWizardQFileDialog 4.4.0
> PluginWizardQFontDialog 4.4.0
> PluginWizardQInputDialog 4.4.0
> PluginWizardQMessageBox 4.4.0
> PluginWizardQRegExp 4.4.0
> ----
>
CONTENTS OF ERROR LOG HERE vvvvvvvvvvvvvvvvvvvvvvvvv
----------------------------------------------------------------------------
----
2010-06-06, 01:48:30
----------------------------------------------------------------------------
----
<type 'exceptions.TypeError'>:
'set' object does not support indexing
----------------------------------------------------------------------------
----
File "C:\Python26\Lib\site-packages\eric4\Project\ProjectFormsBrowser.py",
line 815, in __generateDialogCode
dlg = CreateDialogCodeDialog(fn, self.project, self)
File
"C:\Python26\Lib\site-packages\eric4\Project\CreateDialogCodeDialog.py",
line 99, in __init__
self.__updateSlotsModel()
File
"C:\Python26\Lib\site-packages\eric4\Project\CreateDialogCodeDialog.py",
line 170, in __updateSlotsModel
dlg = uic.loadUi(self.formFile)
File "C:\Python26\lib\site-packages\PyQt4\uic\__init__.py", line 112, in
loadUi
return DynamicUILoader().loadUi(uifile, baseinstance)
File "C:\Python26\lib\site-packages\PyQt4\uic\Loader\loader.py", line 21,
in loadUi
return self.parse(filename)
File "C:\Python26\lib\site-packages\PyQt4\uic\uiparser.py", line 768, in
parse
actor(elem)
File "C:\Python26\lib\site-packages\PyQt4\uic\uiparser.py", line 616, in
createUserInterface
self.traverseWidgetTree(elem)
File "C:\Python26\lib\site-packages\PyQt4\uic\uiparser.py", line 594, in
traverseWidgetTree
handler(self, child)
File "C:\Python26\lib\site-packages\PyQt4\uic\uiparser.py", line 168, in
createWidget
self.traverseWidgetTree(elem)
File "C:\Python26\lib\site-packages\PyQt4\uic\uiparser.py", line 594, in
traverseWidgetTree
handler(self, child)
File "C:\Python26\lib\site-packages\PyQt4\uic\uiparser.py", line 162, in
createWidget
self.stack.push(self.setupObject(widgetClass(elem), parent, elem))
File "C:\Python26\lib\site-packages\PyQt4\uic\uiparser.py", line 134, in
setupObject
obj = self.factory.createQObject(clsname, name, args, is_attribute)
File "C:\Python26\lib\site-packages\PyQt4\uic\objcreator.py", line 57, in
createQObject
classType = self.findQObjectType(classname)
File "C:\Python26\lib\site-packages\PyQt4\uic\objcreator.py", line 67, in
findQObjectType
w = module.search(classname)
File "C:\Python26\lib\site-packages\PyQt4\uic\Loader\qobjectcreator.py",
line 24, in search
self._module = __import__(self._moduleName, {}, {}, self._classes)
----------------------------------------------------------------------------
----
Version Numbers:
Python 2.6.4
Qt 4.5.2
PyQt4 4.5.4
sip 4.8.2
QScintilla 2.4
eric4 4.4.4a (r3717)
Platform: win32
2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------------
----
Plugins Version Numbers:
PluginAbout 4.4.0
PluginEricapi 4.4.0
PluginEricdoc 4.4.0
PluginProjectPylons 1.0.0
PluginProjectWxPython 1.0.3
PluginSyntaxChecker 4.4.0
PluginTabnanny 4.4.0
PluginVcsPySvn 4.4.0
PluginVcsSubversion 4.4.0
PluginVmListspace 4.4.0
PluginVmMdiArea 4.4.0
PluginVmTabview 4.4.0
PluginVmWorkspace 4.4.0
PluginWizardPyRegExp 4.4.0
PluginWizardQColorDialog 4.4.0
PluginWizardQFileDialog 4.4.0
PluginWizardQFontDialog 4.4.0
PluginWizardQInputDialog 4.4.0
PluginWizardQMessageBox 4.4.0
PluginWizardQRegExp 4.4.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100607/bd9cfc2c/attachment.html>
More information about the PyQt
mailing list