Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#15933 closed enhancement (fixed)

New version of graphviz

Reported by: mmarco Owned by:
Priority: major Milestone: sage-6.2
Component: packages: experimental Keywords:
Cc: nthiery, rlm, mhansen, ncohen, jdemeyer, schilly Merged in:
Authors: Miguel Marco Reviewers: Nathann Cohen
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by mmezzarobba)

For some reason, i get a segfault when i try to system-wide graphviz from sage, and the current experimental spkg fails to install, so i updated it. It now installs on my systems and works ok.

https://drive.google.com/file/d/0B_B7eBQ-W5NGNVBSR3RCTlJRMEk/edit?usp=sharing

Change History (11)

comment:1 Changed 7 years ago by mmezzarobba

  • Description modified (diff)

comment:2 Changed 7 years ago by ncohen

Hello !

Well, the spkg works (even though I expected it to be a bzip2 file instead of a gzip file), but how exactly can this spkg be used through Sage so that I may test it ?

Nathann

comment:3 Changed 7 years ago by ncohen

  • Status changed from new to needs_info

comment:4 Changed 7 years ago 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

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.

Last edited 7 years ago by mmarco (previous) (diff)

comment:5 Changed 7 years ago by ncohen

Your message is badly formatted, it looks like you repeated the same thing three times. Could you clean it please ?

comment:6 Changed 7 years ago by mmarco

Yes, sorry, it is corrected now.

comment:7 Changed 7 years ago by ncohen

  • Reviewers set to Nathann Cohen
  • Status changed from needs_info to positive_review

Okayyyyyy okay. Well, both work on my computer, but I guess it cannot hurt to update the spkg and it does solve your problem. Good ! :-)

Nathann

comment:8 Changed 7 years ago by vbraun

  • Cc schilly added

Harald, can you add this to the experimental spkgs?

comment:9 Changed 7 years ago by schilly

ok, done.

... and PS: and for the future, could we avoid sharing spkg files via such web based tools? it's kind of tedious to move them to the sever that way :-\

comment:10 Changed 7 years ago by vbraun

  • Authors set to Marc Mezzarobba
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:11 Changed 7 years ago by mmezzarobba

  • Authors changed from Marc Mezzarobba to Miguel Marco

I don't remember changing the description of this ticket, though apparently I did. But I'm quite certain I didn't prepare the updated spkg!

Note: See TracTickets for help on using tickets.