--> -->

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. /usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>)

    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 at 0x2a506294>
    • self = <MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>
    • self.page = <MoinMoin.Page.Page object at 0x2d7ac6ac>
    • self.page.page_name = u'EventCalendar/HackNight'
  2. /usr/local/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'EventCalendar/HackNight', request=<MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>, 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. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x2fdbcf4c>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1195 format_args=pi['formatargs'],
    2. 1196 do_cache=do_cache,
    3. 1197 start_line=pi['lines'])
    4. 1198
    5. 1199 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x2fdbc4cc>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
  4. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x2fdbcf4c>, request=<MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>, body=u'{{{#!eventcal\n= HackNight at RedLineCafe =\nFirst... Wireless Field Day =\n2006/10/28 10:00-16:00\n}}}\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1288 raise
    2. 1289 try:
    3. 1290 code = self.makeCache(request, parser)
    4. 1291 self.execute(request, parser, code)
    5. 1292 except Exception, e:
    • code undefined
    • self = <MoinMoin.Page.Page object at 0x2fdbcf4c>
    • self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object at 0x2fdbcf4c>>
    • request = <MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>
  5. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object at 0x2fdbcf4c>, request=<MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>)

    1. 1348 saved_current_lang = request.current_lang
    2. 1349 try:
    3. 1350 text = request.redirectedOutput(parser.format, formatter)
    4. 1351 finally:
    5. 1352 request.current_lang = saved_current_lang
    • text undefined
    • request = <MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>
    • request.redirectedOutput = <bound method Request.redirectedOutput of <MoinM...quest.request_wsgi.Request object at 0x2d7ac4ac>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>>
    • formatter = <MoinMoin.formatter.text_python.Formatter instance at 0x2fdbcb2c>
  6. /usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>>, *args=(<MoinMoin.formatter.text_python.Formatter instance at 0x2fdbcb2c>,), **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 at 0x2fdbc68c>>
    • args = (<MoinMoin.formatter.text_python.Formatter instance at 0x2fdbcb2c>,)
    • kw = {}
  7. /usr/local/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>, formatter=<MoinMoin.formatter.text_python.Formatter instance at 0x2fdbcb2c>, inhibit_p=False)

    1. 1543
    2. 1544 # Scan line, format and write
    3. 1545 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1546 self.request.write(formatted_line)
    5. 1547
    • formatted_line undefined
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>>
    • line = u'{{{#!eventcal '
    • inhibit_p = False
  8. /usr/local/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>, line=u'{{{#!eventcal ', 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 at 0x2edc298c>
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>
    • self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>>
    • match = <_sre.SRE_Match object at 0x2b2c8c00>
    • inhibit_p = False
  9. /usr/local/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>, match=<_sre.SRE_Match object at 0x2b2c8c00>, inhibit_p=False)

    1. 1401 # Get replace method and replace hit
    2. 1402 replace_func = getattr(self, '_%s_repl' % type)
    3. 1403 result.append(replace_func(hit, match.groupdict()))
    4. 1404 return ''.join(result)
    5. 1405 else:
    • result = []
    • result.append = <built-in method append of list object at 0x2fdbc96c>
    • replace_func = <bound method Parser._parser_repl of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>>
    • hit = u'{{{#!eventcal '
    • match = <_sre.SRE_Match object at 0x2b2c8c00>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object at 0x2b2c8c00>
  10. /usr/local/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in _parser_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>, word=u'#!eventcal ', 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. 1227 parser_name = 'text'
    2. 1228
    3. 1229 self.setParser(parser_name)
    4. 1230 if not self.parser and parser_name:
    5. 1231 # loading the desired parser didn't work, retry a safe option:
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>
    • self.setParser = <bound method Parser.setParser of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>>
    • parser_name = u'eventcal'
  11. /usr/local/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in setParser (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>, name=u'eventcal')

    1. 1563 # XXX this is done by the formatter as well
    2. 1564 try:
    3. 1565 self.parser = wikiutil.searchAndImportPlugin(self.request.cfg, "parser", name)
    4. 1566 except wikiutil.PluginMissingError:
    5. 1567 self.parser = None
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x2fdbc68c>
    • self.parser = None
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/local/lib/python2.5/site-packages/MoinMoin/wikiutil.pyc'>
    • wikiutil.searchAndImportPlugin = <function searchAndImportPlugin at 0x2a41095c>
    • self.request = <MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>
    • self.request.cfg = <wikiconfig.Config object at 0x2a4a512c>
    • name = u'eventcal'
  12. /usr/local/lib/python2.5/site-packages/MoinMoin/wikiutil.py in searchAndImportPlugin (cfg=<wikiconfig.Config object at 0x2a4a512c>, type='parser', name=u'eventcal', what='Parser')

    1. 1229 for module_name in mt.module_name():
    2. 1230 try:
    3. 1231 plugin = importPlugin(cfg, type, module_name, what)
    4. 1232 break
    5. 1233 except PluginMissingError:
    • plugin = None
    • global importPlugin = <function importPlugin at 0x2a4107d4>
    • cfg = <wikiconfig.Config object at 0x2a4a512c>
    • type = 'parser'
    • module_name = u'eventcal'
    • what = 'Parser'
  13. /usr/local/lib/python2.5/site-packages/MoinMoin/wikiutil.py in importPlugin (cfg=<wikiconfig.Config object at 0x2a4a512c>, kind='parser', name=u'eventcal', function='Parser')

    1. 1106 """
    2. 1107 try:
    3. 1108 return importWikiPlugin(cfg, kind, name, function)
    4. 1109 except PluginMissingError:
    5. 1110 return importBuiltinPlugin(kind, name, function)
    • global importWikiPlugin = <function importWikiPlugin at 0x2a41080c>
    • cfg = <wikiconfig.Config object at 0x2a4a512c>
    • kind = 'parser'
    • name = u'eventcal'
    • function = 'Parser'
  14. /usr/local/lib/python2.5/site-packages/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<wikiconfig.Config object at 0x2a4a512c>, kind='parser', name=u'eventcal', function='Parser')

    1. 1121 raise PluginMissingError()
    2. 1122 moduleName = '%s.%s' % (modname, name)
    3. 1123 return importNameFromPlugin(moduleName, function)
    4. 1124
    5. 1125
    • global importNameFromPlugin = <function importNameFromPlugin at 0x2a41087c>
    • moduleName = u'wikiconfig.p_fe9001ec976a2ab2523b1825608d44823d128575.parser.eventcal'
    • function = 'Parser'
  15. /usr/local/lib/python2.5/site-packages/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName=u'wikiconfig.p_fe9001ec976a2ab2523b1825608d44823d128575.parser.eventcal', name='Parser')

    1. 1145 else:
    2. 1146 fromlist = [name]
    3. 1147 module = __import__(moduleName, globals(), {}, fromlist)
    4. 1148 if fromlist:
    5. 1149 # module has the obj for module <moduleName>
    • module undefined
    • builtin __import__ = <built-in function __import__>
    • moduleName = u'wikiconfig.p_fe9001ec976a2ab2523b1825608d44823d128575.parser.eventcal'
    • builtin globals = <built-in function globals>
    • fromlist = ['Parser']
  16. /home/hosts/wiki.seattlewireless.net/data/plugin/parser/eventcal.py in ()

    1. 59
    2. 60 import datetime, re
    3. 61 from MoinMoin.parser import wiki
    4. 62 import urllib
    5. 63 from MoinMoin import config
    • MoinMoin undefined
    • wiki undefined

ImportError

cannot import name wiki

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

System Details

  • Date: Tue, 22 May 2012 19:42:55 +0000
  • Platform: FreeBSD gir.seattlewireless.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
  • Python: Python 2.5.2 (/usr/local/bin/python)
  • MoinMoin: Release 1.8.0 (release)