title: Pickle - cPickle.UnpicklingError: invalid load key, '?'
body: <p>I was trying to load data by using this repository (uses some <strong>Python 2</strong> originally): <br><a href="https://github.com/hashbangCoder/Text-Summarization" rel="nofollow noreferrer">https://github.com/hashbangCoder/Text-Summarization</a></p>
  
  <p>However I got an pickling error (using <strong>Python 2.7</strong>, I tried also <strong>Python2.6</strong> with the same result):</p>
  
  <pre><code>&gt;&gt;&gt; import cPickle as pickle
  &gt;&gt;&gt; pickle.load(open('train.bin', 'rb'))
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  cPickle.UnpicklingError: invalid load key, '?'.
  </code></pre>
  
  <p>I tried also with <strong>Python3</strong> but without success (same for <code>_pickle</code>):</p>
  
  <pre><code>import pickle
  pickle.load(open(path, 'rb'))
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>---------------------------------------------------------------------------
  UnpicklingError                           Traceback (most recent call last)
  &lt;ipython-input-9-0129e43fa781&gt; in &lt;module&gt;()
  ----&gt; 1 data = pickle.load(open(path, 'rb'), encoding='utf8')
  
  UnpicklingError: invalid load key, '\xd9'.
  </code></pre>
  
  <p>There are plenty of questions out there dealing with this error, but I haven't found anything that solves my problem.</p>
  
  <p>I tried also on different systems and downloaded it twice to be sure that the file wasn't corrupted during the download. I'm also getting similar errors for the other files. <br>
  So I guess it may be some kind of version or encoding problem here?</p>
  
  <p>Any idea what I can try to load the file?</p>
  
  <p>Thanks in advance!          </p>