Re: shutil: permission denied errors on windows

2006-11-07 Thread Antoine De Groote
Thanks for your replies, guys. I found the problem now. Actually the problem arised just before the code that I had in my original post. Here are the 2 lines that mess things up. It's those that are commented out. If not commented, the errors were raised. Clearly there is an error in the secon

Re: shutil: permission denied errors on windows

2006-11-07 Thread Antoine De Groote
Yes, that's exactly what was the case... But see my other post, that straightens things up... Thanks! antoine John Henry wrote: > Okay, it's always good that strange things are repeatable and happens > with simple scripts. > > Are you saying "a" is a folder? So, the failure is only with copyi

Re: shutil: permission denied errors on windows

2006-11-07 Thread John Henry
Okay, it's always good that strange things are repeatable and happens with simple scripts. Are you saying "a" is a folder? So, the failure is only with copying folder? Not individual file? Antoine De Groote wrote: > Yes it's strange, I never had the problem before, either. It seems now > to b

Re: shutil: permission denied errors on windows

2006-11-07 Thread [EMAIL PROTECTED]
Antoine De Groote schrieb: > Yes it's strange, I never had the problem before, either. It seems now > to be only the case for folders. A very simple > > shutil.copy('a', 'b') > > already fails with the error message. > > I reinstalled Python, but that didn't change anything... > > Regards, > anto

Re: shutil: permission denied errors on windows

2006-11-07 Thread Antoine De Groote
Yes it's strange, I never had the problem before, either. It seems now to be only the case for folders. A very simple shutil.copy('a', 'b') already fails with the error message. I reinstalled Python, but that didn't change anything... Regards, antoine John Henry wrote: > I use the copy functi

Re: shutil: permission denied errors on windows

2006-11-06 Thread John Henry
I use the copy function a lot and never have problem. I suggest that you write a no brainer standalone test code and if it still fails there, then you have a problem with your installation. Antoine De Groote wrote: > Google tells quite some things about it, but none of them are satisfactory. > >

shutil: permission denied errors on windows

2006-11-06 Thread Antoine De Groote
Google tells quite some things about it, but none of them are satisfactory. I'm on Windows, and shutil operations (e.g. move, copy) throw [Errno 13] Permission denied all the time, for the source files. It seems that this is the case for all my files. But what I don't understand is that yesterd