I'm trying to do a very simple thing: to load a dataset from the Huggingface library (see example code here) on my Mac:
from datasets import load_dataset
raw_datasets = load_dataset("glue", "mrpc")
I'm getting the following error:
PermissionError: [Errno 13] Permission denied: '/Users/username/.cache/huggingface/datasets/downloads/6d9bc094a0588d875caee4e51df39ab5d6b6316bf60695294827b02601d421a5.759f3e257a3fad0984d9f8ba9a26479d341795eb50fa64e4c1de40f1fc421313.py.lock'
I've just spent an hour googling solutions for this, but so far nothing has worked. Can anyone help?
Thanks in advance!
OK, I managed to solve it by manually changing the permissions of the right folders on my Mac:
Not sure why this worked and the 'chmod 777' command didn't, but I'm glad it did. Thank you @Cuartero for pointing me in the right direction!