Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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 figaro

Keywords: patch added

comment:2 Changed 4 years ago by Ryan J Ollos

Owner: changed from Christian Boos to Ryan J Ollos
Status: newaccepted

comment:3 Changed 4 years ago by Ryan J Ollos

In 17775:

TracGraphviz 1.4.0.2dev: Log at INFO rather than WARN

Refs #13829.

comment:4 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

comment:5 Changed 4 years ago by anonymous

Instead of pname (=The None program) it should log name (The circo program etc.), no?

comment:6 Changed 4 years ago by Ryan J Ollos

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 Ryan J Ollos

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.