Closed jamesjjcondon closed 3 years ago
Saving my exam_list.pkl with the default protocol kwarg (4) makes no difference. Any ideas?
Thanks for the report @jamesjjcondon. I can reproduce this when saving our sample_data pickle file with protocol version 5. I guess this is expected as GMIC supports Python 3.6, and protocol version 5 was only introduced in Python 3.8. However, when saving the pickle file with protocol version 4 it works fine. Could you double check if you are saving with protocol=4 argument? If that doesn't work, please let me know how your environment looks like so I can try to reproduce it. Also, lower protocol versions (0-3) should be compatible with very old Python releases, although at the cost of performance. I tried protocol versions 0 and 3 and it worked fine too.
cc @chledowski @bstadnick
Yep, sorry, #path_fail, it's cropping...
No problem, this is very useful. We will include information about the pickle protocol version (probably version 3 is a safe bet... will discuss) in the README.
Maybe upgrade to pickle5?
I'll try saving differently...