Hello @ranranking @benedictdied
Was able to get the Imswitch GUI installed properly after switching my python version from 3.9 to 3.10. I have now run into the problem below here saying no controller found for widget controller. The files it directs me to has been changed very recently so I am wondering if this is a hardware issue on my end or a software issue? How should I solve this? I have included the code below.
2024-07-09 13:05:49 ERROR [main] Failed to initialize module imcontrol
ERROR:imswitch:[main] Failed to initialize module imcontrol
2024-07-09 13:05:49 ERROR [main] No controller found for widget Positioner
ERROR:imswitch:[main] No controller found for widget Positioner
2024-07-09 13:05:49 ERROR [main] Traceback (most recent call last):
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrol\controller\ImConMainController.py”, line 57, in init
self.controllers[widgetKey] = self.__factory.createController(
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcommon\controller\basecontrollers.py”, line 46, in createController
controller = controllerClass(*self.__args, *args,
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrol\controller\controllers\PositionerController.py”, line 29, in init
self._widget.addPositioner(pName, pManager.axes, hasSpeed, hasHome, hasStop)
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrol\view\widgets\PositionerWidget.py”, line 43, in addPositioner
self.axes.append(axis)
AttributeError: ‘PositionerWidget’ object has no attribute ‘axes’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch_main.py", line 91, in main
view, controller = modulePkg.getMainViewAndController(
File "C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrolinit.py", line 62, in getMainViewAndController
raise e
File "C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrolinit_.py”, line 58, in getMainViewAndController
controller = ImConMainController(options, setupInfo, view, moduleCommChannel)
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrol\controller\ImConMainController.py”, line 73, in init
raise ValueError(f’No controller found for widget {widgetKey}')
ValueError: No controller found for widget Positioner
ERROR:imswitch:[main] Traceback (most recent call last):
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrol\controller\ImConMainController.py”, line 57, in init
self.controllers[widgetKey] = self.__factory.createController(
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcommon\controller\basecontrollers.py”, line 46, in createController
controller = controllerClass(*self.__args, *args,
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrol\controller\controllers\PositionerController.py”, line 29, in init
self._widget.addPositioner(pName, pManager.axes, hasSpeed, hasHome, hasStop)
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrol\view\widgets\PositionerWidget.py”, line 43, in addPositioner
self.axes.append(axis)
AttributeError: ‘PositionerWidget’ object has no attribute ‘axes’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch_main.py", line 91, in main
view, controller = modulePkg.getMainViewAndController(
File "C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrolinit.py", line 62, in getMainViewAndController
raise e
File "C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrolinit_.py”, line 58, in getMainViewAndController
controller = ImConMainController(options, setupInfo, view, moduleCommChannel)
File “C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcontrol\controller\ImConMainController.py”, line 73, in init
raise ValueError(f’No controller found for widget {widgetKey}')
ValueError: No controller found for widget Positioner
C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcommon\view\guitools\naparitools.py:99: FutureWarning: Public access to Window.qt_viewer is deprecated and will be removed in
v0.6.0. It is considered an “implementation detail” of the napari
application, not part of the napari viewer model. If your use case
requires access to qt_viewer, please open an issue to discuss.
napariViewer.window.qt_viewer.dockLayerList
C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcommon\view\guitools\naparitools.py:102: FutureWarning: Public access to Window.qt_viewer is deprecated and will be removed in
v0.6.0. It is considered an “implementation detail” of the napari
application, not part of the napari viewer model. If your use case
requires access to qt_viewer, please open an issue to discuss.
napariViewer.window.qt_viewer.dockLayerList.qt_area,
C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcommon\view\guitools\naparitools.py:103: FutureWarning: Public access to Window.qt_viewer is deprecated and will be removed in
v0.6.0. It is considered an “implementation detail” of the napari
application, not part of the napari viewer model. If your use case
requires access to qt_viewer, please open an issue to discuss.
napariViewer.window.qt_viewer.dockLayerList
C:\Users\ngavu\Downloads\ImSwitch\imswitch\imcommon\view\guitools\naparitools.py:105: FutureWarning: Public access to Window.qt_viewer is deprecated and will be removed in
v0.6.0. It is considered an “implementation detail” of the napari
application, not part of the napari viewer model. If your use case
requires access to qt_viewer, please open an issue to discuss.
napariViewer.window.qt_viewer.dockLayerList.show()
2024-07-09 13:05:51 DEBUG [ImRecMainViewController] Updating pattern
DEBUG:imswitch:[ImRecMainViewController] Updating pattern
2024-07-09 13:05:51 INFO [main] initialize module imreconstruct
INFO:imswitch:[main] initialize module imreconstruct
2024-07-09 13:05:51 INFO [main] initialize module imscripting
INFO:imswitch:[main] initialize module imscripting
2024-07-09 13:05:51 INFO [main] init done
INFO:imswitch:[main] init done