python3: unpickling error

 working with pickle files can be tricky in python. At times when loading the pickle file using the load method of the pickle module you might get an error as below:

UnpicklingError: invalid load key, '\xef'.


Please note this error is caused by corruption in the data of the pickle file which might have been caused due to copy operation of the pickle file or other reasons. 

You can attempt to re-copy the pickle file and save again to make this error go away

Comments

Popular posts from this blog

Azure Data Analytics: Part1: Hosting Data Lake storage: Gen1 and Gen2