Modify ↓
#13829 closed defect (fixed)
Graphviz: WARNING: The None program was not found
Reported by: | anonymous | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | GraphvizPlugin |
Severity: | normal | Keywords: | patch |
Cc: | Trac Release: |
Description
This code produces strange log warnings:
2020-02-19 09:10:26,173 Trac[graphviz] WARNING: The None program was not found. The graphviz/neato macro will be disabled. 2020-02-19 09:10:26,174 Trac[graphviz] WARNING: The None program was not found. The graphviz/circo macro will be disabled. 2020-02-19 09:10:26,174 Trac[graphviz] WARNING: The None program was not found. The graphviz/twopi macro will be disabled. 2020-02-19 09:10:26,992 Trac[graphviz] WARNING: The None program was not found. The graphviz/fdp macro will be disabled.
The current latest Graphviz releases (e.g. 2.41.20200109.0924 from AppVeyor) do not contain such programs, only dot
.
Workaround: Add a single-file plugin to modify this list accordingly:
from graphviz.graphviz import Graphviz Graphviz.Processors[:] = ['dot']
Attachments (0)
Change History (7)
comment:1 Changed 4 years ago by
Keywords: | patch added |
---|
comment:2 Changed 4 years ago by
Owner: | changed from Christian Boos to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:3 Changed 4 years ago by
comment:4 Changed 4 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:5 Changed 4 years ago by
Instead of pname
(=The None program
) it should log name
(The circo program
etc.), no?
comment:6 Changed 4 years ago by
It does log the name as well:
self.log.info('The %s program was not found. ' 'The graphviz/%s macro will be disabled.', pname, name)
comment:7 Changed 4 years ago by
I considered changing the log string to remove pname
, but I'm not sure if there might be times when pname
is not none and the information is useful. It didn't seem that important so I just left it.
Note: See
TracTickets for help on using
tickets.
In 17775: