[Moin-user] Permission errors when editing an underlay page on win32
Thomas Waldmann
tw-public at gmx.de
Thu Nov 4 07:56:26 EST 2004
> Windows XP SP2
This might be a platform problem as it doesn't happen on Linux.
> OSError[Errno 13] Permission denied:
> 'd:\\mystuff\\webstuff\\wiki\\mywiki\\pages\\FortuneCookies'
This is the destination dir of a copypage() that copies a whole pagedir
from underlay directory to data directory.
> filesys.copytree = <function copytree at 0x007F0C30>, src =
> r'd:/mystuff/webstuff/wiki/underlay\pages\FortuneCookies', dst =
> r'd:\mystuff\webstuff\wiki\mywiki\pages\FortuneCookies'
Above you see src and target of MoinMoin.filesys.copytree.
The \ and / are a bit mixed, doesn't it matter on Win32?
> D:\Python23\Lib\shutil.py in
> copystat(src=r'd:/mystuff/webstuff/wiki/underlay\pages\FortuneCookies',
> dst=r'd:\mystuff\webstuff\wiki\mywiki\pages\FortuneCookies')
> 56 mode = stat.S_IMODE(st.st_mode)
> 57 if hasattr(os, 'utime'):
> 58 os.utime(dst, (st.st_atime, st.st_mtime))
> 59 if hasattr(os, 'chmod'):
> 60 os.chmod(dst, mode)
> global os = <module 'os' from 'D:\Python23\Lib\os.pyc'>, os.utime =
> <built-in function utime>, dst =
> r'd:\mystuff\webstuff\wiki\mywiki\pages\FortuneCookies', st = (16895,
> 0L, 3, 1, 0, 0, 0L, 1099510424, 1099510424, 1099502688), st.st_atime =
> 1099510424, st.st_mtime = 1099510424
>
> OSError: [Errno 13] Permission denied:
> 'd:\\mystuff\\webstuff\\wiki\\mywiki\\pages\\FortuneCookies'
> __doc__ = 'OS system call failed.'
It looks like the call in line 58 is failing on Win32.
What filesystem do you use? NTFS or FAT(32)?
If it is FAT32, could you try if it works on NTFS?
More information about the Moin-user
mailing list