Ticket #3304 (closed defect: duplicate)

Opened 6 months ago

Last modified 3 months ago

Doesn't work for me

Reported by: jpschewe@bbn.com Assigned to: pkropf
Priority: normal Component: GraphvizPlugin
Severity: critical Keywords:
Cc: andreas.wurzer@ccservices.at, adieu@adieu.cn Trac Release: 0.11

Description

When I put the same graph into my wiki page:

Error: Failed to load processor graphviz
No macro or processor named 'graphviz' found

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

graphviz.diff (1.5 kB) - added by anonymous on 07/15/08 11:15:04.

Change History

07/09/08 20:17:27 changed by anonymous

Getting what looks to be the same error here...

The command

[u'C:\\Program Files\\Graphviz\\bin\\dot.exe', , u'-Tpng', u'-oD:\\Python25\\Scripts\\trac\\myproject\\htdocs\\graphviz\\f83378112f5507cdc8d480101e65fceb1f185d94.dot.png']

failed with the the following output:

Error: dot: can't open

07/10/08 08:47:30 changed by anonymous

  • cc set to andreas.wurzer@ccservices.at.

07/15/08 11:13:31 changed by Adieu

  • cc changed from andreas.wurzer@ccservices.at to andreas.wurzer@ccservices.at, adieu@adieu.cn.

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.

07/15/08 11:15:04 changed by anonymous

  • attachment graphviz.diff added.

07/15/08 12:57:29 changed by anonymous

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.

07/15/08 13:10:24 changed by anonymous

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]

07/15/08 14:02:49 changed by Adieu

Great! I didn't use svg so I didn't run into that part of code.

09/02/08 10:57:52 changed by anonymous

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

09/26/08 04:16:12 changed by cboos

  • status changed from new to closed.
  • resolution set to duplicate.

Another duplicate of #3605.


Add/Change #3304 (Doesn't work for me)




Change Properties
Action