attachment:17zvy4402.html of FrontPage

Attachment '17zvy4402.html'

Download

--> -->

ImportError

cannot import name wikimacro

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. /srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_modpython.Request object at 0x14fbdd0>)

    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 at 0x15b8c80>
    • self = <MoinMoin.request.request_modpython.Request object at 0x14fbdd0>
    • self.page = <MoinMoin.Page.Page object at 0x16fc310>
    • self.page.page_name = u'FrontPage'
  2. /srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/action/AttachFile.py in execute (pagename=u'FrontPage', request=<MoinMoin.request.request_modpython.Request object at 0x14fbdd0>)

    1. 582 elif do == 'view':
    2. 583 if request.user.may.read(pagename):
    3. 584 view_file(pagename, request)
    4. 585 else:
    5. 586 msg = _('You are not allowed to view attachments of this page.', formatted=False)
    • global view_file = <function view_file at 0x15b92a8>
    • pagename = u'FrontPage'
    • request = <MoinMoin.request.request_modpython.Request object at 0x14fbdd0>
  3. /srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/action/AttachFile.py in view_file (pagename=u'FrontPage', request=<MoinMoin.request.request_modpython.Request object at 0x14fbdd0>)

    1. 1100 # send body
    2. 1101 request.write(request.formatter.startContent())
    3. 1102 send_viewfile(pagename, request)
    4. 1103 send_uploadform(pagename, request)
    5. 1104 request.write(request.formatter.endContent())
    • global send_viewfile = <function send_viewfile at 0x15b9230>
    • pagename = u'FrontPage'
    • request = <MoinMoin.request.request_modpython.Request object at 0x14fbdd0>
  4. /srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/action/AttachFile.py in send_viewfile (pagename=u'FrontPage', request=<MoinMoin.request.request_modpython.Request object at 0x14fbdd0>)

    1. 1028 elif mt.major == 'text':
    2. 1029 ext = os.path.splitext(filename)[1]
    3. 1030 Parser = wikiutil.getParserForExtension(request.cfg, ext)
    4. 1031 if Parser is not None:
    5. 1032 try:
    • Parser undefined
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/wikiutil.py'>
    • wikiutil.getParserForExtension = <function getParserForExtension at 0x1528c80>
    • request = <MoinMoin.request.request_modpython.Request object at 0x14fbdd0>
    • request.cfg = <wikiconfig.Config instance at 0x124aa28>
    • ext = u'.html'
  5. /srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/wikiutil.py in getParserForExtension (cfg=<wikiconfig.Config instance at 0x124aa28>, extension=u'.html')

    1. 1228 for pname in getPlugins('parser', cfg):
    2. 1229 try:
    3. 1230 Parser = importPlugin(cfg, 'parser', pname, 'Parser')
    4. 1231 except PluginMissingError:
    5. 1232 continue
    • Parser = <class MoinMoin.parser.text_xslt.Parser at 0x154d650>
    • global importPlugin = <function importPlugin at 0x151ef50>
    • cfg = <wikiconfig.Config instance at 0x124aa28>
    • pname = 'extwiki'
  6. /srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/wikiutil.py in importPlugin (cfg=<wikiconfig.Config instance at 0x124aa28>, kind='parser', name='extwiki', function='Parser')

    1. 1096 """
    2. 1097 try:
    3. 1098 return importWikiPlugin(cfg, kind, name, function)
    4. 1099 except PluginMissingError:
    5. 1100 return importBuiltinPlugin(kind, name, function)
    • global importWikiPlugin = <function importWikiPlugin at 0x1528230>
    • cfg = <wikiconfig.Config instance at 0x124aa28>
    • kind = 'parser'
    • name = 'extwiki'
    • function = 'Parser'
  7. /srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<wikiconfig.Config instance at 0x124aa28>, kind='parser', name='extwiki', function='Parser')

    1. 1109 raise PluginMissingError
    2. 1110 moduleName = '%s.plugin.%s.%s' % (cfg.siteid, kind, name)
    3. 1111 return importNameFromPlugin(moduleName, function)
    4. 1112
    5. 1113
    • global importNameFromPlugin = <function importNameFromPlugin at 0x1528a28>
    • moduleName = 'wikiconfig.plugin.parser.extwiki'
    • function = 'Parser'
  8. /srv/dri.freedesktop.org/moin-1.6.0/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName='wikiconfig.plugin.parser.extwiki', name='Parser')

    1. 1128 Raise PluginAttributeError if name does not exists.
    2. 1129 """
    3. 1130 module = __import__(moduleName, globals(), {}, [name])
    4. 1131 try:
    5. 1132 return getattr(module, name)
    • module undefined
    • builtin __import__ = <built-in function __import__>
    • moduleName = 'wikiconfig.plugin.parser.extwiki'
    • builtin globals = <built-in function globals>
    • name = 'Parser'
  9. /srv/dri.freedesktop.org/moin-1.6.0/data/plugin/parser/extwiki.py in ()

    1. 9 # Imports
    2. 10 import os, re, sys
    3. 11 from MoinMoin import config, wikimacro, wikiutil
    4. 12 from MoinMoin.Page import Page
    5. 13 from MoinMoin.util import web
    • MoinMoin undefined
    • config = None
    • wikimacro undefined
    • wikiutil undefined

ImportError

cannot import name wikimacro

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

System Details

  • Date: Mon, 23 Nov 2009 01:33:21 +0000
  • Platform: Linux annarchy 2.6.24.1-g67d76f2a #1 SMP Sun Feb 10 17:20:21 PST 2008 x86_64
  • Python: Python 2.5.2 (/usr/bin/python)
  • MoinMoin: Release 1.6.0 (release)