Ah, that's it.  I had put the .magmapass file in my home directory,
but never set up MAGMAPASSFILE as an environment variable.  For some
reason when I started magma from the command line, or with !magma this
didn't bother it, but from the notebook it did.   I added something to
set MAGMAPASSFILE in the magma script and now everything works ok.

Victor

On May 28, 9:09 pm, William Stein <[email protected]> wrote:
> On Fri, May 28, 2010 at 5:46 PM, Jason Grout
>
>
>
>
>
> <[email protected]> wrote:
> > On 5/28/10 7:10 PM, William Stein wrote:
>
> >> On Fri, May 28, 2010 at 5:07 PM, VictorMiller<[email protected]>
> >>  wrote:
>
> >>> After 1/2 hour (!) I decided to interrupt the worksheet, quite the
> >>> notebook, quite sage, and then restart sage.  Now when I try
>
> >>> os.system('mamga') it comes back right away with
>
> >>> Can't open Magma password file
> >>> .magmapass
>
> >>> 256
>
> > I wonder if it just can't find the magma password file.  After skimming
>
> >http://magma.maths.usyd.edu.au/magma/prot/prot.html
>
> > it looks like you can (must?) set the MAGMAPASSFILE environment variable.
> >  Can you try:
>
> > os.system('export MAGMAPASSFILE=<wherever this is> && magma')
>
> No, do
>
> os.system('export MAGMAPASSFILE=<wherever this is> && magma < /dev/null')
>
> so you don't just hang things.
>
>
>
>
>
>
>
> > or
>
> > import os
> > os.environ['MAGMAPASSFILE']
>
> > Jason
>
> > --
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/sage-support
> > URL:http://www.sagemath.org
>
> --
> William Stein
> Professor of Mathematics
> University of Washingtonhttp://wstein.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to