So I was trying to run some code on my system but It was taking to long So I pickled my session using dill.dump_session('notebook_env.db')
. Then I uploaded the notebook_env.db into my google drive and tried to load it and use dill.load_session('/content/drive/MyDrive/notebook_env.db')
To get the data into the google drive.
This is my code
from google.colab import drive
drive.mount('/content/drive')
import dill
dill.load_session('/content/drive/MyDrive/notebook_env.db')
It mounts the data ok and the path is correct but I keep getting this error
AttributeError Traceback (most recent call last)
<ipython-input-4-089630ac1742> in <module>()
1 import dill
----> 2 dill.load_session('/content/drive/MyDrive/notebook_env.db')
2 frames
/usr/local/lib/python3.7/dist-packages/dill/_dill.py in find_class(self, module, name)
634 return type(None) #XXX: special case: NoneType missing
635 if module == 'dill.dill': module = 'dill._dill'
--> 636 return StockUnpickler.find_class(self, module, name)
637
638 def __init__(self, *args, **kwds):
AttributeError: Can't get attribute '_picklable_class_constructor' on <module 'matplotlib.cbook' from '/usr/local/lib/python3.7/dist-packages/matplotlib/cbook/__init__.py'>
Is there anyway to fix this or will I not be able to load in my file?