Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError for dir_archive for many-variable inputs #118

Open
mmckerns opened this issue Sep 8, 2023 · 0 comments
Open

OSError for dir_archive for many-variable inputs #118

mmckerns opened this issue Sep 8, 2023 · 0 comments

Comments

@mmckerns
Copy link
Member

mmckerns commented Sep 8, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant