DiamondLightSource / DiamondLightSource/SuRVoS2
Starting SuRVoS2 from the plugins menu produces error message
- Dominant language
- Python
- Stars
- 10
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Hi all,
I installed the SuRVoS2 plugin (from the current main branch here) and tried starting it from the menu `Plugins > SuRVoS Workspace`. Unfortunately, it doesn't start and outputs the error message posted below instead. Is there anything else I need to do to try it out?
Thanks!
Best,
Robert
```
INFO - Frontend loading workspace: - survos2.frontend.frontend:frontend:87
DEBUG - Plugin loaded: superregions, Superregions, - survos2.frontend.panels:__init__:185
DEBUG - QCSWidget __call__ - survos2.frontend.components.base:__call__:72
show_plugin: superregions
DEBUG - Region result None - survos2.frontend.plugins.superregions:setup:81
DEBUG - Plugin loaded: annotations, Annotations, - survos2.frontend.panels:__init__:185
DEBUG - Result of regions existing: None - survos2.frontend.plugins.superregions:fill:24
WARNING: QLayout: Attempting to add QLayout "" to AnnotationPlugin "annotation_plugin", which already has a layout
22:08:02 WARNING QLayout: Attempting to add QLayout "" to AnnotationPlugin "annotation_plugin", which already has a layout
DEBUG - Result of regions existing: None - survos2.frontend.plugins.superregions:fill:24
WARNING: QLayout: Attempting to add QLayout "" to AnnotationPlugin "annotation_plugin", which already has a layout
22:08:02 WARNING QLayout: Attempting to add QLayout "" to AnnotationPlugin "annotation_plugin", which already has a layout
show_plugin: annotations
DEBUG - Plugin loaded: features, Features, - survos2.frontend.panels:__init__:185
WARNING: QLayout: Attempting to add QLayout "" to FeaturesPlugin "features_plugin", which already has a layout
22:08:02 WARNING QLayout: Attempting to add QLayout "" to FeaturesPlugin "features_plugin", which already has a layout
show_plugin: features
DEBUG - Feature result None - survos2.frontend.plugins.features:setup:174
DEBUG - Plugin loaded: server, Server, - survos2.frontend.panels:__init__:185
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
~\miniconda3\envs\survos2\lib\site-packages\napari\_qt\menus\plugins_menu.py in _add_toggle_widget(key=('SuRVoS2', 'Workspace'), hook_type='dock')
84
85 if hook_type == 'dock':
---> 86 self._win.add_plugin_dock_widget(*key)
global self._win.add_plugin_dock_widget = undefined
key = ('SuRVoS2', 'Workspace')
87 else:
88 self._win._add_plugin_function_widget(*key)
~\miniconda3\envs\survos2\lib\site-packages\napari\_qt\qt_main_window.py in add_plugin_dock_widget(self=, plugin_name='SuRVoS2', widget_name='Workspace')
671
672 # instantiate the widget
--> 673 wdg = Widget(**kwargs)
wdg = undefined
Widget =
kwargs = {'napari_viewer': Viewer(axes=Axes(visible=False, labels=True, colored=True, dashed=False, arrows=True), camera=Camera(center=(0.0, 0.0, 0.0), zoom=1.0, angles=(0.0, 0.0, 90.0), perspective=0.0, interactive=True), cursor=Cursor(position=(1.0, 1.0), scaled=True, size=1, style=), dims=Dims(ndim=2, ndisplay=2, last_used=0, range=((0, 2, 1), (0, 2, 1)), current_step=(0, 0), order=(0, 1), axis_labels=('0', '1')), grid=GridCanvas(stride=1, shape=(-1, -1), enabled=False), layers=[], scale_bar=ScaleBar(visible=False, colored=False, ticks=True, position=, font_size=10.0, unit=None), text_overlay=TextOverlay(visible=False, color= (4,) float64, font_size=10.0, position=, text=''), help='', status='Ready', tooltip=Tooltip(visible=False, text=''), theme='dark', title='napari', mouse_move_callbacks=[], mouse_drag_callbacks=[], mouse_double_click_callbacks=[], mouse_wheel_callbacks=[], _persisted_mouse_event={}, _mouse_drag_gen={}, _mouse_wheel_gen={}, keymap={'Control-Shift-C': >})}
674
675 # Add dock widget
c:\structure\code\survos2\survos2\_dock_widget.py in __init__(self=, napari_viewer=Viewer(axes=Axes(visible=False, labels=True, col..._viewer.QtViewer object at 0x000001C42442ADC0>>}))
28 from survos2.frontend.frontend import frontend
29
---> 30 self.dw = frontend(napari_viewer)
self.dw = undefined
frontend =
napari_viewer = Viewer(axes=Axes(visible=False, labels=True, colored=True, dashed=False, arrows=True), camera=Camera(center=(0.0, 0.0, 0.0), zoom=1.0, angles=(0.0, 0.0, 90.0), perspective=0.0, interactive=True), cursor=Cursor(position=(1.0, 1.0), scaled=True, size=1, style=), dims=Dims(ndim=2, ndisplay=2, last_used=0, range=((0, 2, 1), (0, 2, 1)), current_step=(0, 0), order=(0, 1), axis_labels=('0', '1')), grid=GridCanvas(stride=1, shape=(-1, -1), enabled=False), layers=[], scale_bar=ScaleBar(visible=False, colored=False, ticks=True, position=, font_size=10.0, unit=None), text_overlay=TextOverlay(visible=False, color= (4,) float64, font_size=10.0, position=, text=''), help='', status='Ready', tooltip=Tooltip(visible=False, text=''), theme='dark', title='napari', mouse_move_callbacks=[], mouse_drag_callbacks=[], mouse_double_click_callbacks=[], mouse_wheel_callbacks=[], _persisted_mouse_event={}, _mouse_drag_gen={}, _mouse_wheel_gen={}, keymap={'Control-Shift-C': >})
31 self.layout().addWidget(self.dw.ppw)
32 self.layout().addWidget(self.dw.bpw)
c:\structure\code\survos2\survos2\frontend\frontend.py in frontend(viewer=Viewer(axes=Axes(visible=False, labels=True, col..._viewer.QtViewer object at 0x000001C42442ADC0>>}))
129 # SuRVoS controls
130 dw = AttrDict()
--> 131 dw.ppw = PluginPanelWidget() # Main SuRVoS panel
global dw.ppw = undefined
global PluginPanelWidget =
132 dw.bpw = ButtonPanelWidget() # Additional controls
133 dw.ppw.setMinimumSize(QSize(450, 750))
c:\structure\code\survos2\survos2\frontend\panels.py in __init__(self=, *args=(), **kwargs={})
184
185 logger.debug(f"Plugin loaded: {name}, {title}, {plugin_cls}")
--> 186 self.pluginContainer.load_plugin(name, title, plugin_cls)
self.pluginContainer.load_plugin = >
name = 'server'
title = 'Server'
plugin_cls =
187 self.pluginContainer.show_plugin(name, tab)
188
c:\structure\code\survos2\survos2\frontend\plugins\base.py in load_plugin(self=, name='server', title='Server', cls=)
131 if name in self.plugins:
132 return
--> 133 widget = cls()
widget = undefined
cls =
134 widget.change_view.connect(self.view_requested)
135 self.plugins[name] = dict(widget=widget, title=title)
c:\structure\code\survos2\survos2\frontend\plugins\server.py in __init__(self=, parent=None)
674 self.adv_run_fields.hide()
675
--> 676 run_fields = self.get_run_fields()
run_fields = undefined
self.get_run_fields = >
677 tab1.layout.addWidget(run_fields)
678 output_config_button = QPushButton("Save config")
c:\structure\code\survos2\survos2\frontend\plugins\server.py in get_run_fields(self=)
829 run_layout = QGridLayout()
830
--> 831 workspaces = os.listdir(CHROOT)
workspaces = undefined
global os.listdir =
global CHROOT = '/dls/science/groups/das/SuRVoS/s2/data'
832 self.workspaces_list = ComboBox()
833 for s in workspaces:
FileNotFoundError: [WinError 3] The system cannot find the path specified: '/dls/science/groups/das/SuRVoS/s2/data'
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.