[sage-support] accumulating many defunct child processes

2017-06-05 Thread John Cremona
On a linux (ubuntu 16.04) machine I am running one instance of Sage version 7.6. In a loop I am calling a function of my own which interfaces to Magma; that function starts with mag = Magma() then there are a whole lot of mag.eval() statements and af ew others with which I collect the content o

[sage-support] What is a module?

2017-06-05 Thread John G Heim
What is a sage module? Is that the same as a plugin? I'm getting an error that says the service_identity module is missing. It has some directions for getting rid of the error message but I don't want to mess with it if I don't have to. I maintain a sage installation for approximately 100 machi

[sage-support] Sage Crash Report

2017-06-05 Thread Vincent HERBERT
-- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. V

[sage-support] Re: Sage Crash Report

2017-06-05 Thread John H Palmieri
"ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory" It looks like you need to install fortran on your machine. On Monday, June 5, 2017 at 10:12:12 AM UTC-7, Vincent HERBERT wrote: > > > -- You received this message because you are subscribed to the Go

[sage-support] Re: accumulating many defunct child processes

2017-06-05 Thread Dima Pasechnik
I guess these zombie processes come from the function quitting Magma, something that does not destroy a Python child process used to communicate with it. Why won't you create a Magma instance just once, and do a cleanup after your function is done? (IIRC, Magma does not have a "reset" facility,

Re: [sage-support] Re: accumulating many defunct child processes

2017-06-05 Thread William Stein
On Mon, Jun 5, 2017 at 11:21 AM, Dima Pasechnik wrote: > I guess these zombie processes come from the function quitting Magma, > something that does not destroy a Python child process used to communicate > with it. > > Why won't you create a Magma instance just once, and do a cleanup after your >

[sage-support] Re: What is a module?

2017-06-05 Thread Dima Pasechnik
A module is a Python module, in this context, at least. The command $ ./sage -pip install service_identity will install the module in question for you. This calls pip, a standard Python package manager, which will fetch the code from the appropriate repository (

[sage-support] Re: What is a module?

2017-06-05 Thread John G Heim
Huh... After I posted my question, I googled it w/o any reference to sage and I found that this is a python module warning. But installing the python service-identity module did not work. First I tried installing it via apt-get: $ apt-get install python-service-identity Same warning. Then I

Re: [sage-support] Re: accumulating many defunct child processes

2017-06-05 Thread John Cremona
Thanks for the suggestions. I was implementing something like Dima's suggestion and noticed that the function has 3 different return statements, one of which is not normal (some runtime error in Magma) but two are normal and only one of those had the mag.quit() in it. However I don't think that th

[sage-support] Re: What is a module?

2017-06-05 Thread Dima Pasechnik
On Monday, June 5, 2017 at 7:54:57 PM UTC+1, jheim wrote: > > Huh... After I posted my question, I googled it w/o any reference to > sage and I found that this is a python module warning. But installing > the python service-identity module did not work. First I tried > installing it via apt-g

Re: [sage-support] Re: accumulating many defunct child processes

2017-06-05 Thread John Cremona
On 5 June 2017 at 20:04, John Cremona wrote: > Thanks for the suggestions. I was implementing something like Dima's > suggestion and noticed that the function has 3 different return > statements, one of which is not normal (some runtime error in Magma) > but two are normal and only one of those h