dotedit not working for graphviz-cairo

Bug #136450 reported by stefan
78
This bug affects 13 people
Affects Status Importance Assigned to Milestone
graphviz-cairo (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Hardy by Mario César Señoranis
Nominated for Intrepid by Mario César Señoranis
Nominated for Jaunty by Andrioid
Nominated for Karmic by Edward Steel

Bug Description

When run on the commandline dotedit gives:

  stefan@minhoca:/usr/lib/graphviz$ dotedit
  Renderer type: "gtk" not recognized. Use one of: canon cmap cmapx dia dot fig gd gd2 gif hpgl imap ismap jpeg jpg mif mp pcl pic plain plain-ext png ps ps2 svg svgz vrml vtx wbmp xdot

This affects at least Gutsy and Hardy.

Revision history for this message
pavpanchekha (pavpanchekha) wrote :

I can confirm this. On Ubuntu Gutsy, the error message given is:

Error: renderer for gtk is unavailable

Changed in graphviz-cairo:
status: New → Confirmed
Revision history for this message
akoumjian@gmail.com (akoumjian) wrote :

I get exact same output as stefan.

Revision history for this message
Christian Reis (kiko) wrote :

The reason this bug annoys me is that dotedit is the whole reason why this package depends on a bunch of GTK and GNOME libraries, and it doesn't even work!

description: updated
Revision history for this message
Christian Reis (kiko) wrote :

<jamesh> kiko: looking in /usr/lib/graphviz/config4, I don't see either of the graphviz-cairo plugins registered

Revision history for this message
mathew (meta23) wrote :

Just noticed the problem here running Hardy. Saw dotedit in the menus, thought it might be useful, wondered why running it did nothing, tried running it from the command line, got the same error.

Revision history for this message
A. Bram Neijt (bneijt) wrote :

Hereby confirming that this bug is present in the current Intrepid. When run in the terminal it states:

Format: "gtk" not recognized. Use one of: canon cmap cmapx cmapx_np dia dot fig gd gd2 gif hpgl imap imap_np ismap jpe jpeg jpg mif mp pcl pdf pic plain plain-ext png ps ps2 svg svgz vml vmlz vrml vtx wbmp xdot xlib

Package: graphviz-cairo
Version: 2.8-3

Revision history for this message
Vincenzo Di Somma (vds) wrote :

I can confirm this. On Ubuntu Intrepid, the error message given is:
Format: "gtk" not recognized. Use one of: canon cmap cmapx cmapx_np dia dot fig gd gd2 gif hpgl imap imap_np ismap jpe jpeg jpg mif mp pcl pdf pic plain plain-ext png ps ps2 svg svgz vml vmlz vrml vtx wbmp xdot xlib

Revision history for this message
Martin Owens (doctormo) wrote :

It's not even possible to build this package from the apt source. Many errors ranging from NULL not defined, to libcairo problems. Even autogen died because of a missing macro.

This package is so broken it should be removed until it's fixed.

Revision history for this message
dulbirakan (iekanat) wrote :

I have the same one in Jaunty 64bit...

Revision history for this message
Andrioid (andri80) wrote :

Confirmed on Jaunty 64-bit.

Revision history for this message
FriDisch (dumb-kane) wrote :

Confirmed on Jaunty 32-bit

Revision history for this message
FriDisch (dumb-kane) wrote :

I just looked into '/usr/bin/dotedit'. This is only a simple Shell-Script, that launches dot - either on a file given as an argument or on '/usr/share/graphviz/dotedit-splash.dot'.
So it isn't very usefull after all and acts merely as a test case for graphviz.
The reason it doesn't work: 'gtk' is specified as target-format, which isn't a format dot does recognize. One can of course change this manually, by substituting '-Tgtk' with '-Tsvg' (or '-Tpng' or any other valid Target-Format).

Here's the whole script:

#!/bin/bash

if test "x$@" = "x"
then
 dotfile=/usr/share/graphviz/dotedit-splash.dot
else
 dotfile="$@"
fi

exec dot -Tsvg "$dotfile"

Revision history for this message
rodrigoflores (rodrigomarquesflores) wrote :

This error still appear in 9.10 Release Candidate.

Revision history for this message
Alexander Rojas (sambatyon) wrote :

I can confirm that the error exists in the released version of 9.10 Karmic Koala

Revision history for this message
harrydb (harrydeboer) wrote :

It is also not working in lucid atm, I suggest the last line in the dotedit script to be changed to

exec dot -Txlib "$dotfile"

which does work out of the box. Simplest patch ever attached.

Revision history for this message
Douglas Bagnall (douglasbagnall) wrote :

I can confirm that harrydb's patch works for me (Karmic, graphviz-cairo 2.8-3).

The patched dotedit is still useless as a menu item, but it could conceivably be of use as a handler for graphviz dot files.

Revision history for this message
sriram (sriram87) wrote :

The problem is still there in the later versions of Ubuntu.
However, it can be bypassed by using any option other than gtx..
Try jpeg or png..

eg.

  dot -Tpng "/usr/share/graphviz/dotedit-splash.dot" > dotedit.png

will do the job...
I cannot get the hyperlinks in the code :(

Revision history for this message
Alberto Pino (alberto-pinoblanco) wrote :

The solutions given here it seems that doesn't work. I am using Karmic.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.