TheDeanLab / navigate

navigate - open source light-sheet microscope controls
https://thedeanlab.github.io/navigate/
Other
32 stars 6 forks source link

Plugin Install #990

Closed JinlongL closed 1 month ago

JinlongL commented 1 month ago

While trying to add a plugin via the plugin menu, we received this error:

(navigate) C:\Users\mesoO>navigate
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\mesoO\.conda\envs\navigate\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\mesoO\OneDrive\Documents\GitHub\navigate\src\navigate\controller\sub_controllers\menus.py", line 1089, in install_plugin
    if plugin_name in plugins_dict:
TypeError: argument of type 'NoneType' is not iterable
JinlongL commented 1 month ago

Should have logic if this file is not found:

            plugins_dict = load_yaml_file(
                os.path.join(get_navigate_path(), "config", "plugins_config.yml")
            )