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.
/usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0x2d7ac4ac>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 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'
/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)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/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})
- 1195 format_args=pi['formatargs'],
- 1196 do_cache=do_cache,
- 1197 start_line=pi['lines'])
- 1198
- 1199 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x2fdbc4cc>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
/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})
- 1288 raise
- 1289 try:
- 1290 code = self.makeCache(request, parser)
- 1291 self.execute(request, parser, code)
- 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>
/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>)
- 1348 saved_current_lang = request.current_lang
- 1349 try:
- 1350 text = request.redirectedOutput(parser.format, formatter)
- 1351 finally:
- 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>
/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={})
- 846 self.redirect(buf)
- 847 try:
- 848 function(*args, **kw)
- 849 finally:
- 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 = {}
/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)
- 1543
- 1544 # Scan line, format and write
- 1545 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1546 self.request.write(formatted_line)
- 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
/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)
- 1357 self.in_table or self.in_list):
- 1358 result.append(self.formatter.paragraph(1, css_class="line867"))
- 1359 result.append(self.replace(match, inhibit_p))
- 1360 end = match.end()
- 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
/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)
- 1401 # Get replace method and replace hit
- 1402 replace_func = getattr(self, '_%s_repl' % type)
- 1403 result.append(replace_func(hit, match.groupdict()))
- 1404 return ''.join(result)
- 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>
/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, ...})
- 1227 parser_name = 'text'
- 1228
- 1229 self.setParser(parser_name)
- 1230 if not self.parser and parser_name:
- 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'
/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')
- 1563 # XXX this is done by the formatter as well
- 1564 try:
- 1565 self.parser = wikiutil.searchAndImportPlugin(self.request.cfg, "parser", name)
- 1566 except wikiutil.PluginMissingError:
- 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'
/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')
- 1229 for module_name in mt.module_name():
- 1230 try:
- 1231 plugin = importPlugin(cfg, type, module_name, what)
- 1232 break
- 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'
/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')
- 1106 """
- 1107 try:
- 1108 return importWikiPlugin(cfg, kind, name, function)
- 1109 except PluginMissingError:
- 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'
/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')
- 1121 raise PluginMissingError()
- 1122 moduleName = '%s.%s' % (modname, name)
- 1123 return importNameFromPlugin(moduleName, function)
- 1124
- 1125
- global importNameFromPlugin = <function importNameFromPlugin at 0x2a41087c>
- moduleName = u'wikiconfig.p_fe9001ec976a2ab2523b1825608d44823d128575.parser.eventcal'
- function = 'Parser'
/usr/local/lib/python2.5/site-packages/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName=u'wikiconfig.p_fe9001ec976a2ab2523b1825608d44823d128575.parser.eventcal', name='Parser')
- 1145 else:
- 1146 fromlist = [name]
- 1147 module = __import__(moduleName, globals(), {}, fromlist)
- 1148 if fromlist:
- 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']
/home/hosts/wiki.seattlewireless.net/data/plugin/parser/eventcal.py in
() - 59
- 60 import datetime, re
- 61 from MoinMoin.parser import wiki
- 62 import urllib
- 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)
