Skip to content

Path error when reading file on samba share #258

@kai-s-b

Description

@kai-s-b

Hi,

When trying to read a .nd2 file located on a network drive (samba share) in Windows the reading fails with a FileNotFoundError. This only happens in newer versions of the nd2 package, and is due to the line:

65: path = Path(path).expanduser().resolve()

in _readers/protocols.py.
When running Path.resolve() on a network path in Windows it seems to resolve the path to a format that cannot be used as a raw path downstream. Not sure what the best fix is (if you do want to fix this), but in my hands replacing .resolve() with .absolute() fixed the issue and maintains some of the functionality of .resolve().

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