Skip to content

Error in importing "_cpmorphology" module #3

@zhouhao-learning

Description

@zhouhao-learning

I'm trying to run your Processplate. sh file, but I encountered a module import error in the CellProfiler / cellprofiler / cpmath / cpmorphology. py file. The cpmorphology. py file imported itself as a module, but I couldn't run it. I got the following error:

Traceback (most recent call last):
  File "./CellProfiler/CellProfiler.py", line 252, in main
    run_pipeline_headless(options, args)
  File "./CellProfiler/CellProfiler.py", line 790, in run_pipeline_headless
    from cellprofiler.pipeline import Pipeline, EXIT_STATUS, M_PIPELINE
  File "/project/hit_cell/process-plate/CellProfiler/cellprofiler/pipeline.py", line 52, in <module>
    import cellprofiler.objects as cpo
  File "/project/hit_cell/process-plate/CellProfiler/cellprofiler/objects.py", line 19, in <module>
    from cellprofiler.cpmath.cpmorphology import all_connected_components
  File "/project/hit_cell/process-plate/CellProfiler/cellprofiler/cpmath/cpmorphology.py", line 20, in <module>
    import _cpmorphology
ImportError: No module named _cpmorphology

Similar modules are from _cpmorphology2 import skeletonize_loop, table_lookup_index, but I don't see a cpmorphology2.py file, just see a _cpmorphology2.pyx file

What should I do with this error? Thank you very much.

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