please help with python program

C

chedderslam

I am trying to use Album Cover Art Downloader, software someone
recommended to me. It works fine on my work computer, but not at
home.

When I try to save the cover art, I get this error:
Traceback (most recent call last):

File "lib/albumart\albumart_dialog.py", line 623, in
setCoverForItems

File "lib/albumart\albumart.py", line 194, in setCover

File "lib/albumart\albumart_target_windows.py", line 56, in setCover

File "C:\Python24\lib\site-packages\PIL\Image.py", line 1399, in
save

IOError: [Errno 13] Permission denied: u'D:/My Music/Ani DiFranco/
Canon/Disc 1\\folder.jpg'

I have removed the read-only attribute on the folder, and added
"Everyone" with full control for security. Not sure what else to do.
I would really like to get this working so any help would be
appreciated.

Thanks!
 
S

Steven D'Aprano

IOError: [Errno 13] Permission denied: u'D:/My Music/Ani DiFranco/
Canon/Disc 1\\folder.jpg'

I have removed the read-only attribute on the folder, and added
"Everyone" with full control for security. Not sure what else to do. I
would really like to get this working so any help would be appreciated.

What about permissions on the file itself?
 
T

Tim Golden

chedderslam said:
IOError: [Errno 13] Permission denied: u'D:/My Music/Ani DiFranco/
Canon/Disc 1\\folder.jpg'

I have removed the read-only attribute on the folder, and added
"Everyone" with full control for security. Not sure what else to do.
I would really like to get this working so any help would be
appreciated.

FWIW, read-only on a folder has no appreciable effect. It's generally
used by the Windows shell to indicate that the folder is "special"
(eg My Documents, My Music etc). It doesn't stop you writing files
in that directory.

Not sure how much Windows-fu you have, so apols if any of
this is teaching my grandmother to suck eggs...

I'm not familiar with the app you mention but make sure that the
user it's running under (which may be your own) has permissions
to write the file you're trying to save in the location in
question. Ie, as that user, do this in Python:

open (u'D:/My Music/Ani DiFranco/Canon/Disc 1\\folder.jpg', "w")

to see if you get the same result. If you do, access the [Security]
tab on the folder itself, select [Advanced] and then the
[Effective Permissions] tab to make sure what the permissions
really are. As a rule, "My xxx" folders tend to have more
restrictive permissions as they are tied to a specific user.
This only matters, obviously, if the app is not running as
your own user.

TJG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,291
Messages
2,571,453
Members
48,133
Latest member
364784322064

Latest Threads

Top