graphviz / dot2tex support

37 views
Skip to first unread message

Nicolas M. Thiery

unread,
Aug 22, 2010, 9:12:36 AM8/22/10
to sage-comb...@googlegroups.com, sage-support, sage-...@googlegroups.com
On Sat, Aug 14, 2010 at 09:50:29PM -0700, William Stein wrote:
> RuntimeError:
> dot2tex not available.
>
> Please see :meth:`sage.graphs.generic_graph.GenericGraph.layout_graphviz`
> for installation instructions.
>
> ----
>
> I tried installing dot2tex on sage.math.washington.edu (via apt-get),
> but the above error stays.
> So I have absolutely no clue how to get
>
> g.plot(layout='graphviz')
>
> to actually do anything useful.

sage: sage.graphs.generic_graph.GenericGraph.layout_graphviz?
...
This requires ``graphviz`` and the ``dot2tex`` spkg. Here are some
installation tips:

* Install graphviz >= 2.14 so that the programs dot, neato, ...
are in your path. The graphviz suite can be download from
http://graphviz.org.

* Download dot2tex-2.8.?.spkg from
http://trac.sagemath.org/sage_trac/ticket/7004 and install it
with ``sage -i dot2tex-2.8.?.spkg``


Speaking of which: I never got feedback on my request to put this spkg
in optional/experimental:

http://groups.google.com/group/sage-devel/browse_thread/thread/ea1dca11f12bc697/ee679aa1b32359a3

Cheers,
Nicolas
--
Nicolas M. Thi�ry "Isil" <nth...@users.sf.net>
http://Nicolas.Thiery.name/

Dima Pasechnik

unread,
Aug 22, 2010, 2:57:55 PM8/22/10
to sage-devel


On Aug 22, 3:12 pm, "Nicolas M. Thiery" <Nicolas.Thi...@u-psud.fr>
wrote:
> On Sat, Aug 14, 2010 at 09:50:29PM -0700, William Stein wrote:
> > RuntimeError:
> > dot2tex not available.
>
> > Please see :meth:`sage.graphs.generic_graph.GenericGraph.layout_graphviz`
> > for installation instructions.
>
> > ----
>
> > I tried installing dot2tex on sage.math.washington.edu (via apt-get),
> > but the above error stays.
> > So I have absolutely no clue how to get
>
> > g.plot(layout='graphviz')
>
> > to actually do anything useful.
>
>        sage: sage.graphs.generic_graph.GenericGraph.layout_graphviz?
>        ...
>        This requires ``graphviz`` and the ``dot2tex`` spkg. Here are some
>        installation tips:
>
>           * Install graphviz >= 2.14 so that the programs dot, neato, ...
>             are in your path. The graphviz suite can be download from
>            http://graphviz.org.
>
>           * Download dot2tex-2.8.?.spkg from
>            http://trac.sagemath.org/sage_trac/ticket/7004and install it
>             with ``sage -i dot2tex-2.8.?.spkg``
>
> Speaking of which: I never got feedback on my request to put this spkg
> in optional/experimental:
>
> http://groups.google.com/group/sage-devel/browse_thread/thread/ea1dca...

your wish to have it as standard most probably is not possible, due to
licensing of graphviz...


>
> Cheers,
>                                 Nicolas
> --
> Nicolas M. Thi ry "Isil" <nthi...@users.sf.net>http://Nicolas.Thiery.name/

Nicolas M. Thiery

unread,
Aug 24, 2010, 2:18:48 PM8/24/10
to sage-...@googlegroups.com
On Sun, Aug 22, 2010 at 11:57:55AM -0700, Dima Pasechnik wrote:
> > Speaking of which: I never got feedback on my request to put this spkg
> > in optional/experimental:
> >
> > http://groups.google.com/group/sage-devel/browse_thread/thread/ea1dca...
>
> your wish to have it as standard most probably is not possible, due to
> licensing of graphviz...

Thanks Dima, that's at least a piece of feedback :-)

So, if no one seems to care, does this mean that this is implicitly
generally accepted as an optional package?

Vote:
[ ] Yes!
[ ] No!

Cheers,
Nicolas
--
Nicolas M. Thi�ry "Isil" <nth...@users.sf.net>
http://Nicolas.Thiery.name/

Nathann Cohen

unread,
Aug 24, 2010, 9:04:28 PM8/24/10
to sage-devel
+1 to optional !

Nathann

On Aug 25, 2:18 am, "Nicolas M. Thiery" <Nicolas.Thi...@u-psud.fr>
wrote:
> Nicolas M. Thi ry "Isil" <nthi...@users.sf.net>http://Nicolas.Thiery.name/

Florent Hivert

unread,
Aug 25, 2010, 12:08:03 PM8/25/10
to sage-...@googlegroups.com
> > > > Speaking of which: I never got feedback on my request to put this spkg
> > > > in optional/experimental:
> >
> > > >http://groups.google.com/group/sage-devel/browse_thread/thread/ea1dca...
> >
> > > your wish to have it as standard most probably is not possible, due to
> > > licensing of graphviz...
> >
> > Thanks Dima, that's at least a piece of feedback :-)
> >
> > So, if no one seems to care, does this mean that this is implicitly
> > generally accepted as an optional package?
> >
> > Vote:
> > �[x] Yes!
> > �[ ] No!

Florent

Dr. David Kirkby

unread,
Aug 25, 2010, 12:13:26 PM8/25/10
to sage-...@googlegroups.com
On 08/24/10 07:18 PM, Nicolas M. Thiery wrote:

> Thanks Dima, that's at least a piece of feedback :-)
>
> So, if no one seems to care, does this mean that this is implicitly
> generally accepted as an optional package?
>
> Vote:
> [ ] Yes!
> [ ] No!
>
> Cheers,
> Nicolas
> --
> Nicolas M. Thi�ry "Isil"<nth...@users.sf.net>
> http://Nicolas.Thiery.name/
>

Does it build on all supported platforms?

Nicolas M. Thiery

unread,
Sep 7, 2010, 4:59:09 AM9/7/10
to sage-...@googlegroups.com
On Wed, Aug 25, 2010 at 05:13:26PM +0100, Dr. David Kirkby wrote:
> >So, if no one seems to care, does this mean that this is implicitly
> >generally accepted as an optional package?
> >
> >Vote:
> > [ ] Yes! Include dot2tex

> > [ ] No!
> >
> >Cheers,
> > Nicolas
> >--
> >Nicolas M. Thi�ry "Isil"<nth...@users.sf.net>
> >http://Nicolas.Thiery.name/
> >
>
> Does it build on all supported platforms?

It's plain python, so I assume that this should be safe.

Best,

Dr. David Kirkby

unread,
Sep 7, 2010, 5:14:37 AM9/7/10
to sage-...@googlegroups.com

It would not be the first time plain Python has failed on one system or another.

Dave

Reply all
Reply to author
Forward
0 new messages