I am trying to run python file on the VM. First, i wrote the code on windows and saved my data on variable using:
pickle.dump(x_train, open("images.data", "wb"))
Then, when i'm trying to run the program on linux i'm using:
x_train = pickle.load(open("images.data", "rb"))
and I get the error:
File "/usr/lib/python2.7/pickle.py", line 1384, in load
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
KeyError: 'v'
On windows it worked good, anyone knows what could be the problem?
Thanks.
edit: When I run the program via python 3.7.7 (the same as the windows version) I got:
Traceback (most recent call last):
File "dogpretrained.py", line 127, in <module>
x_train = pickle.load(open("images.data", "rb"))
_pickle.UnpicklingError: invalid load key, 'v'.