Erroe while looading Plungins modules

I have installed Cellprofiler-4.0.2 and try to adapt ImcPlugnginsCP modules (https://github.com/BodenmillerGroup/ImcPluginsCP). However failed. The error information is shown below.


Starting CellProfiler 4.0.2
Could not load cliprange
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\cliprange.py”, line 18, in
import cellprofiler.image
ModuleNotFoundError: No module named ‘cellprofiler.image’
Could not load colortograybb
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\colortograybb.py”, line 36, in
import cellprofiler.image as cpi
ModuleNotFoundError: No module named ‘cellprofiler.image’
Could not load correctspilloverapply
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\correctspilloverapply.py”, line 15, in
import cellprofiler.image as cpi
ModuleNotFoundError: No module named ‘cellprofiler.image’
Could not load correctspillovermeasurement
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\correctspillovermeasurement.py”, line 13, in
import cellprofiler.image as cpi
ModuleNotFoundError: No module named ‘cellprofiler.image’
Could not load crop_image
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\crop_image.py”, line 13, in
import cellprofiler.module as cpm
ModuleNotFoundError: No module named ‘cellprofiler.module’
Could not load mask2binstack
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\mask2binstack.py”, line 55
SEL_MID, doc="""
^
SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 415-416: truncated \uXXXX escape
Could not load measureimageintensitymultichannel
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\measureimageintensitymultichannel.py”, line 5, in
import cellprofiler.module as cpm
ModuleNotFoundError: No module named ‘cellprofiler.module’
Could not load measureobjectintensitymultichannel
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\measureobjectintensitymultichannel.py”, line 10, in
import cellprofiler.measurement
ModuleNotFoundError: No module named ‘cellprofiler.measurement’
Could not load rescaleobjects
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\rescaleobjects.py”, line 49, in
import cellprofiler.image as cpi
ModuleNotFoundError: No module named ‘cellprofiler.image’
Could not load saveimages_h5
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\saveimages_h5.py”, line 46, in
import cellprofiler.measurement
ModuleNotFoundError: No module named ‘cellprofiler.measurement’
Could not load saveimages_ilastik
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\saveimages_ilastik.py”, line 49, in
import cellprofiler.measurement
ModuleNotFoundError: No module named ‘cellprofiler.measurement’
Could not load save_object_crops
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\save_object_crops.py”, line 31, in
import cellprofiler.module as cpm
ModuleNotFoundError: No module named ‘cellprofiler.module’
Could not load smoothmultichannel
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\smoothmultichannel.py”, line 37, in
import cellprofiler.image as cpi
ModuleNotFoundError: No module named ‘cellprofiler.image’
Could not load stackimages
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\stackimages.py”, line 23, in
import cellprofiler.image as cpi
ModuleNotFoundError: No module named ‘cellprofiler.image’
Could not load summarizestack
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\summarizestack.py”, line 17, in
import cellprofiler.image as cpi
ModuleNotFoundError: No module named ‘cellprofiler.image’
Could not load transformbinary
Traceback (most recent call last):
File “cellprofiler_core\utilities\core\modules_init_.py”, line 71, in add_module
File “D:\CellProfiler4.0.2\ImcPluginsCP-master\plugins\transformbinary.py”, line 10, in
import cellprofiler.image as cpi
ModuleNotFoundError: No module named ‘cellprofiler.image’
could not load these modules: cliprange,colortograybb,correctspilloverapply,correctspillovermeasurement,crop_image,mask2binstack,measureimageintensitymultichannel,measureobjectintensitymultichannel,rescaleobjects,saveimages_h5,saveimages_ilastik,save_object_crops,smoothmultichannel,stackimages,summarizestack,transformbinary

Hi @11120,

CP3 plugins will need to be updated to work with CellProfiler 4. There are a lot of internal changes in the new version, but most notably classes such as cellprofiler.image are now located in cellprofiler_core.image instead. Updating such references should get you at least part of the way there.

We’ve now added a conversion guide to our main CellProfiler-plugins wiki. As we don’t have write access to that group’s plugins, though, upgrade responsibilities ultimately fall to them. We’re happy to provide any advice on how to do that!

(post withdrawn by author, will be automatically deleted in 72 hours unless flagged)