Skip to content

'Could not find "..." module' and 'local variable 'workspace' referenced before assignment' #2

Open
@SandorAlbert

Description

@SandorAlbert

Hi,

I'm quite new to Python and very new to Cellprofiler.

I'm getting errors telling me that some modules can't be found ("Crop module" and "CorrectIlluminationApply module", the latest being from my own pipeline).

ERROR:root:Failed to load pipeline
Traceback (most recent call last):
  File "C:\Users\albert\AppData\Local\Continuum\miniconda3\envs\cellprofiler\lib\site-packages\cellprofiler\pipeline.py", line 1024, in loadtxt
    module = self.instantiate_module(module_name)
  File "C:\Users\albert\AppData\Local\Continuum\miniconda3\envs\cellprofiler\lib\site-packages\cellprofiler\pipeline.py", line 672, in instantiate_module
    return cellprofiler.modules.instantiate_module(module_name)
  File "C:\Users\albert\AppData\Local\Continuum\miniconda3\envs\cellprofiler\lib\site-packages\cellprofiler\modules\__init__.py", line 429, in instantiate_module
    module = get_module_class(module_name)()
  File "C:\Users\albert\AppData\Local\Continuum\miniconda3\envs\cellprofiler\lib\site-packages\cellprofiler\modules\__init__.py", line 424, in get_module_class
    raise ValueError("Could not find the %s module" % module_class)
ValueError: Could not find the CorrectIlluminationApply module

Also, it tells me that the returned variable "workspace" is "referenced before assignment"

---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
<ipython-input-76-cfb2eda5aa0f> in <module>()
----> 1 workspace = run_pipeline(pipeline_filename, images)

<ipython-input-73-613a46ada7b6> in run_pipeline(pipeline_filename, image_dict)
     39     # and the image set/image set list which can be used
     40     # to use/view/store/whatever output data.
---> 41     return workspace

UnboundLocalError: local variable 'workspace' referenced before assignment

Thanks in advance and kind regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions