Skip to content

ImportError: cannot import name 'imsave' from 'tifffile' #59

@sherryoung

Description

@sherryoung

The installation works well but I get an ImportError when I call "sreeni". Here is the error message.

ImportError: cannot import name 'imsave' from 'tifffile' (/opt/anaconda3/envs/image-annotator/lib/python3.13/site-packages/tifffile/init.py)

To fix it, I accessed "/opt/anaconda3/envs/image-annotator/lib/python3.13/site-packages/digitalsreeni_image_annotator/image_patcher.py", looked for from tifffile import TiffFile, imsave and edited it to from tifffile import TiffFile, imwrite as imsave.

Saved it, re-ran digitalsreeni-image-annotator in the terminal and it worked.

Hopefully this helps anyone running in the same issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions