[Moin-user] upgrade to 1.7rc2 - round two

Rick Vanderveer rick.vanderveer at gmail.com
Mon Jun 2 14:58:43 EDT 2008


Last episode, I attempted to upgrade to 1.7.0rc1, but was
unsuccessful.  Submitting my farmconfig.py to this list found only a
couple minor errors, but otherwise everything looked ok.  Thomas
suggested waiting for rc2, which has better import-error reporting.
So here we go, round two.

As you can see, it seems to be having trouble importing HTTPAuth, but
there are no (AFAICS) no typos.

Any thoughts?

-Rick



 --> -->
ImportError

cannot import name HTTPAuth

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

    * Show debugging information
    * Report bug
    * Visit MoinMoin wiki

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
0x007711F0>, 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 0x007711F0>
          * properties = {}
   2.

      c:\python25\Lib\site-packages\MoinMoin\request\__init__.py in
__init__ (self=<MoinMoin.request.request_cgi.Request object at
0x007711F0>, 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 0x007711F0>
          * self._load_multi_cfg = <bound method
Request._load_multi_cfg of <MoinMo...equest.request_cgi.Request object
at 0x007711F0>>
   3.

      c:\python25\Lib\site-packages\MoinMoin\request\__init__.py in
_load_multi_cfg (self=<MoinMoin.request.request_cgi.Request object at
0x007711F0>)
         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 0x007711F0>
          * self.cfg undefined
          * global multiconfig = <module 'MoinMoin.config.multiconfig'
from 'C:\p...b\site-packages\MoinMoin\config\multiconfig.pyc'>
          * multiconfig.getConfig = <function getConfig at 0x00A494F0>
          * self.url = 'wikitest.cognitivearts.com/main'
   4.

      c:\python25\Lib\site-packages\MoinMoin\config\multiconfig.py in
getConfig (url='wikitest.cognitivearts.com/main')
         1. 202 @return: config object for specific wiki
         2. 203 """
         3. 204 cfgName = _getConfigName(url)
         4. 205 try:
         5. 206 cfg = _config_cache[cfgName]
          * cfgName undefined
          * global _getConfigName = <function _getConfigName at 0x00A494B0>
          * url = 'wikitest.cognitivearts.com/main'
   5.

      c:\python25\Lib\site-packages\MoinMoin\config\multiconfig.py in
_getConfigName (url='wikitest.cognitivearts.com/main')
         1. 184 def _getConfigName(url):
         2. 185 """ Return config name for url or raise """
         3. 186 for name, regex in _url_re_list():
         4. 187 match = regex.match(url)
         5. 188 if match:
          * name undefined
          * regex undefined
          * global _url_re_list = <function _url_re_list at 0x00A49430>
   6.

      c:\python25\Lib\site-packages\MoinMoin\config\multiconfig.py in
_url_re_list ()
         1. 77 if _url_re_cache is None:
         2. 78 try:
         3. 79 farmconfig, _farmconfig_mtime = _importConfigModule('farmconfig')
         4. 80 except ImportError, err:
         5. 81 if 'farmconfig' in str(err):
          * farmconfig undefined
          * global _farmconfig_mtime = None
          * global _importConfigModule = <function _importConfigModule
at 0x00A493F0>
   7.

      c:\python25\Lib\site-packages\MoinMoin\config\multiconfig.py in
_importConfigModule (name='farmconfig')
         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 = 'farmconfig'
          * builtin globals = <built-in function globals>
   8.

      C:\moin\farmconfig.py in ()
         1. 86 # from the DefaultConfig, except those we explicitely
define different.
         2. 87
         3. 88 class FarmConfig(DefaultConfig):
         4. 89
         5. 90 # Critical setup
---------------------------------------------------
          * FarmConfig undefined
          * DefaultConfig = None
   9.

      C:\moin\farmconfig.py in FarmConfig ()
         1. 132 ## Rick: Here's my attempt at getting domain
authentication working:
         2. 133 ## http://moinmoin.wikiwikiweb.de/HelpOnAuthentication
         3. 134 from MoinMoin.auth.http import HTTPAuth
         4. 135 auth = [HTTPAuth()]
         5. 136
          * MoinMoin undefined
          * HTTPAuth undefined

ImportError

cannot import name HTTPAuth

    * args = ('cannot import name HTTPAuth',)
    * message = 'cannot import name HTTPAuth'

System Details

    * Date: Mon, 02 Jun 2008 18:50:58 +0000
    * Platform: win32 (nt)
    * Python: Python 2.5.1 (C:\python25\python.exe)
    * MoinMoin: Release 1.7.0rc2 (release)




More information about the Moin-user mailing list