#15933: New version of graphviz
------------------------------------------+--------------------------
       Reporter:  mmarco                  |        Owner:
           Type:  enhancement             |       Status:  needs_info
       Priority:  major                   |    Milestone:  sage-6.2
      Component:  packages: experimental  |   Resolution:
       Keywords:                          |    Merged in:
        Authors:                          |    Reviewers:
Report Upstream:  N/A                     |  Work issues:
         Branch:                          |       Commit:
   Dependencies:                          |     Stopgaps:
------------------------------------------+--------------------------

Comment (by mmarco):

 The situation where i used it is in the singular interface.

 {{{
 $ sage -singular
                      SINGULAR                                 /
 Development
  A Computer Algebra System for Polynomial Computations       /   version
 3-1-6
                                                            0<
  by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann     \   Dec 2012
 FB Mathematik der Universitaet, D-67653 Kaiserslautern        \
 > LIB "all.lib";;

 (all of output about the libraries loaded)

 > ring r=0,(x,y),dp;
 > ideal i=x2-y3;
 > list L=resolve(i);
 > ResTree(L,collectDiv(L)[1],"output");
 Currently showing graphics in separate window
 Press <Return> to continue
 sh: /usr/bin/X11/xv: No such file or directory
 pause>
 >

 }}}

 It creates a text file called output, and tries to call "dot" on it. But
 it fails, and creates an empty file output.jpg

 With this new version, it creates the file output.jpg as expected.

 Once you have the file output created, you can try to call dot manually on
 it:

 {{{
 $ sage -sh
 The situation where i used it is in the singular interface.

 {{{
 $ sage -singular
                      SINGULAR                                 /
 Development
  A Computer Algebra System for Polynomial Computations       /   version
 3-1-6
                                                            0<
  by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann     \   Dec 2012
 FB Mathematik der Universitaet, D-67653 Kaiserslautern        \
 > LIB "all.lib";;

 (all of output about the libraries loaded)

 > ring r=0,(x,y),dp;
 > ideal i=x2-y3;
 > list L=resolve(i);
 > ResTree(L,collectDiv(L)[1],"output");
 Currently showing graphics in separate window
 Press <Return> to continue
 sh: /usr/bin/X11/xv: No such file or directory
 pause>
 >

 }}}

 It creates a text file called output, and tries to call "dot" on it. But
 it fails, and creates an empty file output.jpg

 With this new version, it creates the file output.jpg as expected.

 Once you have the file output created, you can try to call dot manually on
 it:

 {{{
 $ sage -sh
 The situation where i used it is in the singular interface.

 {{{
 $ sage -singular
                      SINGULAR                                 /
 Development
  A Computer Algebra System for Polynomial Computations       /   version
 3-1-6
                                                            0<
  by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann     \   Dec 2012
 FB Mathematik der Universitaet, D-67653 Kaiserslautern        \
 > LIB "all.lib";;

 (all of output about the libraries loaded)

 > ring r=0,(x,y),dp;
 > ideal i=x2-y3;
 > list L=resolve(i);
 > ResTree(L,collectDiv(L)[1],"output");
 Currently showing graphics in separate window
 Press <Return> to continue
 sh: /usr/bin/X11/xv: No such file or directory
 pause>
 >

 }}}

 It creates a text file called output, and tries to call "dot" on it. But
 it fails, and creates an empty file output.jpg

 With this new version, it creates the file output.jpg as expected.

 Once you have the file output created, you can try to call dot manually on
 it:

 {{{
 $ sage -sh
 The situation where i used it is in the singular interface.

 {{{
 $ sage -singular
                      SINGULAR                                 /
 Development
  A Computer Algebra System for Polynomial Computations       /   version
 3-1-6
                                                            0<
  by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann     \   Dec 2012
 FB Mathematik der Universitaet, D-67653 Kaiserslautern        \
 > LIB "all.lib";;

 (all of output about the libraries loaded)

 > ring r=0,(x,y),dp;
 > ideal i=x2-y3;
 > list L=resolve(i);
 > ResTree(L,collectDiv(L)[1],"output");
 Currently showing graphics in separate window
 Press <Return> to continue
 sh: /usr/bin/X11/xv: No such file or directory
 pause>
 >

 }}}

 It creates a text file called output, and tries to call "dot" on it. But
 it fails, and creates an empty file output.jpg

 With this new version, it creates the file output.jpg as expected.

 Once you have the file output created, you can try to call dot manually on
 it, but if you don't have graphviz installed inside your sage
 distribution, it will try to call the system wide binary. Even if it is
 installed, it gives a segfault:

 {{{
 $ sage -sh

 Starting subshell with Sage environment variables set.  Don't forget
 to exit when you are done.  Beware:
  * Do not do anything with other copies of Sage on your system.
  * Do not use this for installing Sage packages using "sage -i" or for
    running "make" at Sage's root directory.  These should be done
    outside the Sage shell.

 Bypassing shell configuration files...

 Note: SAGE_ROOT=/home/mmarco/sagedevel/sage
 (sage-sh) mmarco@localhost:sage$ dot -Tjpg output -o output.jpg
 segmentation fault
 }}}


 But with the spkg installed, it just creates the output.jpg file as
 expected.

--
Ticket URL: <http://trac.sagemath.org/ticket/15933#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to