[Moin-user] Pyton error while performing my first edit

Mark Levison levisonmark at hotmail.com
Wed Feb 26 12:44:06 EST 2003


Thanks for the help Juergen.  This just gets more confusing.

Frontpage?test reported I didn't have write access to editlog -- that's 
because it didn't exist.

So I created it and I made all my DarwinWiki directories writable.

Now ?test reports:
MoinMoin CGI Diagnosis
======================

Package "MoinMoin" sucessfully imported.

Release  1.0
Revision 1.159

Checking directories...
    data directory tests OK (set to 'C:\Moin\DarwinWiki\data')
    text directory tests OK (set to 'C:\Moin\DarwinWiki\data\text')
    user directory tests OK (set to 'C:\Moin\DarwinWiki\data\user')
    backup directory tests OK (set to 'C:\Moin\DarwinWiki\data\backup')


Traceback (innermost last):
  File "C:\Moin\DarwinWiki\moin.cgi", line 22, in ?
    cgimain.test()
   File "C:\Moin\Lib\site-packages\MoinMoin\cgimain.py", line 66, in test
    diff = util.popen(config.external_diff + " --version", "r")
WindowsError: [Errno 5] Access is denied: 'C:\\WINDOWS\\system32\\cmd.exe /c 
diff --version'

Which begs the question do I need a diff program (which one cygwin?) in my 
PATH? (This is not documented on the installs page)

But if I try edit the page I get the same permissions problem as before (see 
below for a fresh trace).

What to do next?

Thanks for the help so far
Mark


OSError: [Errno 13] Permission denied Python 2.2.2
C:\Python22\python.exe

A problem occurred while running a Python script. Here is the sequence of 
function calls leading up to the error, with the most recent (innermost) 
call first. The exception attributes are:
      __doc__ = 'OS system call failed.'
      __getitem__ = <bound method OSError.__getitem__ of <exceptions.OSError 
instance at 0x0071B558>>
      __init__ = <bound method OSError.__init__ of <exceptions.OSError 
instance at 0x0071B558>>
      __module__ = 'exceptions'
      __str__ = <bound method OSError.__str__ of <exceptions.OSError 
instance at 0x0071B558>>
      args = (13, 'Permission denied')
      errno = 13
      filename = None
      strerror = 'Permission denied'

C:\Moin\Lib\site-packages\MoinMoin\PageEditor.py in 
_write_file(self=<MoinMoin.PageEditor.PageEditor instance at 0x0071B5B0>, 
text='#pragma section-numbers off\n\nThis is a test\n... search or browse 
the database in various ways\n')
  360                 and not is_deprecated:
  361             os.rename(page_filename, os.path.join(config.backup_dir,
  362                 wikiutil.quoteFilename(self.page_name) + '.' + 
str(os.path.getmtime(page_filename))))
       global wikiutil = <module 'MoinMoin.wikiutil' from 
'C:\Moin\Lib\site-packages\MoinMoin\wikiutil.pyc'>, global quoteFilename = 
undefined, self = <MoinMoin.PageEditor.PageEditor instance at 0x0071B5B0>, 
global page_name = undefined, global str = undefined, global os = <module 
'os' from 'C:\Python22\lib\os.pyc'>, global path = undefined, global 
getmtime = undefined, page_filename = 'data\\text\\FrontPage'
  363         else:
  364             if os.name == 'nt':

C:\Moin\Lib\site-packages\MoinMoin\PageEditor.py in 
save_text(self=<MoinMoin.PageEditor.PageEditor instance at 0x0071B5B0>, 
request=<MoinMoin.request.Request instance at 0x00696EC8>, newtext='#pragma 
section-numbers off\n\nThis is a test\n... search or browse the database in 
various ways\n', datestamp='1015299366', **kw={'comment': '', 'notify': 0, 
'stripspaces': 0})
  429
  430             # write the page file
  431             mtime = self._write_file(newtext)
       mtime = undefined, self = <MoinMoin.PageEditor.PageEditor instance at 
0x0071B5B0>, global _write_file = undefined, newtext = '#pragma 
section-numbers off\n\nThis is a test\n... search or browse the database in 
various ways\n'
  432
  433             # write the editlog entry

C:\Moin\Lib\site-packages\MoinMoin\wikiaction.py in 
do_savepage(pagename='FrontPage', request=<MoinMoin.request.Request instance 
at 0x00696EC8>)
  437     else:
  438         savemsg = pg.save_text(request, savetext, datestamp,
  439             stripspaces=rstrip, notify=notify, comment=comment)
       global stripspaces = undefined, rstrip = 0, notify = 0, comment = ''
  440         pg.send_page(request, msg=savemsg)
  441

C:\Moin\Lib\site-packages\MoinMoin\cgimain.py in run(properties={})
  233         else:
  234             try:
  235                 cgitb.handler()
       cgitb = <module 'MoinMoin.support.cgitb' from 
'C:\Moin\Lib\site-packages\MoinMoin\support\cgitb.pyc'>, handler = <function 
do_savepage at 0x0066C390>
  236             except:
  237                 apply(cgi.print_exception, saved_exc)



_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.  
http://join.msn.com/?page=features/junkmail





More information about the Moin-user mailing list