1

I am trying to read and load a pickle file. Even though the pickle object I am trying to pass as argument is not empty I am getting this issue.

Code:

model = pickle.load(open('ridge-model.pkl', 'rb'))

Error:

EOFError: Ran out of input

Saurabh Singh
  • 11
  • 1
  • 2

1 Answers1

1

You get that error when the file you are trying to load with pickle is empty.

So make sure that there's things written into 'ridge-model.pkl'.

Red
  • 26,798
  • 7
  • 36
  • 58