Closed sf-migrator-bot closed 7 years ago
My recommendation: avoid using TaurusMotorV2 It should be marked as deprecated (if it is not already)
Maybe use PoolMotorSlim, or (better) PoolMotorTV
Original comment by: cpascual (http://sf.net/u/cpascual)
Si si....lo he cambiado y he pasado a usar PoolMotorSlim, que me va mejor, ya que permite modificar el atributo como quieren los de aceleradores, mientras que en el PoolMotorTV no.
Tan solo reporté el problema en sardana, porque me volvieron a reportar el fallo desde control room en otro ticket y como aún no he instalado el paquete que soluciona el problema (hasta el viernes dia de máquina, no lo haré) me puse a investigar un poco. Encontré que el problema podía ser debido a que no se estaba ejecutando el init del QWidget y se lo comenté a Zibi después del controls meeting. Le estuvimos viendo y me comento de poner un ticket en la cola de Sardana.
Por mi parte, PoolMotorSlim soluciona el problema, así que si TaurusMotorV está "deprecated", por mi parte se puede cerrar el ticket.
Gracias.
On 07/19/2016 11:50 PM, Carlos Pascual wrote:
My recommendation: avoid using TaurusMotorV2 It should be marked as deprecated (if it is not already)
Maybe use PoolMotorSlim, or (better) PoolMotorTV
[tickets:#497] https://sourceforge.net/p/sardana/tickets/497/ Pronlem with "cfg" button in sardana.taurus.qt.qtgui.extra_pool.motor.TaurusMotorV2
Status: waiting Milestone: unassigned Created: Tue Jul 19, 2016 10:51 AM UTC by Manuel Broseta Last Updated: Tue Jul 19, 2016 10:51 AM UTC Owner: nobody
The following problem has been observed with sardana blisspackage version 1.47.
When open a TaurusMotorV widget:
python /homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_pool/motor.py
The following problem is reported when pressign the "cfg" button: Traceback (most recent call last): File "/homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_pool/motor.py", line 60, in configureMotor showDialogConfigureMotor(self.ui.TaurusGroupBox) File "/homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_pool/motor.py", line 39, in showDialogConfigureMotor motorV2 = TaurusMotorV2(Dialog) File "/homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_pool/motor.py", line 229, in *init* self.loadUi() File "/homelocal/sicilia/lib/python/site-packages/taurus/qt/qtgui/util/ui.py", line 162, in _loadUi return loadUi(self, filename=filename, path=path, with_ui=with_ui) File "/homelocal/sicilia/lib/python/site-packages/taurus/qt/qtgui/util/ui.py", line 75, in loadUi uic.loadUi(full_name, baseinstance=obj) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/*init*.py", line 106, in loadUi return loader.DynamicUILoader().loadUi(uifile, baseinstance) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/Loader/loader.py", line 22, in loadUi return self.parse(filename) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/uiparser.py", line 667, in parse actor(elem) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/uiparser.py", line 520, in createUserInterface self.toplevelWidget = self.createToplevelWidget(cname, wname) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/Loader/loader.py", line 14, in createToplevelWidget (type(self.toplevelInst), classname)) TypeError: ('Wrong base class of toplevel widget', ( , 'QDialog')) BR Manolo. ------------------------------------------------------------------------ Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/sardana/tickets/497/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
--
ALBA Synchrotron http://www.albasynchrotron.es
*Manuel Broseta*
/Control Software Engineer/ CELLS Computing Division * ALBA SYNCHROTRON LIGHT SOURCE
Please, do not print this e-mail unless it is absolutely necessary. Si heu rebut aquest correu per error, us informo que pot contenir informació confidencial i privada i que està prohibit el seu ús. Us agrairíem que ho comuniqueu al remitent i l'elimineu. Gràcies. Si ha recibido este correo por error, le informo de que puede contener información confidencial y privada y que está prohibido su uso. Le agradeceré que lo comunique a su remitente y lo elimine. Gracias. If you have received this e-mail in error, please note that it may contain confidential and private information, therefore, the use of this information is strictly forbidden. Please inform the sender of the error and delete the information received. Thank you.
Original comment by: mbroseta (http://sf.net/u/mbroseta)
Original comment by: reszelaz (http://sf.net/u/zreszela)
I have fixed this bug and sent the patches to the develop mailing list. The ticket will get closed whenever they get integrated in the develop branch.
As Carlos mentioned we should evaluate cleanup of the Motor widgets and mark deprecations.
Original comment by: reszelaz (http://sf.net/u/zreszela)
Original comment by: reszelaz (http://sf.net/u/zreszela)
The patches sent by Zibi were integrated.
The following problem has been observed with sardana blisspackage version 1.47.
When open a TaurusMotorV widget:
python /homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_pool/motor.py
The following problem is reported when pressign the "cfg" button:
Traceback (most recent call last): File "/homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_pool/motor.py", line 60, in configureMotor showDialogConfigureMotor(self.ui.TaurusGroupBox) File "/homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_pool/motor.py", line 39, in showDialogConfigureMotor motorV2 = TaurusMotorV2(Dialog) File "/homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_pool/motor.py", line 229, in init self.loadUi() File "/homelocal/sicilia/lib/python/site-packages/taurus/qt/qtgui/util/ui.py", line 162, in _loadUi return loadUi(self, filename=filename, path=path, with_ui=with_ui) File "/homelocal/sicilia/lib/python/site-packages/taurus/qt/qtgui/util/ui.py", line 75, in loadUi uic.loadUi(full_name, baseinstance=obj) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/init.py", line 106, in loadUi return loader.DynamicUILoader().loadUi(uifile, baseinstance) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/Loader/loader.py", line 22, in loadUi return self.parse(filename) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/uiparser.py", line 667, in parse actor(elem) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/uiparser.py", line 520, in createUserInterface self.toplevelWidget = self.createToplevelWidget(cname, wname) File "/usr/lib64/python2.6/site-packages/PyQt4/uic/Loader/loader.py", line 14, in createToplevelWidget (type(self.toplevelInst), classname)) TypeError: ('Wrong base class of toplevel widget', (<class 'main.TaurusMotorV2'>, 'QDialog'))
BR Manolo.
Reported by: mbroseta ( http://sf.net/u/mbroseta )
Original Ticket: sardana/tickets/497