--> -->

ImportError

cannot import name wiki

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. /opt/moin/lib/python2.4/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show>
    • self = <MoinMoin.request.request_cgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'General comments, topics, and ideas that come to mind about DEBS'
  2. /opt/moin/lib/python2.4/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'General comments, topics, and ideas that come to mind about DEBS', request=<MoinMoin.request.request_cgi.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /opt/moin/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1199 format_args=pi['formatargs'],
    2. 1200 do_cache=do_cache,
    3. 1201 start_line=pi['lines'])
    4. 1202
    5. 1203 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
  4. /opt/moin/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, body=u'<<PageComment2(encryptpass=1,markup=1,nosmiley=1,newerfirst=1,newerfirst=1)>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1292 raise
    2. 1293 try:
    3. 1294 code = self.makeCache(request, parser)
    4. 1295 self.execute(request, parser, code)
    5. 1296 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_cgi.Request object>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
  5. /opt/moin/lib/python2.4/site-packages/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)

    1. 1352 saved_current_lang = request.current_lang
    2. 1353 try:
    3. 1354 text = request.redirectedOutput(parser.format, formatter)
    4. 1355 finally:
    5. 1356 request.current_lang = saved_current_lang
    • text undefined
    • request = <MoinMoin.request.request_cgi.Request object>
    • request.redirectedOutput = <bound method Request.redirectedOutput of <MoinMoin.request.request_cgi.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. /opt/moin/lib/python2.4/site-packages/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_cgi.Request object>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>, *args=(<MoinMoin.formatter.text_python.Formatter instance>,), **kw={})

    1. 846 self.redirect(buf)
    2. 847 try:
    3. 848 function(*args, **kw)
    4. 849 finally:
    5. 850 self.redirect()
    • function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • args = (<MoinMoin.formatter.text_python.Formatter instance>,)
    • kw = {}
  7. /opt/moin/lib/python2.4/site-packages/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. 1544
    2. 1545 # Scan line, format and write
    3. 1546 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1547 self.request.write(formatted_line)
    5. 1548
    • formatted_line undefined
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • line = u'<<PageComment2(encryptpass=1,markup=1,nosmiley=1,newerfirst=1,newerfirst=1)>> '
    • inhibit_p = False
  8. /opt/moin/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'<<PageComment2(encryptpass=1,markup=1,nosmiley=1,newerfirst=1,newerfirst=1)>> ', inhibit_p=False)

    1. 1358 self.in_table or self.in_list):
    2. 1359 result.append(self.formatter.paragraph(1, css_class="line867"))
    3. 1360 result.append(self.replace(match, inhibit_p))
    4. 1361 end = match.end()
    5. 1362 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. /opt/moin/lib/python2.4/site-packages/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. 1402 # Get replace method and replace hit
    2. 1403 replace_func = getattr(self, '_%s_repl' % type)
    3. 1404 result.append(replace_func(hit, match.groupdict()))
    4. 1405 return ''.join(result)
    5. 1406 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'encryptpass=1,markup=1,nosmiley=1,newerfirst=1,newerfirst=1'
    • match = <_sre.SRE_Match object>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object>
  10. /opt/moin/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'encryptpass=1,markup=1,nosmiley=1,newerfirst=1,newerfirst=1', 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. 1325 if self.macro is None:
    2. 1326 self.macro = macro.Macro(self)
    3. 1327 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1328 _macro_name_repl = _macro_repl
    5. 1329 _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'PageComment2'
    • macro_args = u'encryptpass=1,markup=1,nosmiley=1,newerfirst=1,newerfirst=1'
    • 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. /opt/moin/lib/python2.4/site-packages/MoinMoin/formatter/text_python.py in macro (self=<MoinMoin.formatter.text_python.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, name=u'PageComment2', args=u'encryptpass=1,markup=1,nosmiley=1,newerfirst=1,newerfirst=1', markup=u'<<PageComment2(encryptpass=1,markup=1,nosmiley=1,newerfirst=1,newerfirst=1)>>')

    1. 187
    2. 188 def macro(self, macro_obj, name, args, markup=None):
    3. 189 if self.__is_static(macro_obj.get_dependencies(name)):
    4. 190 # XXX: why is this necessary??
    5. 191 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'PageComment2'
  12. /opt/moin/lib/python2.4/site-packages/MoinMoin/macro/__init__.py in get_dependencies (self=<MoinMoin.macro.Macro instance>, macro_name=u'PageComment2')

    1. 148 try:
    2. 149 return wikiutil.importPlugin(self.request.cfg, 'macro',
    3. 150 macro_name, 'Dependencies')
    4. 151 except wikiutil.PluginError:
    5. 152 return self.defaultDependency
    • macro_name = u'PageComment2'
  13. /opt/moin/lib/python2.4/site-packages/MoinMoin/wikiutil.py in importPlugin (cfg=<wikiconfig.Config object>, kind='macro', name=u'PageComment2', function='Dependencies')

    1. 1112 """
    2. 1113 try:
    3. 1114 return importWikiPlugin(cfg, kind, name, function)
    4. 1115 except PluginMissingError:
    5. 1116 return importBuiltinPlugin(kind, name, function)
    • global importWikiPlugin = <function importWikiPlugin>
    • cfg = <wikiconfig.Config object>
    • kind = 'macro'
    • name = u'PageComment2'
    • function = 'Dependencies'
  14. /opt/moin/lib/python2.4/site-packages/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<wikiconfig.Config object>, kind='macro', name=u'PageComment2', function='Dependencies')

    1. 1127 raise PluginMissingError()
    2. 1128 moduleName = '%s.%s' % (modname, name)
    3. 1129 return importNameFromPlugin(moduleName, function)
    4. 1130
    5. 1131
    • global importNameFromPlugin = <function importNameFromPlugin>
    • moduleName = u'wikiconfig.p_3ae76b885f3a17edf5b7bc17af5db8b4c276f94b.macro.PageComment2'
    • function = 'Dependencies'
  15. /opt/moin/lib/python2.4/site-packages/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName=u'wikiconfig.p_3ae76b885f3a17edf5b7bc17af5db8b4c276f94b.macro.PageComment2', name='Dependencies')

    1. 1151 else:
    2. 1152 fromlist = [name]
    3. 1153 module = __import__(moduleName, globals(), {}, fromlist)
    4. 1154 if fromlist:
    5. 1155 # module has the obj for module <moduleName>
    • module undefined
    • builtin __import__ = <built-in function __import__>
    • moduleName = u'wikiconfig.p_3ae76b885f3a17edf5b7bc17af5db8b4c276f94b.macro.PageComment2'
    • builtin globals = <built-in function globals>
    • fromlist = ['Dependencies']
  16. /var/www/debscollaborate/data/plugin/macro/PageComment2.py in ?

    1. 149 from MoinMoin.Page import Page
    2. 150 from MoinMoin.PageEditor import PageEditor
    3. 151 from MoinMoin.parser import wiki
    4. 152
    5. 153
    • MoinMoin undefined
    • wiki undefined

ImportError

cannot import name wiki

  • args = ('cannot import name wiki',)

System Details

  • Date: Sat, 19 Aug 2017 07:06:25 +0000
  • Platform: Linux cyclops.msrg.utoronto.ca 2.6.18-308.13.1.el5 #1 SMP Tue Aug 21 17:10:06 EDT 2012 i686
  • Python: Python 2.4.3 (/usr/bin/python)
  • MoinMoin: Release 1.8.5 (release)