python astonishing IOError on windows creating files - Errno 13 Permission -


i have run python script on windows too, , began problems.

here i'm scraping html locally saved files, , saving .csv versions data want. ran on ubuntu , goes +100k files no problems. when go on windows, says:

ioerror: [errno 13] permission denied

it not permissions problems, i've rechecked it, , run under 'administration' powers, , makes no difference.

it breaks on line open file:

with open(of, 'w') output: ...

i've tried create same first file of 100k python console , new blank stupid script same directory code, , works...

so, seems doable.

then i've tried output = open(of, 'w') instead of above code nothing.

the weird thing creates directory same name file, , breaks ioerror.

i've started thinking csv thing..., naaaeehh, apart other tries didn't helped me, interesting stuff following code:

with open(of+.txt, 'w') output: ...

it happens astonishing thing creates directory ending on .csv , file ending in .csv.txt right data!

what shit!

changing open mode file 'w+', 'wb', didn't make difference either.

any ideas? :d

you can permission denied if file opened in application.

follow link see if other process using it: http://www.techsupportalert.com/content/how-find-out-which-windows-process-using-file.htm

otherwise, try open file read instead of write see if allows access @ all.

-brian


Comments