Skip to content

Filepath length and registry settings #1

Description

@rkaufman058

This version of plottr will tend to make VERY long filepaths. It turns out that Windows will only allow 260 character filenames, and so the user will run into the issue of very long filepaths not being readable from their python scripts. This will show as a raised ValueError exception - "ValueError: Specified file does not exist."

Now most of the time, this is because of a typo in your filename, forgotten backslash, etc. However if the filename is very long and you have triple-checked it, this might be the issue.

The long-term fix would be to avoid using longer filenames, and develop a mechanism for saving metadata in the plottr file itself rather than using the filename.

The short-term bandaid solution is to change a windows registry setting that allows the use of longer filenames. That is documented here.

The short version, in case that page goes down, is to edit the following key:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled

to have the value 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions