[Moin-user] Config error - default editor

Tom Chance tom.chance at bioregional.com
Mon Dec 18 04:53:24 EST 2006


Ahoy,

I've just installed the latest version of Moin and it's running nicely
on Windows + MySQL + Apache. But I keep getting the following error when
setting this option, as suggested in the help section:

Option:
editor_default = 'gui'

Error:
SyntaxError: invalid syntax (wikiconfig.py, line 142)

The full trace follows. How can I fix this?

Kind regards,
Tom Chance
Communications & IT Officer
BioRegional Development Group


A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.

   1.

      c:\Python24\Lib\site-packages\MoinMoin\request.py in __init__
(self=<MoinMoin.request.RequestCGI object>, properties={})
         1. 1380
         2. 1381 self._setup_vars_from_std_env(os.environ)
         3. 1382 RequestBase.__init__(self, properties)
         4. 1383
         5. 1384 except Exception, err:
          * global RequestBase = <class 'MoinMoin.request.RequestBase'>
          * RequestBase.__init__ = <unbound method RequestBase.__init__>
          * self = <MoinMoin.request.RequestCGI object>
          * properties = {}
   2.

      c:\Python24\Lib\site-packages\MoinMoin\request.py in __init__
(self=<MoinMoin.request.RequestCGI object>, properties={})
         1. 139 self.__dict__.update(properties)
         2. 140 try:
         3. 141 self._load_multi_cfg()
         4. 142 except error.NoConfigMatchedError:
         5. 143 self.makeForbidden(404, 'No wiki configuration matching
the URL found!\r\n')
          * self = <MoinMoin.request.RequestCGI object>
          * self._load_multi_cfg = <bound method
RequestCGI._load_multi_cfg of <MoinMoin.request.RequestCGI object>>
   3.

      c:\Python24\Lib\site-packages\MoinMoin\request.py in
_load_multi_cfg (self=<MoinMoin.request.RequestCGI object>)
         1. 296 if not hasattr(self, 'cfg'):
         2. 297 self.clock.start('load_multi_cfg')
         3. 298 self.cfg = multiconfig.getConfig(self.url)
         4. 299 self.clock.stop('load_multi_cfg')
         5. 300
          * self = <MoinMoin.request.RequestCGI object>
          * self.cfg undefined
          * global multiconfig = <module 'MoinMoin.multiconfig' from
'C:\Python24\lib\site-packages\MoinMoin\multiconfig.pyc'>
          * multiconfig.getConfig = <function getConfig>
          * self.url = 'bio01:81/policy'
   4.

      c:\Python24\Lib\site-packages\MoinMoin\multiconfig.py in getConfig
(url='bio01:81/policy')
         1. 160 config = _config_cache[configName]
         2. 161 except KeyError:
         3. 162 config = _makeConfig(configName)
         4. 163 config = _config_cache.setdefault(configName, config)
         5. 164 return config
          * config undefined
          * global _makeConfig = <function _makeConfig>
          * configName = 'wikiconfig'
   5.

      c:\Python24\Lib\site-packages\MoinMoin\multiconfig.py in
_makeConfig (name='wikiconfig')
         1. 95 global _farmconfig_mtime
         2. 96 try:
         3. 97 module, mtime = _importConfigModule(name)
         4. 98 configClass = getattr(module, 'Config')
         5. 99 cfg = configClass(name)
          * module undefined
          * mtime undefined
          * global _importConfigModule = <function _importConfigModule>
          * name = 'wikiconfig'
   6.

      c:\Python24\Lib\site-packages\MoinMoin\multiconfig.py in
_importConfigModule (name='wikiconfig')
         1. 45 except Exception, err:
         2. 46 msg = '%s: %s' % (err.__class__.__name__, str(err))
         3. 47 raise error.ConfigurationError(msg)
         4. 48 return module, mtime
         5. 49
          * global error = <module 'MoinMoin.error' from
'C:\Python24\lib\site-packages\MoinMoin\error.pyc'>
          * error.ConfigurationError = <class
MoinMoin.error.ConfigurationError>
          * msg = 'SyntaxError: invalid syntax (wikiconfig.py, line
142)'

ConfigurationError

SyntaxError: invalid syntax (wikiconfig.py, line 142)

    * exceptions = <bound method ConfigurationError.exceptions of
<MoinMoin.error.ConfigurationError instance>>
    * innerException = (<class exceptions.SyntaxError>,
<exceptions.SyntaxError instance>, <traceback object>)
    * message = 'SyntaxError: invalid syntax (wikiconfig.py, line 142)'

Traceback

A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.

   1.

      c:\Python24\Lib\site-packages\MoinMoin\multiconfig.py in
_importConfigModule (name='wikiconfig')
         1. 29 # FIXME if someone calls his config module stats.py, it
gets confused
         2. 30 # with MoinMoin.stats built-in statistics module and
fails.
         3. 31 module = __import__(name, globals(), {})
         4. 32 mtime = os.path.getmtime(module.__file__)
         5. 33 except ImportError:
          * module undefined
          * builtin __import__ = <built-in function __import__>
          * name = 'wikiconfig'
          * builtin globals = <built-in function globals>

SyntaxError

invalid syntax (wikiconfig.py, line 142)

    * args = ('invalid syntax', (r'E:\moin-1.5\intranet\wikiconfig.py',
142, 1, "\teditor_default = 'gui'\n"))
    * filename = r'E:\moin-1.5\intranet\wikiconfig.py'
    * lineno = 142
    * msg = 'invalid syntax'
    * offset = 1
    * print_file_and_line = None
    * text = "\teditor_default = 'gui'\n"

System Details

    * Date: Mon, 18 Dec 2006 09:46:18 +0000
    * Platform: win32 (nt)
    * Python: Python 2.4.3 (C:\Python24\python.exe)
    * MoinMoin: Release 1.5.6 (release)


-- 
BioRegional Development Group, BedZED Centre, 24 Helios Road,
Wallington, SM6 7BZ, UK
t. 020 8404 4880 direct. 020 8404 4884
w. www.bioregional.com  
BioRegional - solutions for sustainability  




More information about the Moin-user mailing list