title: Error on deserialization with pickle python
body: <p>I am new to python. I have a file <code>data.pkl</code>. What I would like to do is get the data from the file. I looked at <a href="http://docs.python.org/library/pickle.html" rel="nofollow">http://docs.python.org/library/pickle.html</a>, 11.1.7 example and tried exactly that.
  My code looks like this: </p>
  
  <pre><code>import pprint, pickle
  
  pkl_file = open('data.pkl', 'rb')
  
  data1 = pickle.load(pkl_file)
  pprint.pprint(data1)
  
  pkl_file.close()
  </code></pre>
  
  <p>But it is giving me error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/sadiksha/workspace/python/test.py", line 5, in &lt;module&gt;
      data1 = pickle.load(pkl_file)
    File "/usr/lib/python2.7/pickle.py", line 1378, in load
      return Unpickler(file).load()
    File "/usr/lib/python2.7/pickle.py", line 858, in load
      dispatch[key](self)
    File "/usr/lib/python2.7/pickle.py", line 966, in load_string
      raise ValueError, "insecure string pickle"
  </code></pre>
  
  <p>Can anyone please tell me what am I doing wrong here?</p>