Hello,

When I try to store my model using keras, tensorflow or pytorch, I get a weird error message telling me I don't have the permission to write in the desired folder. I am using straight lines of code from the Documentation:

model_key = "model"
file_name = qb.ObjectStore.GetFilePath(model_key)
joblib.dump(model, file_name)

 

This is the error that I am getting:

 

---------------------------------------------------------------------------
PermissionError                           Traceback (most recent call last)
Cell In[31], line 1
----> 1 joblib.dump(model, file_name)

File /opt/miniconda3/lib/python3.8/site-packages/joblib/numpy_pickle.py:552, in dump(value, filename, compress, protocol, cache_size)
    550         NumpyPickler(f, protocol=protocol).dump(value)
    551 elif is_filename:
--> 552     with open(filename, 'wb') as f:
    553         NumpyPickler(f, protocol=protocol).dump(value)
    554 else:

PermissionError: [Errno 13] Permission denied: '/home/jovyan/work/storage/model'

 

Thank you very much for your help!

Maxime