joblib.load() EOFError? how can i solve it?
See original GitHub issueTraceback (most recent call last):
File "main_predict.py", line 30, in <module>
classifier_dict = joblib.load(config.model_save_path + model_name)
File "/home/xipuhu/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 598, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "/home/xipuhu/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 526, in _unpickle
obj = unpickler.load()
File "/home/xipuhu/anaconda3/lib/python3.6/pickle.py", line 1048, in load
raise EOFError
EOFError
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
EOFError by using joblib.load - python - Stack Overflow
It looks like the file is corrupted or in a different format than the one expected. Unfortunately, without the file, it is impossible...
Read more >Reading pickle file using joblib gives error: ValueError - Reddit
I have created a pickle file using joblib.dump(). I earlier used pickle.dump(). but it gave me memory error so i switched to joblib....
Read more >pandas read_pickle eoferror
joblib load eof error. Joblib provides joblib.register_compressor() in order to extend the list of default compressors available. To fit with Joblib internal ...
Read more >Handling EOFError Exception in Python - GeeksforGeeks
EOFError is raised when one of the built-in functions input() or raw_input() hits an end-of-file condition (EOF) without reading any data. This ...
Read more >I'm getting a "EOFError: EOF when reading a line" Error while ...
I'm trying to solve this problem - but getting the above mentioned error at ... q=int(input()) z="" for i in range(1,q+1): A =...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@qinhanmin2014 please re-open! I’m experiencing this same issue. Here’s a question @swaticolab opened about this on StackOverflow
I’m pickling a
LightGBM
model and get the error when I try to unpickle it. Here’s the packages we’re using:Here’s the traceback:
update
– my theory is that it has to do w/ the remote environment’s package versions… but sometimes it it will work even when
joblib
sklearn
numpy
and lightgbm` are the same exact version what other packages be at play here?This issue is not actionable without a stand-alone snippet to reproduce.