Skip to content

Error in create_mobie_project #23

@Buglakova

Description

@Buglakova

I tried to rerun the pipeline from scratch and get the following error in create_mobie_project:

Traceback (most recent call last):
  File "/g/kreshuk/buglakova/projects/matchmaker/matchmaker/mobie_export.py", line 163, in <module>
    main()
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/click/core.py", line 1462, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/click/core.py", line 1383, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/click/core.py", line 1246, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/click/core.py", line 814, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/g/kreshuk/buglakova/projects/matchmaker/matchmaker/mobie_export.py", line 151, in main 
    export_to_mobie(
  File "/g/kreshuk/buglakova/projects/matchmaker/matchmaker/mobie_export.py", line 115, in export_to_mobie
    add_to_mobie(input_path, input_key, mobie_folder, dataset_name, segmentation_name, menu_name)
  File "/g/kreshuk/buglakova/projects/matchmaker/matchmaker/mobie_export.py", line 35, in add_to_mobie
    add_segmentation(
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/mobie/segmentation.py", line 93, in add_segmentation
    import_segmentation(input_path, input_key, data_path,
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/mobie/import_data/segmentation.py", line 42, in import_segmentation
    add_max_id(in_path, in_key, out_path, out_key, tmp_folder, target, max_jobs)
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/mobie/import_data/utils.py", line 134, in add_max_id
    with open_file(out_path, "r") as f_out:
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/elf/io/files.py", line 71, in open_file
    return constructor(path, mode=mode, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/buglakov/miniconda3/envs/matchmaker_env/lib/python3.11/site-packages/z5py/file.py", line 84, in __init__
    raise OSError(errno.EROFS, os.strerror(errno.EROFS), handle.path())
OSError: [Errno 30] Read-only file system: 'data/test_registration/mobie_project/platy1_muscles_stardist/images/ome-zarr/fixed_image_input.ome.zarr'

I checked and it looks like platy1_muscles_stardist/images/ doesn't exist yet, so it can't create a directory in it. @Marei33, do you have the same?

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