Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SandorAlbert opened this issue Sep 10, 2019 · 0 comments

Comments

@SandorAlbert
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant