On Wed, May 22, 2013 at 10:39:36AM -0700, William Stein wrote:
> I installed the dot2tex package on https://cloud.sagemath.com, but
> when I try to actually use it with this example:
> 
> g = sage.categories.category.category_graph()
> g.set_latex_options(format="dot2tex")
> view(g, pdflatex=True, tightpage = True)
> 
> I just get this error:
> 
>     RuntimeError:
>     dot2tex not available.
> 
> graphviz is installed systemwide via "sudo apt-get install graphviz".

Thanks for the report. Which version of Sage? which version of the
dot2tex spkg?

Sage 5.10 beta requires a new dot2tex package (due to the upgrade of
matplotlib); this is being resolved in #14594 (and actually the source
of this discussion).

> > There is plenty of code in the Sage library that only works in the
> > presence of optional packages. But we ship it standard. Or shall we
> > extract, e.g. the interface to Maple/Magma/... as optional packages? :-)
> 
> Maple/Magma/etc. are not optional packages.

Yup. Like graphviz they are external programs that can, or not, be
provided by the user's system.

> A network service that only binds to localhost doesn't need ssl.
> Also, one can easily (one line) make an *ssh tunnel* to run the
> notebook securely on a remote machine without installing pyopenssl.

Granted, my example is not 100% bullet proof :-) I am just saying
that, most of the time when you use the notebook code, you do need
other stuff which is not necessarily there by default.

> > An answer is that graphviz is often already installed on the system.
> > In which case nothing needs to be done.
> 
> I think graphviz has compiled code, whereas dot2tex is python code, so
> graphviz could be hard to install.

Yes, though it's provided precompiled on most OS, so it's not so bad.

> Also relevant is that graphviz has a nasty GPL-incompatible license,
> so we can never ever include it with Sage, whereas dot2tex has a very,
> very standard open license:
> 
>   https://code.google.com/p/dot2tex/source/browse/LICENSE

+1

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

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to