Skip to main content
7 events
when toggle format what by license comment
Sep 5, 2023 at 21:12 comment added runnerX Great answer although I'd suggest using with open instead of f.close() so you don't have a memory leak.
Aug 5, 2019 at 20:08 comment added Giorgio Tempesta In my case it worked adding those imports import sys; import pickle; import gzip; and using pickle instead of cPickle – I'm using Python 3.6.7 on macOs Mojave
Nov 20, 2016 at 5:31 vote accept user785099
Nov 20, 2016 at 5:31 comment added user785099 It works, do not know why it had error message previously. Thanks a lot.
Nov 19, 2016 at 20:27 comment added sygi I have checked and it works on my system, with both pickle and cPickle and both python 2 and 3. Are you sure you have the same file (md5 b39289ebd4f8755817b1352c8488b486)?
Nov 19, 2016 at 20:13 comment added user785099 Hi sygi, thanks for the suggestion. However, I got error message as shown in the updated post. The only thing being different with yours is that I use pickle. Looks like it did not give me error during loading the data.
Nov 19, 2016 at 13:22 history answered sygi CC BY-SA 3.0