Opened 11 years ago

Closed 11 years ago

#1806 closed defect (duplicate)

'MediaWikiRenderer' object has no attribute 'render_macro'

Reported by: hornsby.3@… Owned by: permon
Priority: normal Component: MediaWikiPluginMacro
Severity: blocker Keywords:
Cc: Trac Release: 0.10


After adding the demo code to a page, python can't find something it needs

Python Traceback

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/", line 387, in dispatch_request
  File "/var/lib/python-support/python2.4/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.4/trac/wiki/", line 135, in process_request
    self._render_view(req, db, page)
  File "/var/lib/python-support/python2.4/trac/wiki/", line 443, in _render_view
    req.hdf['wiki'] = {
  File "/var/lib/python-support/python2.4/trac/wiki/", line 999, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "/var/lib/python-support/python2.4/trac/wiki/", line 793, in format
  File "/var/lib/python-support/python2.4/trac/wiki/", line 732, in handle_code_block
  File "/var/lib/python-support/python2.4/trac/wiki/", line 112, in process
    text = self.processor(req, text)
  File "/var/lib/python-support/python2.4/trac/wiki/", line 100, in _macro_processor
    return self.macro_provider.render_macro(req,, text)
AttributeError: 'MediaWikiRenderer' object has no attribute 'render_macro'

I think the plugin is installed correctly: # easy_install

And if I comment out the mediawiki.* = enabled part of the trac.ini, trac says that it doesn't know what to do with the mediawiki directive when loading the page, which makes sense.

Is there a specific dependency that this plugin relies on?

Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by anonymous

Resolution: duplicate
Status: newclosed

Duplicate of #1807.

Apologies. The trac-hacks server dumped a 500 error when submitting the ticket. Ticket #1807 should be used for this issue.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain permon.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.