> F = os.path.join(render_map_path,'sizes.pkl') > Pickle_mat = pickle.load(f) Quickly realised I'm passing a string, not a file object. Apologies for the noise.