CellProfiler / CellProfiler-plugins

Community-contributed and experimental CellProfiler modules.
http://plugins.cellprofiler.org/
56 stars 68 forks source link

RunCellpose error: AttributeError: 'RunCellpose' object has no attribute 'cellpose_ver' #223

Closed braymp closed 4 weeks ago

braymp commented 11 months ago

Pressing the "Test GPU" button in RunCellpose yields the following error:

Traceback (most recent call last):
  File "/opt/venv/lib/python3.8/site-packages/cellprofiler/gui/module_view/_module_view.py", line 1206, in callback
    self.__on_do_something(event, setting)
  File "/opt/venv/lib/python3.8/site-packages/cellprofiler/gui/module_view/_module_view.py", line 2247, in __on_do_something
    setting.on_event_fired()
  File "/opt/venv/lib/python3.8/site-packages/cellprofiler_core/setting/do_something/_do_something.py", line 27, in on_event_fired
    self.__callback(*self.__args)
  File "/opt/cellprofiler/runcellpose.py", line 677, in do_check_gpu
    if float(self.cellpose_ver[0:3]) >= 0.7 and int(self.cellpose_ver[0])<2:
AttributeError: 'RunCellpose' object has no attribute 'cellpose_ver'

PR https://github.com/CellProfiler/CellProfiler-plugins/pull/222 should fix it (this is my 1st PR so be gentle 😄 )