Matt B.
Matt B.

Reputation: 331

Permission denied for files to memory

I am looking to create a compressed numpy array using pictures from my file train2014 I'm getting an error where it says I don't have permission to access the file. Here is my code:

# dataset path
path = 'train2014/'
# load dataset
[src_images, tar_images] = load_images(path)

Here is the error provided:

PermissionError: [Errno 13] Permission denied: 'train2014/train2014'

Upvotes: 0

Views: 352

Answers (1)

Giorgos Myrianthous
Giorgos Myrianthous

Reputation: 39840

In some cases, you are not able to access the file while it is already open by another program.

If this is not the case, you simply need to grant your user sufficient permissions in order to be able to read (or write) to the file.

Upvotes: 1

Related Questions