The problem I am having is when I try to load the pickled object. I have tried using both pickle.loads
and pickle.load
Here are the re
If you happen to be porting python2 to 3 and run into this error, python2 and 3 handle bytes different leading to the requirement to open your file handle with the 'b' option. For instance in python2 open(file, 'r') as f: my_list = pickle.load(f)
works , but not in python3. Instead you must open with open(file, 'rb') as f: my_list = pickle.load(f)