title: projects.set_current() returns EOFError: Ran out of input
body: <p>I have a brightway project with a version of ecoinvent, biosphere3, and a foreground database. Usually,I can load this project without any problem with projects.set_current('myproject') but <strong>from time to time</strong> I get this error message:</p>
  <pre><code>
    File &quot;&lt;ipython-input-24-57b3d237167c&gt;&quot;, line 1, in &lt;module&gt;
      bw.projects.set_current('Microalgae_2nd')
  
    File &quot;C:\Users\GF20PZ\Miniconda3\envs\new_ab\lib\site-packages\bw2data\project.py&quot;, line 144, in set_current
      self._reset_meta()
  
    File &quot;C:\Users\GF20PZ\Miniconda3\envs\new_ab\lib\site-packages\bw2data\project.py&quot;, line 169, in _reset_meta
      obj.__init__()
  
    File &quot;C:\Users\GF20PZ\Miniconda3\envs\new_ab\lib\site-packages\bw2data\serialization.py&quot;, line 122, in __init__
      self.load()
  
    File &quot;C:\Users\GF20PZ\Miniconda3\envs\new_ab\lib\site-packages\bw2data\serialization.py&quot;, line 127, in load
      self.data = self.deserialize()
  
    File &quot;C:\Users\GF20PZ\Miniconda3\envs\new_ab\lib\site-packages\bw2data\serialization.py&quot;, line 240, in deserialize
      return self.unpack(pickle.load(open(self.filepath, &quot;rb&quot;)))
  
  EOFError: Ran out of input 
  </code></pre>
  <p>And I can't access the project anymore and have to use a backup to start again until this error shows up again after having used the project a few times.
  I can still see the project when I list them with  <code>bw.projects </code>.</p>
  <p>Does anyone have an idea of where this comes from and why it only happens from time to time (still quite annoying though)?</p>
  <p><strong>EDIT:</strong>
  Using <code>%debug</code> after the error message and  <code>print(self.filepath) </code>in jupyter notebook returns:
  <code>C:\Users\GF20PZ\AppData\Local\pylca\Brightway3\Microalgae_2nd.6981ad8145d95aa4bc933b7aa86097ee\setups.pickle </code></p>
  <p>My code updates the calculation setups in the project but I sometimes have to stop the kernel while it's running (because I forgot something or so)
  My guess is that the calculation setups get somehow corrupted if I do this...Could it be the case?
  I should check if this happens only when I do so.</p>
  <p>I don't need to recover my project now as I have a backup but I would like to know how this issue can be avoided.</p>
  <p>Thank you very much,</p>
  <p>Pierre</p>