<div dir="ltr"><div>Just to echo this sentiment a bit. I seem to recall reading somewhere that pickles are not intended to be long-term archives as there is no guarantee that a pickle made in one version of python would work in another version, much less between different versions of the same (or similar) packages.<br>

<br></div>Ben Root<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 25, 2014 at 3:39 AM, Pierre Haessig <span dir="ltr"><<a href="mailto:pierre.haessig@crans.org" target="_blank">pierre.haessig@crans.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Le 25/02/2014 09:19, Chris a écrit :<br>
<div class="">> I have some old code that uses cPickle.loads which used to work, but now<br>
> reports an error in loading the module Numeric. Since Numeric has been<br>
> replaced by numpy, this makes sense, but, how can I get cPickle.loads to<br>
> work? I tested the code again on an older machine and it works fine<br>
> there, but, I'd like to get it working again on a modern set-up as well.<br>
><br>
> Thanks!<br>
><br>
</div>Do you have big archives of pickled arrays ?<br>
<br>
I have the feeling that your question is related to this SO question:<br>
<a href="http://stackoverflow.com/questions/2121874/python-pickling-after-changing-a-modules-directory" target="_blank">http://stackoverflow.com/questions/2121874/python-pickling-after-changing-a-modules-directory</a><br>


>From the accepted SO answer, I'm getting that it is not easy to manually<br>
edit the pickled files (except in the case of the ASCII pickle protocol)<br>
<br>
So if you still have an old setup that can open the pickled arrays, I<br>
would suggest to use it to convert it to a format that is more<br>
appropriate to long term archiving. Maybe a simple text format (CSV ?)<br>
or HDF5 depending on the volume and the complexity (but I'm not a<br>
specialist data archiving)<br>
<br>
best,<br>
Pierre<br>
<br>_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br></blockquote></div><br></div>