[PyQt] TypeError in pyuic in PyQt5
Phil Thompson
phil at riverbankcomputing.com
Wed Mar 11 17:31:09 GMT 2015
On 11/03/2015 5:02 pm, Dmitry Shachnev wrote:
> Hi,
>
> When trying to build the latest calibre against Qt/PyQt 5.4.1 in
> Ubuntu,
> we get this error (was building fine against 5.4.0):
>
> Compiling form
> /build/buildd/calibre-2.19.0+dfsg/src/calibre/gui2/convert/metadata.ui
> ...
> File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line
> 256, in createWidget
> self.traverseWidgetTree(elem)
> File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line
> 789, in traverseWidgetTree
> handler(self, child)
> File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line
> 757, in setZOrder
> getattr(self.toplevelWidget, elem.text).raise_()
> TypeError: getattr(): attribute name must be string
>
> Full log is available here:
> https://launchpadlibrarian.net/199907621/buildlog_ubuntu-vivid-amd64.calibre_2.19.0%2Bdfsg-1ubuntu1~vivid1~test1_BUILDING.txt.gz
>
> The current snapshot does not fix this (it only adds a handler for
> AttributeErrors, but not for TypeErrors).
Fixed it earlier today. As a workaround you can just remove the empty
zorder elements in the .ui file.
Phil
More information about the PyQt
mailing list