title: "ModuleNotFoundError: No module named 'data'" when unpickling object
body: <p>I'm trying to unpickle a certain object I saved on another computer. The code</p>
  <pre><code>with path.open('rb') as f:
      obj = pickle.load(f)
  </code></pre>
  <p>is giving me an error:</p>
  <pre><code>Exception has occurred: ModuleNotFoundError
  No module named 'data'
  </code></pre>
  <p>I have the <code>data</code> module on my new computer but the directory structure of the project is different, so while the module was imported as <code>import data</code> while computing and pickling the object, it's now imported as <code>import project.data</code>. I've tried using</p>
  <pre><code>import project.data as data
  </code></pre>
  <p>at the start of my code but I am still getting the same error. How do I unpickle this object, ideally without having to fully restructure my project again?</p>