Opened 18 years ago
Closed 18 years ago
#679 closed defect (fixed)
'graphviz.graphviz.GraphvizMacro' object has no attribute 'cmd_path'
Reported by: | clive | Owned by: | Peter Kropf |
---|---|---|---|
Priority: | high | Component: | GraphvizPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.9 |
Description
I am using Trac-0.9.6.
After following the installation instructions and using GraphvizPlugin checked out from the repository, I get the following error:
Trac detected an internal error: 'graphviz.graphviz.GraphvizMacro' object has no attribute 'cmd_path'
Following this error is this traceback:
Python traceback Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler dispatch_request(mpr.path_info, mpr, env) File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python2.4/site-packages/TracTags-0.4-py2.4.egg/tractags/web_ui.py", line 64, in process_request File "/usr/local/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 92, in process_request self._render_editor(req, db, page, preview=True) File "/usr/local/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 311, in _render_editor info['page_html'] = wiki_to_html(page.text, self.env, req, db) File "/usr/local/lib/python2.4/site-packages/trac/wiki/formatter.py", line 751, in wiki_to_html Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines) File "/usr/local/lib/python2.4/site-packages/trac/wiki/formatter.py", line 577, in format self.handle_code_block(line) File "/usr/local/lib/python2.4/site-packages/trac/wiki/formatter.py", line 554, in handle_code_block self.code_processor = WikiProcessor(self.env, name) File "/usr/local/lib/python2.4/site-packages/trac/wiki/formatter.py", line 62, in __init__ if self.name in list(macro_provider.get_macros()): File "build/bdist.freebsd-5.3-RELEASE-i386/egg/graphviz/graphviz.py", line 66, in get_macros File "build/bdist.freebsd-5.3-RELEASE-i386/egg/graphviz/graphviz.py", line 307, in load_config File "/usr/local/lib/python2.4/site-packages/trac/core.py", line 165, in __getattr__ raise AttributeError, "'%s' object has no attribute '%s'" % (cls, name) AttributeError: 'graphviz.graphviz.GraphvizMacro' object has no attribute 'cmd_path'
my trac.ini has a graphviz section as folows:
[graphviz] cmd_path = /usr/local/bin cache_dir = /home/usrsrc/trac/projects/newt/graphviz png_antialias = true default_graph_fontname = "Andale Mono" default_graph_fontsize = 10
I have tried with and without the cmd_path entry. I have dot installed with the executable at /usr/local/bin/dot.
Attachments (0)
Change History (7)
comment:1 Changed 18 years ago by
comment:3 Changed 18 years ago by
Another note here. If I take out the graphviz rendering code, I get the same error but with my TracNav plugin, TracNav says: 'graphviz.graphviz.GraphvizMacro' object has no attribute 'cmd_path'
I have to completely uninstall/disable graphviz to get my other plugins to work again.
comment:4 Changed 18 years ago by
comment:5 Changed 18 years ago by
Can you check the branches/v0.6 directory tree and try the version that's there? I've fixed an obvious bug and hopefully resolved your problem. Unfortunately, I don't currently have access to a FreeBSD 5.x system to use for testing. If this fixes your problem, I'll update the 0.9 release tree with the changes.
comment:6 Changed 18 years ago by
I tried the v0.6 branch, and now get different errors:
Graphviz macro processor has detected an error. Please fix the problem before continuing. The rsvg program is set to <b>/usr/local/bin/rsvg</b> but that path does not exist.
After getting the above, I added the following line to the graphviz section of my trac.ini file:
processor = dot
but even after that addition, the rsvg error still remains.
comment:7 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Turned off anti-aliasing. It works now. I think the rsvg issue is beyond the scope of this bug report. Thank you.
What platform are you running on? Linux? FreeBSD? Something else? Also, what distribution?