You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
When TaurusGUI loads its configuration, it supports (for backwards compatibility) a deprecatedMONITOR key in the configuration. When present, a deprecatedtaurus.qt.qtgui.qwt5.TaurusMonitorTiny class is used (Taurus assumes that this key is only present in old configurations, which are associated with availability of old plot implementations).
When one such configuration is loaded in a system using python3 or Qt5, the TaurusMonitorTiny is not available (because the old Qwt5 module is not available), and a KeyError: 'TaurusMonitorTiny' exception is raised on load, potentially messing with the load of other configurations.
This was not considered a critical issue because the "MONITOR" key has been deprecated for a very long time in favor of the AppletDescriptions mechanism. But it turns out that the AppSettingsWizard (used with taurus newgui) has a "monitor" page that accepts a list of attributes and sets it as the value of the MONITOR key in the configuration xml.
In order to fix, I propose:
to handle the exception in TaurusGui._loadCustomApplets to make it more robust
refactor the AppSettingsWizard to stop creating "MONITOR" keys
(optional) implement a replacement for TaurusMonitorTiny in taurus_pyqtgraph (in order to improve backwards compatibility)