A patch to avoid the exceptions (not a fix) is attached.
The Exception can be reproduced launching
python taurus/qt/qtgui/panel/taurusdevicepanel.py sys/database/2 ".*"
Then Taurus fails to display the TarusValue for attributes with the following exception:
File "~/LIBS/python/taurus/qt/qtgui/panel/taurusvalue.py", line 792, in addLabelWidgetToLayout
Qt.Qt.Alignment(0))
TypeError: argument 1 of Alignment() has an invalid type
If 0 is replaced by AlignLeft then a new exception occurs:
File "~/LIBS/python/taurus/qt/qtgui/panel/taurusvalue.py", line 794, in addLabelWidgetToLayout
alignment=alignment)
TypeError: addWidget() takes no keyword arguments
To bypass the error I just commented the alignment-related lines.
Note: this is a PyQt4.4-related issue. It works well with newer PyQts
Hello Sergi,
We found the problem and a possible solution. A new patch has been sent to the list.
Thanks.
Applied patch (to develop) from cfalcon that fixes the issue (not just bypasses it).
Ticket moved from /p/sardana/tickets/300/
Can't be converted: