I have a file that contains a data structure with test results from a Windows user. He created this file using the command pickle.dump. On Ubuntu, I tried to load these test results with the following program:
import pickle
import my_module
f = open('results', 'r')
print pickle.load(f)
f.close()
But I get an error inside the pickle module that does not have a module named "my_module".
Could the problem be caused by corruption in the file, or maybe the transition from Widows to Linux is couse?
source
share