[Moin-user] Problems installing MoinMoin 1.5beta1: Bareword ....
Johannes Kilian
jok at vitronic.com
Wed Nov 2 01:19:07 EST 2005
Hi there,
I'm just playing around with MoinMoin 1.5beta1. (I've installed MoinMoin
already in earlier versions - which worked already correctly, but I
haven't used it for quite a while ...)
I performed a new installation.
Now trying to start the wiki, it fails producing the following
error-message in my error.log file of Apache Web-Server
---------
[Wed Nov 02 10:11:04 2005] [error] String found where operator expected
at D:/Web/Wiki/Moin/HowtoWiki/moin.cgi line 8, near ""\n MoinMoin -
CGI Driver Script\n\n @copyright: 2000-2005 by J\xfcrgen Hermann
<jh at web.de>\n @license: GNU GPL, see COPYING for details.\n""\n
(Might be a runaway multi-line "" string starting on line 3)\nsyntax
error at D:/Web/Wiki/Moin/HowtoWiki/moin.cgi line 8, near ""\n
MoinMoin - CGI Driver Script\n\n @copyright: 2000-2005 by J\xfcrgen
Hermann <jh at web.de>\n @license: GNU GPL, see COPYING for
details.\n""\nString found where operator expected at
D:/Web/Wiki/Moin/HowtoWiki/moin.cgi line 8, near ""\n MoinMoin - CGI
Driver Script\n\n @copyright: 2000-2005 by J\xfcrgen Hermann
<jh at web.de>\n @license: GNU GPL, see COPYING for
details.\n""""\nBareword found where operator expected at
D:/Web/Wiki/Moin/HowtoWiki/moin.cgi line 12, near """\n\n# System path
configuration\n\nimport"\nBareword found where operator expected at
D:/Web/Wiki/Moin/HowtoWiki/moin.cgi line 30, near
"hotshotProfiler"\nBareword found where operator expected at
D:/Web/Wiki/Moin/HowtoWiki/moin.cgi line 37, near ")\n
prof"\nBareword found where operator expected at
D:/Web/Wiki/Moin/HowtoWiki/moin.cgi line 39, near ")\n\nfrom"\nBareword
found where operator expected at D:/Web/Wiki/Moin/HowtoWiki/moin.cgi
line 41, near ")\nrequest"\n
---------
The corresponding moin.cgi file looks like (almost unchanged from
original - only adapted the shebang and the Path of the directory where
wikiconfig.py is located):
*************************************
#!C:/programme/python/python
# -*- coding: iso-8859-1 -*-
"""
MoinMoin - CGI Driver Script
@copyright: 2000-2005 by Jürgen Hermann <jh at web.de>
@license: GNU GPL, see COPYING for details.
"""
# System path configuration
import sys
# Path of the directory where wikiconfig.py is located.
# YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
sys.path.insert(0, 'D:/Web/Wiki/Moin/HowtoWiki/wikiconfig.py')
# Path to MoinMoin package, needed if you installed with --prefix=PREFIX
# or if you did not use setup.py.
## sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
# Path of the directory where farmconfig.py is located (if different).
## sys.path.insert(0, '/path/to/farmconfig')
# Debug mode - show detailed error reports
## import os
## os.environ['MOIN_DEBUG'] = '1'
# This is used to profile MoinMoin (default disabled)
hotshotProfiler = 0
# ---------------------------------------------------------------------
if hotshotProfiler:
import hotshot
prof = hotshot.Profile("moin.prof")
prof.start()
from MoinMoin.request import RequestCGI
request = RequestCGI()
request.run()
if hotshotProfiler:
prof.close()
*************************************
Commenting out the "problematic line" just "moves" the error to one of
the next non-comment lines. Some lines work without errors ...
import sys
sys.path.insert(0, 'D:/Web/Wiki/Moin/HowtoWiki/wikiconfig.py')
But the most important ones
from MoinMoin.request import RequestCGI
request = RequestCGI()
request.run()
show the same error ....
Running:
WinXP SP2
ActivePython 2.4 Build 243 (ActiveState Corp.)
MoinMoin 1.5beta1
Apache 2.0.54
Any help welcome
Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jok.vcf
Type: text/x-vcard
Size: 352 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/moin-user/attachments/20051102/22545804/attachment.vcf>
More information about the Moin-user
mailing list