array = pickle.load(fp, **pickle_kwargs) EOFError: Ran out of input code example Example: python EOFError: Ran out of input It is very likely that the pickled file is empty.