[Moin-user] upgrade to 1.7rc1 error

Rick Vanderveer rick.vanderveer at gmail.com
Fri May 23 13:07:53 EDT 2008


Thanks Thilo for the reply.  However, actually I traced the problem
(yes, reading CHANGES more carefully ;-) to a change in auth.  The new
method is:
    from MoinMoin.auth.http import HTTPAuth
    auth = [HTTPAuth()]

Sensing I was near success, I eagerly hit 'refresh'-- instead I was
greeted with a new error (see trace below). It seems to be looking for
a file called "wikiconfig" (no .py), and indeed there doesn't seem to
that file anywhere. I also checked the expanded "moin-1.7.0rc1"
folder.  I guessing this is a symptom-error and not an actual
cause-error.

Any suggestions?



 --> -->
ConfigurationError

ImportError: No module named wikiconfig

Check that the file is in the same directory as the server script. If
it is not, you must add the path of the directory where the file is
located to the python path in the server script. See the comments at
the top of the server script.

Check that the configuration file name is either "wikiconfig.py" or
the module name specified in the wikis list in farmconfig.py. Note
that the module name does not include the ".py" suffix.

Error in your configuration file
"c:\python25\lib\site-packages\MoinMoin\config\multiconfig.py" around
line 45.

    * Show debugging information

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:\python25\lib\site-packages\MoinMoin\request\request_cgi.py in
__init__ (self=<MoinMoin.request.request_cgi.Request object at
0x007711B0>, properties={})
         1. 24
         2. 25 self._setup_vars_from_std_env(os.environ)
         3. 26 RequestBase.__init__(self, properties)
         4. 27
         5. 28 except Exception, err:
          * global RequestBase = <class 'MoinMoin.request.RequestBase'>
          * RequestBase.__init__ = <unbound method RequestBase.__init__>
          * self = <MoinMoin.request.request_cgi.Request object at 0x007711B0>
          * properties = {}
   2.

      c:\python25\lib\site-packages\MoinMoin\request\__init__.py in
__init__ (self=<MoinMoin.request.request_cgi.Request object at
0x007711B0>, properties={})
         1. 164 self.__dict__.update(properties)
         2. 165 try:
         3. 166 self._load_multi_cfg()
         4. 167 except error.NoConfigMatchedError:
         5. 168 self.makeForbidden(404, 'No wiki configuration
matching the URL found!\r\n')
          * self = <MoinMoin.request.request_cgi.Request object at 0x007711B0>
          * self._load_multi_cfg = <bound method
Request._load_multi_cfg of <MoinMo...equest.request_cgi.Request object
at 0x007711B0>>
   3.

      c:\python25\lib\site-packages\MoinMoin\request\__init__.py in
_load_multi_cfg (self=<MoinMoin.request.request_cgi.Request object at
0x007711B0>)
         1. 354 if not hasattr(self, 'cfg'):
         2. 355 self.clock.start('load_multi_cfg')
         3. 356 self.cfg = multiconfig.getConfig(self.url)
         4. 357 self.clock.stop('load_multi_cfg')
         5. 358
          * self = <MoinMoin.request.request_cgi.Request object at 0x007711B0>
          * self.cfg undefined
          * global multiconfig = <module 'MoinMoin.config.multiconfig'
from 'C:\p...b\site-packages\MoinMoin\config\multiconfig.pyc'>
          * multiconfig.getConfig = <function getConfig at 0x00A4C5B0>
          * self.url = 'wikitest.cognitivearts.com/main/'
   4.

      c:\python25\lib\site-packages\MoinMoin\config\multiconfig.py in
getConfig (url='wikitest.cognitivearts.com/main/')
         1. 201 cfg = _config_cache[cfgName]
         2. 202 except KeyError:
         3. 203 cfg = _makeConfig(cfgName)
         4. 204 cfg = _config_cache.setdefault(cfgName, cfg)
         5. 205 return cfg
          * cfg undefined
          * global _makeConfig = <function _makeConfig at 0x00A4C530>
          * cfgName = 'wikiconfig'
   5.

      c:\python25\lib\site-packages\MoinMoin\config\multiconfig.py in
_makeConfig (name='wikiconfig')
         1. 133 'err': err,
         2. 134 }
         3. 135 raise error.ConfigurationError(msg)
         4. 136 except AttributeError, err:
         5. 137 logging.exception('An exception occured.')
          * global error = <module 'MoinMoin.error' from
'C:\python25\lib\site-packages\MoinMoin\error.pyc'>
          * error.ConfigurationError = <class
'MoinMoin.error.ConfigurationError'>
          * msg = 'ImportError: No module named wikiconfig\n\nCheck
t...e\nmodule name does not include the ".py" suffix.\n'

ConfigurationError

ImportError: No module named wikiconfig

Check that the file is in the same directory as the server script. If
it is not, you must add the path of the directory where the file is
located to the python path in the server script. See the comments at
the top of the server script.

Check that the configuration file name is either "wikiconfig.py" or
the module name specified in the wikis list in farmconfig.py. Note
that the module name does not include the ".py" suffix.

    * args = ()
    * exceptions = <bound method ConfigurationError.exceptions of
ConfigurationError()>
    * innerException = (<type 'exceptions.ImportError'>,
ImportError('No module named wikiconfig',), <traceback object at
0x00A51DF0>)
    * message = 'ImportError: No module named wikiconfig\n\nCheck
t...e\nmodule name does not include the ".py" suffix.\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.

      c:\python25\lib\site-packages\MoinMoin\config\multiconfig.py in
_makeConfig (name='wikiconfig')
         1. 113 global _farmconfig_mtime
         2. 114 try:
         3. 115 module, mtime = _importConfigModule(name)
         4. 116 configClass = getattr(module, 'Config')
         5. 117 cfg = configClass(name)
          * module undefined
          * mtime undefined
          * global _importConfigModule = <function _importConfigModule
at 0x00A4C4B0>
          * name = 'wikiconfig'
   2.

      c:\python25\lib\site-packages\MoinMoin\config\multiconfig.py in
_importConfigModule (name='wikiconfig')
         1. 43 """
         2. 44 try:
         3. 45 module = __import__(name, globals(), {})
         4. 46 mtime = os.path.getmtime(module.__file__)
         5. 47 except ImportError:
          * module undefined
          * builtin __import__ = <built-in function __import__>
          * name = 'wikiconfig'
          * builtin globals = <built-in function globals>

ImportError

No module named wikiconfig

    * args = ('No module named wikiconfig',)
    * message = 'No module named wikiconfig'

System Details

    * Date: Fri, 23 May 2008 16:53:26 +0000
    * Platform: win32 (nt)
    * Python: Python 2.5.1 (C:\python25\python.exe)
    * MoinMoin: Release 1.7.0rc1 (release)




More information about the Moin-user mailing list