[PyQt] Issue with pyuic of latest snapshot

Phil Thompson phil at riverbankcomputing.com
Thu Oct 14 03:47:34 BST 2010


On Wed, 13 Oct 2010 21:40:30 +0200, Detlev Offenbach
<detlev at die-offenbachs.de> wrote:
> Hi,
> 
> compiling the eric5 UI files raised the following issue.
> 
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/__init__.py", line
>   98, in
> compileUiDir
>     compile_ui(root, ui)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/__init__.py", line
>   90, in
> compile_ui
>     compileUi(ui_file, py_file, **compileUi_args)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/__init__.py", line
>   134,
> in compileUi
>     winfo = compiler.UICompiler().compileUi(uifile, pyfile,
from_imports)
>   File
>   "/usr/lib64/python3.1/site-packages/PyQt4/uic/Compiler/compiler.py",
> line 83, in compileUi
>     w = self.parse(input_stream)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   830,
> in parse
>     actor(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   677,
> in createUserInterface
>     self.traverseWidgetTree(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   655,
> in traverseWidgetTree
>     handler(self, child)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   397,
> in createLayout
>     self.traverseWidgetTree(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   655,
> in traverseWidgetTree
>     handler(self, child)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   434,
> in handleItem
>     self.traverseWidgetTree(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   655,
> in traverseWidgetTree
>     handler(self, child)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   173,
> in createWidget
>     self.traverseWidgetTree(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   655,
> in traverseWidgetTree
>     handler(self, child)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   397,
> in createLayout
>     self.traverseWidgetTree(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   655,
> in traverseWidgetTree
>     handler(self, child)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   434,
> in handleItem
>     self.traverseWidgetTree(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   655,
> in traverseWidgetTree
>     handler(self, child)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   397,
> in createLayout
>     self.traverseWidgetTree(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   655,
> in traverseWidgetTree
>     handler(self, child)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   434,
> in handleItem
>     self.traverseWidgetTree(elem)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   655,
> in traverseWidgetTree
>     handler(self, child)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   167,
> in createWidget
>     self.stack.push(self.setupObject(widgetClass(elem), parent, elem))
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/uiparser.py", line
>   140,
> in setupObject
>     self.wprops.setProperties(obj, branch)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/properties.py",
line
>   363,
> in setProperties
>     prop_value = self.convert(prop, widget)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/properties.py",
line
>   328,
> in convert
>     return func(prop[0], **args)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/properties.py",
line
>   82,
> in _enum
>     return self._pyEnumMember(prop.text)
>   File "/usr/lib64/python3.1/site-packages/PyQt4/uic/properties.py",
line
>   68,
> in _pyEnumMember
>     raise AttributeError("unknown enum %s" % cpp_name)
> AttributeError: unknown enum QAbstractSpinBox::PlusMinus

Fixed in the current snapshot.

Thanks,
Phil


More information about the PyQt mailing list