Error: Can't compile the student's code. [Errno 13] Permission denied:

Hi team , model is compiling and generating graphs but getting

Can’t compile the student’s code. [Errno 13] Permission denied: ‘/tmp/cats-v-dogs/training/cats/’


os.makedirs( validation_cats_dir, 777 ) to make folders

shutil.copy2(SOURCE+x, TESTING) to copy images

os.chmod(x, stat.S_IRWXO) to set permission to all files

Hi @praj,

You don’t need to add more than:


Error is probably happening because you’re trying to change permissions in folder.