After installing CP 3.0 my own plugins do not work. I get an error message " ImportError: No module named cpmodule". What should I use instead of import cellprofiler.cpmodule?
Hi Petter! I believe this is now called
Yes, thanks Beth.
But then I get problems with other imports as well:
Looking at this page:
settings is now
cpimage is now
measurements is now
ETA it looks like most of the renaming came in this commit, so if there are other imports giving you trouble this might help you to track down old vs new names.
Now the imports work, but I still get some problems since I cannot find IO_FOLDER_CHOICE_HELP_TEXT in the new preferences.py
Also errors for:
from cellprofiler.gui.help import USING_METADATA_HELP_REF, USING_METADATA_GROUPING_HELP_REF, LOADING_IMAGE_SEQ_HELP_REF
ImportError: cannot import name USING_METADATA_HELP_REF
from cellprofiler.gui.help import PROTIP_RECOMEND_ICON, PROTIP_AVOID_ICON, TECH_NOTE_ICON
ImportError: cannot import name PROTIP_RECOMEND_ICON
It looks like a lot of those have moved to
FWIW, you can search any of these variables in the cellprofiler repo to see where they’re moved to now (see below).
I have got it working now. Thanks, Beth!
Impressed by your persistence!