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

Object arrays cannot be loaded when allow_pickle=False #28

Open
Mr-Parth opened this issue Jul 28, 2019 · 4 comments
Open

Object arrays cannot be loaded when allow_pickle=False #28

Mr-Parth opened this issue Jul 28, 2019 · 4 comments

Comments

@Mr-Parth
Copy link

No description provided.

@YK921
Copy link

YK921 commented Jul 30, 2019

I recommend that numpy Ver 1.16.1

pip install numpy==1.16.1

@antonioii
Copy link

I've had the same issue, then I uninstalled the numpy version and installed the 1.16.1 as above

@YK921
Copy link

YK921 commented May 12, 2020

Try it,
import numpy as np
np_load_old = np.load
np_load = lambda *a, **k : np_load_old(*a, allow_pickle=true, **k)

@lironber
Copy link

I also encountered that, and when tried the previous suggestion/allow_pickle=True, got:

File "/usr/local/lib/python3.6/dist-packages/numpy/lib/format.py", line 727, in read_array
array = pickle.load(fp, **pickle_kwargs)
_pickle.UnpicklingError: pickle data was truncated

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

4 participants