Skip to content

OSError for dir_archive for many-variable inputs #118

Open
@mmckerns

Description

@mmckerns

The defaults for a dir_archive where the input is a long array can fail because the file name is too long.

Traceback (most recent call last):
  File "/Users/mmckerns/lib/python3.8/site-packages/klepto/_archives.py", line 582, in _lookup
    with open(_file, mode) as f:
OSError: [Errno 63] File name too long: '/Users/mmckerns/testing/truth/K_(3.141592653589793, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586, 6.283185307179586)/output.pkl'

What can be done here? Is there a better default or should the mitigation plan be documentation?

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