[Numpy-discussion] cPickle.loads and Numeric

Pierre Haessig pierre.haessig at crans.org
Tue Feb 25 03:39:15 EST 2014


Le 25/02/2014 09:19, Chris a écrit :
> I have some old code that uses cPickle.loads which used to work, but now
> reports an error in loading the module Numeric. Since Numeric has been
> replaced by numpy, this makes sense, but, how can I get cPickle.loads to
> work? I tested the code again on an older machine and it works fine
> there, but, I'd like to get it working again on a modern set-up as well.
> Thanks!
Do you have big archives of pickled arrays ?

I have the feeling that your question is related to this SO question:
From the accepted SO answer, I'm getting that it is not easy to manually
edit the pickled files (except in the case of the ASCII pickle protocol)

So if you still have an old setup that can open the pickled arrays, I
would suggest to use it to convert it to a format that is more
appropriate to long term archiving. Maybe a simple text format (CSV ?)
or HDF5 depending on the volume and the complexity (but I'm not a
specialist data archiving)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pierre_haessig.vcf
Type: text/x-vcard
Size: 329 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140225/16a6fdf9/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 880 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140225/16a6fdf9/attachment.sig>

More information about the NumPy-Discussion mailing list