Opened 16 years ago
Closed 16 years ago
#3304 closed defect (duplicate)
Doesn't work for me
Reported by: | Owned by: | Peter Kropf | |
---|---|---|---|
Priority: | normal | Component: | GraphvizPlugin |
Severity: | critical | Keywords: | |
Cc: | andreas.wurzer@…, adieu@… | Trac Release: | 0.11 |
Description
When I put the same graph into my wiki page:
I get:
Graphviz macro processor has detected an error. Please fix the problem before continuing.
The command
['/usr/bin/dot', , '-Tsvg', u'-o/tmp/a6c54c328e02fc2da0d3145c16a67a3b5a51269e.dot.png.svg']
failed with the the following output:
Error: dot: can't open
Attachments (1)
Change History (9)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Cc: | andreas.wurzer@… added; anonymous removed |
---|
comment:3 Changed 16 years ago by
Cc: | adieu@… added |
---|
I had the same error here.
After looking into the source code, I found that the error was caused by sometimes self.processor_options is empty when generating the image and the map file.
I attached a little patch here. It solved my problem. Hope it is useful for people have the same problem.
Changed 16 years ago by
Attachment: | graphviz.diff added |
---|
comment:4 Changed 16 years ago by
Hmm, I added the same changes to mine (had to do manually as I couldn't figure out how to download the raw diff, rather than the pretty version) and I get "IOError: [Errorno 32] Broken pipe.
comment:5 Changed 16 years ago by
Fixed it. There was another similar error around line 211 also around line 221 where rsvg is called, one needs to add '-o' as another command arg before img_path
# 2. SVG to PNG rasterization cmd = [self.rsvg_path, '--dpi-x=%d' % self.dpi, '--dpi-y=%d' % self.dpi, '%s.svg' % img_path, '-o', img_path]
comment:7 Changed 16 years ago by
This is definitely a bug, but the workaround for it is to add some processor related option to trac.ini like this:
[graphviz] default_graph_fontsize = 8
comment:8 Changed 16 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Another duplicate of #3605.
Getting what looks to be the same error here...
The command
failed with the the following output:
Error: dot: can't open