--> -->

ImportError

No module named ldap

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. /home/anchorwiki/moin/lib/python/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object>)

    1. 1281 self.page.send_page(msg=msg)
    2. 1282 else:
    3. 1283 handler(self.page.page_name, self)
    4. 1284
    5. 1285 # every action that didn't use to raise MoinMoinNoFooter must call this now:
    • handler = <function execute>
    • self = <MoinMoin.request.request_wsgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'WikiSandBox/LDAPIntegration'
  2. /home/anchorwiki/moin/lib/python/MoinMoin/action/fullsearch.py in execute (pagename=u'WikiSandBox/LDAPIntegration', request=<MoinMoin.request.request_wsgi.Request object>, fieldname='value', titlesearch=0, statistic=0)

    1. 223 f.url(0), '.',
    2. 224 ]) or '')
    3. 225 Page(request, pagename).send_page(msg=err)
    4. 226 return
    5. 227
    • global Page = <class 'MoinMoin.Page.Page'>
    • request = <MoinMoin.request.request_wsgi.Request object>
    • pagename = u'WikiSandBox/LDAPIntegration'
    • ).send_page undefined
    • msg = ''
    • err = u'Your search query <tt>"linkto:"WikiSandBox/LDAPI...rching">HelpOnSearching</a> for more information.'
  3. /home/anchorwiki/moin/lib/python/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, msg=u'Your search query <tt>"linkto:"WikiSandBox/LDAPI...rching">HelpOnSearching</a> for more information.', **keywords={})

    1. 1183 format_args=pi['formatargs'],
    2. 1184 do_cache=do_cache,
    3. 1185 start_line=pi['lines'])
    4. 1186
    5. 1187 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
  4. /home/anchorwiki/moin/lib/python/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_wsgi.Request object>, body=u'= Automatically generate wiki content using data...e/data/moin/hosting/plugin/macro/IRCNicks.py\n}}}\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1276 raise
    2. 1277 try:
    3. 1278 code = self.makeCache(request, parser)
    4. 1279 self.execute(request, parser, code)
    5. 1280 except Exception, e:
    • code undefined
    • self = <MoinMoin.Page.Page object>
    • self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object>>
    • request = <MoinMoin.request.request_wsgi.Request object>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
  5. /home/anchorwiki/moin/lib/python/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_wsgi.Request object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)

    1. 1336 saved_current_lang = request.current_lang
    2. 1337 try:
    3. 1338 text = request.redirectedOutput(parser.format, formatter)
    4. 1339 finally:
    5. 1340 request.current_lang = saved_current_lang
    • text undefined
    • request = <MoinMoin.request.request_wsgi.Request object>
    • request.redirectedOutput = <bound method Request.redirectedOutput of <MoinMoin.request.request_wsgi.Request object>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • formatter = <MoinMoin.formatter.text_python.Formatter instance>
  6. /home/anchorwiki/moin/lib/python/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_wsgi.Request object>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>, *args=(<MoinMoin.formatter.text_python.Formatter instance>,), **kw={})

    1. 822 self.redirect(buf)
    2. 823 try:
    3. 824 function(*args, **kw)
    4. 825 finally:
    5. 826 self.redirect()
    • function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • args = (<MoinMoin.formatter.text_python.Formatter instance>,)
    • kw = {}
  7. /home/anchorwiki/moin/lib/python/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_python.Formatter instance>, inhibit_p=False)

    1. 1541
    2. 1542 # Scan line, format and write
    3. 1543 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1544 self.request.write(formatted_line)
    5. 1545
    • formatted_line = u'<p class="line867"><<<>>>Automatically generate wiki content using data from LDAP</h1>\n'
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • line = u'<<IRCNicks>> '
    • inhibit_p = False
  8. /home/anchorwiki/moin/lib/python/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'<<IRCNicks>> ', inhibit_p=False)

    1. 1357 self.in_table or self.in_list):
    2. 1358 result.append(self.formatter.paragraph(1, css_class="line867"))
    3. 1359 result.append(self.replace(match, inhibit_p))
    4. 1360 end = match.end()
    5. 1361 lastpos = end
    • result = ['<p class="line867">']
    • result.append = <built-in method append of list object>
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • match = <_sre.SRE_Match object>
    • inhibit_p = False
  9. /home/anchorwiki/moin/lib/python/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, match=<_sre.SRE_Match object>, inhibit_p=False)

    1. 1399 # Get replace method and replace hit
    2. 1400 replace_func = getattr(self, '_%s_repl' % type)
    3. 1401 result.append(replace_func(hit, match.groupdict()))
    4. 1402 return ''.join(result)
    5. 1403 else:
    • result = []
    • result.append = <built-in method append of list object>
    • replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • hit = u'IRCNicks'
    • match = <_sre.SRE_Match object>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object>
  10. /home/anchorwiki/moin/lib/python/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'IRCNicks', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})

    1. 1324 if self.macro is None:
    2. 1325 self.macro = macro.Macro(self)
    3. 1326 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1327 _macro_name_repl = _macro_repl
    5. 1328 _macro_args_repl = _macro_repl
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.formatter = <MoinMoin.formatter.text_python.Formatter instance>
    • self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_python.Formatter instance>>
    • self.macro = <MoinMoin.macro.Macro instance>
    • macro_name = u'IRCNicks'
    • macro_args = None
    • markup undefined
    • groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
    • groups.get = <built-in method get of dict object>
  11. /home/anchorwiki/moin/lib/python/MoinMoin/formatter/text_python.py in macro (self=<MoinMoin.formatter.text_python.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, name=u'IRCNicks', args=None, markup=u'<<IRCNicks>>')

    1. 174
    2. 175 def macro(self, macro_obj, name, args, markup=None):
    3. 176 if self.__is_static(macro_obj.get_dependencies(name)):
    4. 177 # XXX: why is this necessary??
    5. 178 macro_obj.formatter = self
    • self = <MoinMoin.formatter.text_python.Formatter instance>
    • self.__is_static undefined
    • macro_obj = <MoinMoin.macro.Macro instance>
    • macro_obj.get_dependencies = <bound method Macro.get_dependencies of <MoinMoin.macro.Macro instance>>
    • name = u'IRCNicks'
  12. /home/anchorwiki/moin/lib/python/MoinMoin/macro/__init__.py in get_dependencies (self=<MoinMoin.macro.Macro instance>, macro_name=u'IRCNicks')

    1. 136 try:
    2. 137 return wikiutil.importPlugin(self.request.cfg, 'macro',
    3. 138 macro_name, 'Dependencies')
    4. 139 except wikiutil.PluginError:
    5. 140 return self.defaultDependency
    • macro_name = u'IRCNicks'
  13. /home/anchorwiki/moin/lib/python/MoinMoin/wikiutil.py in importPlugin (cfg=<hosting.Config instance>, kind='macro', name=u'IRCNicks', function='Dependencies')

    1. 1100 """
    2. 1101 try:
    3. 1102 return importWikiPlugin(cfg, kind, name, function)
    4. 1103 except PluginMissingError:
    5. 1104 return importBuiltinPlugin(kind, name, function)
    • global importWikiPlugin = <function importWikiPlugin>
    • cfg = <hosting.Config instance>
    • kind = 'macro'
    • name = u'IRCNicks'
    • function = 'Dependencies'
  14. /home/anchorwiki/moin/lib/python/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<hosting.Config instance>, kind='macro', name=u'IRCNicks', function='Dependencies')

    1. 1113 raise PluginMissingError
    2. 1114 moduleName = '%s.plugin.%s.%s' % (cfg.siteid, kind, name)
    3. 1115 return importNameFromPlugin(moduleName, function)
    4. 1116
    5. 1117
    • global importNameFromPlugin = <function importNameFromPlugin>
    • moduleName = u'hosting.plugin.macro.IRCNicks'
    • function = 'Dependencies'
  15. /home/anchorwiki/moin/lib/python/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName=u'hosting.plugin.macro.IRCNicks', name='Dependencies')

    1. 1132 Raise PluginAttributeError if name does not exists.
    2. 1133 """
    3. 1134 module = __import__(moduleName, globals(), {}, [name])
    4. 1135 try:
    5. 1136 return getattr(module, name)
    • module undefined
    • builtin __import__ = <built-in function __import__>
    • moduleName = u'hosting.plugin.macro.IRCNicks'
    • builtin globals = <built-in function globals>
    • name = 'Dependencies'
  16. /home/anchorwiki/moin/data/moin/hosting/plugin/macro/IRCNicks.py in ()

    1. 2 import MoinMoin
    2. 3
    3. 4 # Proof-of-concept code
    4. 5 # You probably shouldn't use this in production without a bit of a cleanup.
    5. 6
    • ldap undefined

ImportError

No module named ldap

  • args = ('No module named ldap',)
  • message = 'No module named ldap'

System Details

  • Date: Thu, 19 Oct 2017 14:42:45 +0000
  • Platform: Linux bravo150.anchor.net.au 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64
  • Python: Python 2.7.3 (/usr/bin/python)
  • MoinMoin: Release 1.6.2 (release)