Import Movies fails if target is symlink - patch 210817

Dear all,
This seems as a potential bug. Upon importing movies, if project folder refers to symlink, import fails:

*  File "cryosparc_master/cryosparc_compute/run.py", line 84, in cryosparc_compute.run.main*
*  File "/cryosparc_master/cryosparc_compute/jobs/imports/run.py", line 632, in run_import_movies_or_micrographs*
*    level, all_base_paths, abs_to_rel_map, all_rel_paths = symlink_all_abs_files_to_import_dir(proj_dir_abs, job_dir_rel, abs_paths_to_import, uid_to_path_map)*
*   File "/cryosparc_master/cryosparc_compute/jobs/imports/run.py", line 535, in symlink_all_abs_files_to_import_dir*
*  abs_to_rel_map, all_rel_paths = symlink_paths(proj_dir_abs, os.path.join(job_dir_rel, import_dir_name), all_abs_paths, all_base_paths, uid_to_path_map)*
*    File "/cryosparc_master/cryosparc_compute/jobs/imports/run.py", line 522, in symlink_paths*
*  os.symlink(abs_path, dest)*
* FileNotFoundError: [Errno 2] No such file or directory: '' -> '/path/symlink/P1/J1/imported/'*

Creating a new project without symlink in path will fix this.

Cheers,
Jesper

Hey Jesper,

I usually create a folder and then create symlinks for the tiff files inside the folder. This has never failed for me. Maybe its a bug at the folder level but creating symlinks for the files directly can be a potential workaround.

Vamsee

1 Like