title: Pickle File Import Error
body: <p>I have been trying to load a Python pickle file using the following Python function: </p>
  
  <pre><code>import os 
  import cPickle as pickle
  
  def load_var(var_name):
      fid = open(var_name + '.pkl', 'rb')
      data = pickle.load(fid)
      fid.close()
      return data
  </code></pre>
  
  <p>but I keep on running into the following error: </p>
  
  <pre><code>ImportError: No module named sysid_functions
  </code></pre>
  
  <p>It's complaining about a module named sysid that is called in the pickle.py file. If I import pickle instead of (cPickle as pickle), I get the following more detailed error output: </p>
  
  <pre><code> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1378, in load
      return Unpickler(file).load()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 858, in load
      dispatch[key](self)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1090, in load_global
      klass = self.find_class(module, name)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1124, in find_class
      __import__(module)
  ImportError: No module named sysid_functions
  </code></pre>
  
  <p>Does anybody have any idea what might be causing the error? </p>