Attachment 'sspi_bug.htm'

Download

--> -->

ConfigurationError

ImportError: cannot import name http

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:\Moin\rulewiki\wikiconfig.py" around line 170.

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:\Python\Lib\site-packages\MoinMoin\request\request_cgi.py in __init__ (self=<MoinMoin.request.request_cgi.Request object at 0x00862170>, properties={})

    1. 27
    2. 28 self._setup_vars_from_std_env(os.environ)
    3. 29 RequestBase.__init__(self, properties)
    4. 30
    5. 31 except Exception, err:
    • global RequestBase = <class 'MoinMoin.request.RequestBase'>
    • RequestBase.__init__ = <unbound method RequestBase.__init__>
    • self = <MoinMoin.request.request_cgi.Request object at 0x00862170>
    • properties = {}
  2. C:\Python\Lib\site-packages\MoinMoin\request\__init__.py in __init__ (self=<MoinMoin.request.request_cgi.Request object at 0x00862170>, 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 0x00862170>
    • self._load_multi_cfg = <bound method Request._load_multi_cfg of <MoinMo...equest.request_cgi.Request object at 0x00862170>>
  3. C:\Python\Lib\site-packages\MoinMoin\request\__init__.py in _load_multi_cfg (self=<MoinMoin.request.request_cgi.Request object at 0x00862170>)

    1. 359 if not hasattr(self, 'cfg'):
    2. 360 self.clock.start('load_multi_cfg')
    3. 361 self.cfg = multiconfig.getConfig(self.url)
    4. 362 self.clock.stop('load_multi_cfg')
    5. 363
    • self = <MoinMoin.request.request_cgi.Request object at 0x00862170>
    • self.cfg undefined
    • global multiconfig = <module 'MoinMoin.config.multiconfig' from 'C:\P...b\site-packages\MoinMoin\config\multiconfig.pyc'>
    • multiconfig.getConfig = <function getConfig at 0x00B5A070>
    • self.url = 'localhost/rulewiki'
  4. C:\Python\Lib\site-packages\MoinMoin\config\multiconfig.py in getConfig (url='localhost/rulewiki')

    1. 206 cfg = _config_cache[cfgName]
    2. 207 except KeyError:
    3. 208 cfg = _makeConfig(cfgName)
    4. 209 cfg = _config_cache.setdefault(cfgName, cfg)
    5. 210 return cfg
    • cfg undefined
    • global _makeConfig = <function _makeConfig at 0x00B56FB0>
    • cfgName = 'wikiconfig'
  5. C:\Python\Lib\site-packages\MoinMoin\config\multiconfig.py in _makeConfig (name='wikiconfig')

    1. 138 'err': err,
    2. 139 }
    3. 140 raise error.ConfigurationError(msg)
    4. 141 except AttributeError, err:
    5. 142 logging.exception('An exception occured.')
    • global error = <module 'MoinMoin.error' from 'C:\Python\lib\site-packages\MoinMoin\error.pyc'>
    • error.ConfigurationError = <class 'MoinMoin.error.ConfigurationError'>
    • msg = 'ImportError: cannot import name http\n\nCheck that...e\nmodule name does not include the ".py" suffix.\n'

ConfigurationError

ImportError: cannot import name http

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('cannot import name http',), <traceback object at 0x00B61738>)
  • message = 'ImportError: cannot import name http\n\nCheck that...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:\Python\Lib\site-packages\MoinMoin\config\multiconfig.py in _makeConfig (name='wikiconfig')

    1. 118 global _farmconfig_mtime
    2. 119 try:
    3. 120 module, mtime = _importConfigModule(name)
    4. 121 configClass = getattr(module, 'Config')
    5. 122 cfg = configClass(name)
    • module undefined
    • mtime undefined
    • global _importConfigModule = <function _importConfigModule at 0x00B56F30>
    • name = 'wikiconfig'
  2. C:\Python\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>
  3. C:\Moin\rulewiki\wikiconfig.py in ()

    1. 29
    2. 30
    3. 31 class Config(DefaultConfig):
    4. 32
    5. 33 # Wiki identity ----------------------------------------------------
    • Config undefined
    • DefaultConfig = None
  4. C:\Moin\rulewiki\wikiconfig.py in Config ()

    1. 168
    2. 169 ## Domain Authentication using mod_auth_sspi.so
    3. 170 from MoinMoin.auth.http import http
    4. 171 from MoinMoin.auth import moin_session
    5. 172 auth = [http, moin_session]
    • MoinMoin undefined
    • http undefined

ImportError

cannot import name http

  • args = ('cannot import name http',)
  • message = 'cannot import name http'

System Details

  • Date: Thu, 24 Jul 2008 14:08:15 +0000
  • Platform: win32 (nt)
  • Python: Python 2.5.2 (C:\Python\python.exe)
  • MoinMoin: Release 1.7.1 (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] (2008-07-24 14:21:17, 13.8 KB) [[attachment:sspi_bug.htm]]
 All files | Selected Files: delete move to page copy to page

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