Loading a pickeld file using pickle.load() fails after some successful attempts
<p>I saved a np.array using </p>

<pre><code>    pickle.dump(np.array(freq_timeseries), open(
"fname.p","wb")) 
</code></pre>

<p>This works fine and after that I can access this file by using <code>pickle.load()</code>. After some time (meaning after some successful <code>pickle.load()</code> uses) the attempt to load this file using <code>pickle.load()</code> fails with an unpickling error.</p>

<p>Previously it failed with <code>'invalid load key 3'</code>. But as of late there is no specific error message anymore but simply the <code>'Unpickling error'</code>. I created the file anew and after that it works for some time but fails again after some <code>pickle.loads()</code>. </p>

<p>I use the same machine with the same version of python. I am very confused and think I misunderstand how to use pickle. </p>

<p>Best regards,</p>

<p>Phil</p>