• Immutable Page
  • Info
  • Attachments

帮助-其他/常见问题解答

--> -->

ImportError

Cannot load macro HTML

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. /var/www/moin-test/MoinMoin/request.py in run (self=<MoinMoin.request.RequestFastCGI object>)

    1. 1023 # Visit pagename
    2. 1024 self.page = Page(self, pagename)
    3. 1025 self.page.send_page(self, count_hit=1)
    4. 1026
    5. 1027 # generate page footer (actions that do not want this footer
    • self = <MoinMoin.request.RequestFastCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
    • count_hit undefined
  2. /var/www/moin-test/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, msg='', **keywords={'count_hit': 1})

    1. 1209 format_args=pi_formatargs,
    2. 1210 do_cache=do_cache,
    3. 1211 start_line=pi_lines)
    4. 1212
    5. 1213 # check for pending footnotes
    • start_line undefined
    • pi_lines = 9
  3. /var/www/moin-test/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'\n[[Include(HelpMiscellaneous/FrequentlyAskedQuestions)]]\n', format_args=u'', do_cache=1, **kw={'start_line': 9})

    1. 1293 try:
    2. 1294 code = self.loadCache(request)
    3. 1295 self.execute(request, parser, code)
    4. 1296 except 'CacheNeedsUpdate':
    5. 1297 try:
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestFastCGI object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object ? at 0xed68570, file "帮助-其他/常见问题解答", line 2>
  4. /var/www/moin-test/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0xed68570, file "帮助-其他/常见问题解答", line 2>)

    1. 1318 if hasattr(MoinMoin, '__loader__'):
    2. 1319 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    3. 1320 exec code
    4. 1321
    5. 1322 def loadCache(self, request):
    • code = <code object ? at 0xed68570, file "帮助-其他/常见问题解答", line 2>
  5. /var/www/moin-test/wiki/server/帮助-其他/常见问题解答 in ?

  6. /var/www/moin-test/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'Include', args=u'HelpMiscellaneous/FrequentlyAskedQuestions')

    1. 279 def macro(self, macro_obj, name, args):
    2. 280 # call the macro
    3. 281 return macro_obj.execute(name, args)
    4. 282
    5. 283 def _get_bang_args(self, line):
    • macro_obj = <MoinMoin.wikimacro.Macro instance>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>
    • name = u'Include'
    • args = u'HelpMiscellaneous/FrequentlyAskedQuestions'
  7. /var/www/moin-test/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'Include', args=u'HelpMiscellaneous/FrequentlyAskedQuestions')

    1. 118 else:
    2. 119 raise ImportError("Cannot load macro %s" % macro_name)
    3. 120 return execute(self, args)
    4. 121
    5. 122 def _m_lang(self, text):
    • execute = <function execute>
    • self = <MoinMoin.wikimacro.Macro instance>
    • args = u'HelpMiscellaneous/FrequentlyAskedQuestions'
  8. /var/www/moin-test/MoinMoin/macro/Include.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, text=u'HelpMiscellaneous/FrequentlyAskedQuestions', args_re=<_sre.SRE_Pattern object>, title_re=<_sre.SRE_Pattern object>, called_by_toc=0)

    1. 219 try:
    2. 220 cid = request.makeUniqueID("Include_%s" % wikiutil.quoteWikinameURL(inc_page.page_name))
    3. 221 inc_page.send_page(request, content_only=1, content_id=cid)
    4. 222 result.append(strfile.getvalue())
    5. 223 finally:
    • inc_page = <MoinMoin.Page.Page instance>
    • inc_page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestFastCGI object>
    • content_only undefined
    • content_id undefined
    • cid = u'Include_HelpMiscellaneous/FrequentlyAskedQuestions'
  9. /var/www/moin-test/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, msg='', **keywords={'content_id': u'Include_HelpMiscellaneous/FrequentlyAskedQuestions', 'content_only': 1})

    1. 1209 format_args=pi_formatargs,
    2. 1210 do_cache=do_cache,
    3. 1211 start_line=pi_lines)
    4. 1212
    5. 1213 # check for pending footnotes
    • start_line undefined
    • pi_lines = 9
  10. /var/www/moin-test/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'\'\'\'Index\'\'\'\n[[TableOfContents]]\n\n== "What is a W...st create a new page called <something>Template.\n', format_args=u'', do_cache=1, **kw={'start_line': 9})

    1. 1293 try:
    2. 1294 code = self.loadCache(request)
    3. 1295 self.execute(request, parser, code)
    4. 1296 except 'CacheNeedsUpdate':
    5. 1297 try:
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestFastCGI object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object ? at 0xed06f10, file "HelpMiscellaneous/FrequentlyAskedQuestions", line 2>
  11. /var/www/moin-test/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0xed06f10, file "HelpMiscellaneous/FrequentlyAskedQuestions", line 2>)

    1. 1318 if hasattr(MoinMoin, '__loader__'):
    2. 1319 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    3. 1320 exec code
    4. 1321
    5. 1322 def loadCache(self, request):
    • code = <code object ? at 0xed06f10, file "HelpMiscellaneous/FrequentlyAskedQuestions", line 2>
  12. /var/www/moin-test/wiki/server/HelpMiscellaneous/FrequentlyAskedQuestions in ?

  13. /var/www/moin-test/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'HTML', args=u'<font size=+12>This is large font</font>')

    1. 279 def macro(self, macro_obj, name, args):
    2. 280 # call the macro
    3. 281 return macro_obj.execute(name, args)
    4. 282
    5. 283 def _get_bang_args(self, line):
    • macro_obj = <MoinMoin.wikimacro.Macro instance>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>
    • name = u'HTML'
    • args = u'<font size=+12>This is large font</font>'
  14. /var/www/moin-test/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'HTML', args=u'<font size=+12>This is large font</font>')

    1. 117 execute = builtins._m_lang
    2. 118 else:
    3. 119 raise ImportError("Cannot load macro %s" % macro_name)
    4. 120 return execute(self, args)
    5. 121
    • builtin ImportError = <class exceptions.ImportError>
    • macro_name = u'HTML'

ImportError

Cannot load macro HTML

  • args = (u'Cannot load macro HTML',)

System Details