Attachment 'configtraceback.html'

Download

--> -->

ConfigurationError

Could not find required "Config" class in "stats.py". This might happen if you are trying to use a pre 1.3 configuration file, or made a syntax or spelling error.

System path is /usr/local/var/moin /var/www/cgi-bin /usr/local/lib/python24.zip /usr/local/lib/python2.4 /usr/local/lib/python2.4/plat-linux2 /usr/local/lib/python2.4/lib-tk /usr/local/lib/python2.4/lib-dynload /usr/local/lib/python2.4/site-packages.

Please check your configuration file. As an example for correct syntax, use the wikiconfig.py file from the distribution.

If you want to report a bug, please save this page and attach it to your bug report.

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. /usr/local/lib/python2.4/site-packages/MoinMoin/request.py in __init__ (self=<MoinMoin.request.RequestCGI object>, properties={})

    1. 1374
    2. 1375 self._setup_vars_from_std_env(os.environ)
    3. 1376 RequestBase.__init__(self, properties)
    4. 1377
    5. 1378 except Exception, err:
    • global RequestBase = <class 'MoinMoin.request.RequestBase'>
    • RequestBase.__init__ = <unbound method RequestBase.__init__>
    • self = <MoinMoin.request.RequestCGI object>
    • properties = {}
  2. /usr/local/lib/python2.4/site-packages/MoinMoin/request.py in __init__ (self=<MoinMoin.request.RequestCGI object>, properties={})

    1. 111 # order is important here!
    2. 112 self.__dict__.update(properties)
    3. 113 self._load_multi_cfg()
    4. 114
    5. 115 self.isSpiderAgent = self.check_spider()
    • self = <MoinMoin.request.RequestCGI object>
    • self._load_multi_cfg = <bound method RequestCGI._load_multi_cfg of <MoinMoin.request.RequestCGI object>>
  3. /usr/local/lib/python2.4/site-packages/MoinMoin/request.py in _load_multi_cfg (self=<MoinMoin.request.RequestCGI object>)

    1. 259 if not hasattr(self, 'cfg'):
    2. 260 from MoinMoin import multiconfig
    3. 261 self.cfg = multiconfig.getConfig(self.url)
    4. 262
    5. 263 def setAcceptedCharsets(self, accept_charset):
    • self = <MoinMoin.request.RequestCGI object>
    • self.cfg undefined
    • multiconfig = <module 'MoinMoin.multiconfig' from '/usr/local/...python2.4/site-packages/MoinMoin/multiconfig.py'>
    • multiconfig.getConfig = <function getConfig>
    • self.url = 'imaging/stats'
  4. /usr/local/lib/python2.4/site-packages/MoinMoin/multiconfig.py in getConfig (url='imaging/stats')

    1. 154 config = _config_cache[configName]
    2. 155 except KeyError:
    3. 156 config = _makeConfig(configName)
    4. 157 config = _config_cache.setdefault(configName, config)
    5. 158 return config
    • config undefined
    • global _makeConfig = <function _makeConfig>
    • configName = 'stats'
  5. /usr/local/lib/python2.4/site-packages/MoinMoin/multiconfig.py in _makeConfig (name='stats')

    1. 119 use the wikiconfig.py file from the distribution.
    2. 120 ''' % {'name': name, 'ppath': "\n".join(sys.path)}
    3. 121 raise error.ConfigurationError(msg)
    4. 122 return cfg
    5. 123
    • global error = <module 'MoinMoin.error' from '/usr/local/lib/python2.4/site-packages/MoinMoin/error.pyc'>
    • error.ConfigurationError = <class MoinMoin.error.ConfigurationError>
    • msg = '\nCould not find required "Config" class in "stat...se the wikiconfig.py file from the distribution.\n'

ConfigurationError

Could not find required "Config" class in "stats.py". This might happen if you are trying to use a pre 1.3 configuration file, or made a syntax or spelling error.

System path is /usr/local/var/moin /var/www/cgi-bin /usr/local/lib/python24.zip /usr/local/lib/python2.4 /usr/local/lib/python2.4/plat-linux2 /usr/local/lib/python2.4/lib-tk /usr/local/lib/python2.4/lib-dynload /usr/local/lib/python2.4/site-packages.

Please check your configuration file. As an example for correct syntax, use the wikiconfig.py file from the distribution.

  • exceptions = <bound method ConfigurationError.exceptions of <MoinMoin.error.ConfigurationError instance>>
  • innerException = (<class exceptions.AttributeError>, <exceptions.AttributeError instance>, <traceback object>)
  • message = '\nCould not find required "Config" class in "stat...se the wikiconfig.py file from the distribution.\n'

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. /usr/local/lib/python2.4/site-packages/MoinMoin/multiconfig.py in _makeConfig (name='stats')

    1. 92 try:
    2. 93 module, mtime = _importConfigModule(name)
    3. 94 configClass = getattr(module, 'Config')
    4. 95 cfg = configClass(name)
    5. 96 cfg.cfg_mtime = max(mtime, _farmconfig_mtime)
    • configClass undefined
    • builtin getattr = <built-in function getattr>
    • module = <module 'MoinMoin.stats' from '/usr/local/lib/python2.4/site-packages/MoinMoin/stats/__init__.pyc'>

AttributeError

'module' object has no attribute 'Config'

  • args = ("'module' object has no attribute 'Config'",)

System Details

  • Date: Fri, 30 Jun 2006 11:14:49 +0000
  • Platform: Linux menkar 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006 i686
  • Python: Python 2.4.2 (/usr/local/bin/python2.4)
  • MoinMoin: Release 1.5.3 (release)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-06-30 11:15:22, 11.5 KB) [[attachment:configtraceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.