title: How to open a pickled file with dill where the objects are not findable anymore?
body: <p>I saved a bunch of stuff in one single pickle file with dill and some of the data are objects. Unfortunately, I didn't realize that if I changed my code structure e.g., heavy refactoring that dill wouldn't be able to find my code anymore for loading the objects - or at least that is my guess from the print statement:</p>
  <pre><code>------- Main Resume from Checkpoint  --------
  Traceback (most recent call last):
    File &quot;/Users/brandomiranda/opt/anaconda3/envs/meta_learning/lib/python3.9/site-packages/torch/serialization.py&quot;, line 607, in load
      return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
    File &quot;/Users/brandomiranda/opt/anaconda3/envs/meta_learning/lib/python3.9/site-packages/torch/serialization.py&quot;, line 882, in _load
      result = unpickler.load()
    File &quot;/Users/brandomiranda/opt/anaconda3/envs/meta_learning/lib/python3.9/site-packages/torch/serialization.py&quot;, line 875, in find_class
      return super().find_class(mod_name, name)
  ModuleNotFoundError: No module named 'meta_learning'
  python-BaseException
  </code></pre>
  <p>however, it's ok if it cannot find them. There is other data there that I still need or can use to restore everything.</p>
  <p>How can I &quot;force&quot; dill to open things even if it cannot find the code? Or I can point to it to the paths for the locations of the new code if that is what it needs.</p>