[sage-support] Re: SageWorld

2009-04-30 Thread Robert Bradshaw

On Apr 30, 2009, at 10:13 PM, William Stein wrote:

> On Thu, Apr 30, 2009 at 10:05 PM, Robert Bradshaw
>  wrote:
>>
>> On Apr 29, 2009, at 3:00 PM, Serge Salamanka wrote:
>>
>>> Is it a good idea to share objects between python processes with the
>>> help of any database ?
>>> Can't still find any decent tool for sharing objects. Saving and
>>> loading
>>> them in Sage seems to be a simple approach for user but not for an
>>> application to run.
>>
>> Though this isn't quite what you're looking for, it would be nice to
>> be able to "publish" an object just like one publishes a worksheet on
>> a public server. It would then give a url where the .sobj can be
>> downloaded (by anyone, so to send you an object I would write in a
>> notebook cell)
>>
>> publish(a)
>> http://sagenb.org/pub/unique_name.sobj
>>
>> which would return a url that's good as long as the server is live,
>> and you could send it to someone (e.g. via email or chat) and they
>> could load it with load("http://sagenb.org/pub/unique_name.sobj";).
>>  From the command line it could perhaps just save it as a file and
>> return the filename.
>>
>
> You can already do this.  In a worksheet, just do
>
> save(a,'a.sobj')
>
> then publish the worksheet that contains a, then there will be a link
> to the sobj.
> E.g., I just published http://sagenb.org/home/pub/505/ which contains
> such a link:
>
>http://sagenb.org/home/pub/505/cells/2/a.sobj
>
> Now anybody can do:
>
> teragon:~ wstein$ sage
> --
> | Sage Version 3.4.1, Release Date: 2009-04-21   |
> | Type notebook() for the GUI, and license() for information.|
> --
> sage: a = load('http://sagenb.org/home/pub/505/cells/2/a.sobj')
> Attempting to load remote file: http://sagenb.org/home/pub/505/ 
> cells/2/a.sobj
> Loading: [.]
> sage: a
> 'e!'

Ah, yes, you can. I still think it might be handy to be able to just  
publish objects detached from worksheets though. Taken one step  
further, being able to  "push" them too to a public place (though  
this opens a whole can of authentication/security issues).

- Robert


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: SageWorld

2009-04-30 Thread William Stein

On Thu, Apr 30, 2009 at 10:05 PM, Robert Bradshaw
 wrote:
>
> On Apr 29, 2009, at 3:00 PM, Serge Salamanka wrote:
>
>> Is it a good idea to share objects between python processes with the
>> help of any database ?
>> Can't still find any decent tool for sharing objects. Saving and
>> loading
>> them in Sage seems to be a simple approach for user but not for an
>> application to run.
>
> Though this isn't quite what you're looking for, it would be nice to
> be able to "publish" an object just like one publishes a worksheet on
> a public server. It would then give a url where the .sobj can be
> downloaded (by anyone, so to send you an object I would write in a
> notebook cell)
>
> publish(a)
> http://sagenb.org/pub/unique_name.sobj
>
> which would return a url that's good as long as the server is live,
> and you could send it to someone (e.g. via email or chat) and they
> could load it with load("http://sagenb.org/pub/unique_name.sobj";).
>  From the command line it could perhaps just save it as a file and
> return the filename.
>

You can already do this.  In a worksheet, just do

save(a,'a.sobj')

then publish the worksheet that contains a, then there will be a link
to the sobj.
E.g., I just published http://sagenb.org/home/pub/505/ which contains
such a link:

   http://sagenb.org/home/pub/505/cells/2/a.sobj

Now anybody can do:

teragon:~ wstein$ sage
--
| Sage Version 3.4.1, Release Date: 2009-04-21   |
| Type notebook() for the GUI, and license() for information.|
--
sage: a = load('http://sagenb.org/home/pub/505/cells/2/a.sobj')
Attempting to load remote file: http://sagenb.org/home/pub/505/cells/2/a.sobj
Loading: [.]
sage: a
'e!'

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: SageWorld

2009-04-30 Thread Robert Bradshaw

On Apr 29, 2009, at 3:00 PM, Serge Salamanka wrote:

> Is it a good idea to share objects between python processes with the
> help of any database ?
> Can't still find any decent tool for sharing objects. Saving and  
> loading
> them in Sage seems to be a simple approach for user but not for an
> application to run.

Though this isn't quite what you're looking for, it would be nice to  
be able to "publish" an object just like one publishes a worksheet on  
a public server. It would then give a url where the .sobj can be  
downloaded (by anyone, so to send you an object I would write in a  
notebook cell)

publish(a)
http://sagenb.org/pub/unique_name.sobj

which would return a url that's good as long as the server is live,  
and you could send it to someone (e.g. via email or chat) and they  
could load it with load("http://sagenb.org/pub/unique_name.sobj";).  
 From the command line it could perhaps just save it as a file and  
return the filename.

- Robert


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-04-30 Thread madison . michael

William,  Thanks I was able to compile sage 3.4.1 on my XP machine
starting from sage-vmware-sse2-3.4.1, which had failed work from the
binary, by following your directions.

For people that might know even less about linux than me the steps I
took were:

At the login type: login
The Passward is: sage
then type:

sudo su

1. Just delete /usr/local/sage, then
cd /usr/local; rm -rf sage
2. download sage-3.4.1.tar by typing
 wget http://sagemath.org/src/sage-3.4.1.tar
3. extract it,
  tar xvf sage-3.4.1.tar
4. move it to be /usr/local/sage, and
  mv sage-3.4.1 sage
5. type make.
   cd sage; make

Thanks Mike


On Apr 30, 2:34 pm, mabshoff  wrote:
> On Apr 30, 10:53 am, William Stein  wrote:
>
> > On Thu, Apr 30, 2009 at 10:43 AM, Iwan Lappo-Danilewski
>
> >  wrote:
>
> > > Have to report a similar problem on ubuntu 9.04..
> > > While version 3.2.3 is running as fine as the "sagemath" ubuntu
> > > package (3.0.5) the newest version won't start telling me
>
> > What is the output of cat /proc/cpuinfo on your computer?
>
> Well, I am not sure if gdb is installed in the VMWare image (it ought
> to be trivially installable into a real Linux install), but the
> following would be helpful to determine which instruction causes the
> problem.
>
> Start sage via gdb, i.e.
>
>  ./sage -gdb
>
> Tell it to run, i.e. press "r". Then it crashes. Punch in
>
> bt
> disass $pc-32 $pc+32
>
> and post the output :)
>
> Cheers,
>
> Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RSACryptosystem in Cryptography book (by Kohel) is ghost :? + small typo

2009-04-30 Thread Minh Nguyen

On Fri, May 1, 2009 at 12:39 AM, mabshoff
 wrote:
>



>> There are many typos and errors in Kohel's crypto book. Though the
>> book is licensed under a Creative Commons license, it seems that I'm
>> unable to find the LaTeX source in order to fix typos. Not sure if
>> Kohel has released the LaTeX source, though.
>
> David reads at least sage-devel on occasion, so you might want to ping
> him offlist.

Just did it :-)


> Getting the book debugged, current, the sources into some
> publicly available repo/tarball and eventually all the examples into
> Sage's tests directory might be a good idea ;)

-- 
Regards
Minh Van Nguyen

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: install/start up problem on OS X

2009-04-30 Thread Justin C. Walker


On Apr 30, 2009, at 17:37 , mabshoff wrote:
> On Apr 30, 4:58 pm, "Justin C. Walker"  wrote:
>> On Apr 30, 2009, at 12:08 , Michael Welsh wrote:
>>
>>> You've got an Intel computer, not a PPC. You should be downloading
>>> this DMG instead:
>>
>>> http://www.sagemath.org/bin/apple_osx/intel/sage-3.4.1-OSX10.5-Intel- 
>>> ...
>>
>> Shouldn't Rosetta handle this?
>
> One would think so, but apparently not. Is Rosetta even installed on
> 10.5 any more per default?

Yup.  It's part of the system.  Not everything PPC is supported by  
Rosetta, so I guess that the culprit uses some pretty funky  
instructions or instruction sequences.

FWIW, I can still run PPC code on 10.5.6, but I haven't tried anything  
really involved.

Justin

--
Justin C. Walker
Curmudgeon-at-large
Director
Institute for the Absorption of Federal Funds

186,000 Miles per Second
Not just a good idea:
   it's the law!



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RSACryptosystem in Cryptography book (by Kohel) is ghost :? + small typo

2009-04-30 Thread mabshoff



On Apr 30, 4:38 pm, Minh Nguyen  wrote:
> Hi,
>
> On Tue, Apr 28, 2009 at 7:09 PM, Jurgis Pralgauskis
>
>  wrote:
>
> > Hello,
>
> > just trying to follow examples ofhttp://www.sagemath.org/library/crypto.pdf
> > Exercise 8.5 solution: page nr 124  (or 127 for file) has suspicious
> > code
>
> > sage: E := RSACryptosystem(128)
> > sage: m = E.encoding(’The dog ate my lunch.’); m
>
> Strange! I don't remember there being an "RSACryptosystem" class.
>
> > first of all typo of assignment (seems like in Pascal)
>
> > then no such Class/method seems to exists -- not a big problem, but
> > just curiuous what happend to it..
>
> There are many typos and errors in Kohel's crypto book. Though the
> book is licensed under a Creative Commons license, it seems that I'm
> unable to find the LaTeX source in order to fix typos. Not sure if
> Kohel has released the LaTeX source, though.

David reads at least sage-devel on occasion, so you might want to ping
him offlist. Getting the book debugged, current, the sources into some
publicly available repo/tarball and eventually all the examples into
Sage's tests directory might be a good idea ;)

>
>
> > In advance Thanks for explanations :)
>
> --
> Regards
> Minh Van Nguyen

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: install/start up problem on OS X

2009-04-30 Thread mabshoff



On Apr 30, 4:58 pm, "Justin C. Walker"  wrote:
> On Apr 30, 2009, at 12:08 , Michael Welsh wrote:
>
>
>
> > You've got an Intel computer, not a PPC. You should be downloading
> > this DMG instead:
>
> >http://www.sagemath.org/bin/apple_osx/intel/sage-3.4.1-OSX10.5-Intel-...
>
> Shouldn't Rosetta handle this?

One would think so, but apparently not. Is Rosetta even installed on
10.5 any more per default?

> Justin

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: GAP still doesn't start in sage-3.4.1...

2009-04-30 Thread mabshoff



On Apr 28, 6:24 am, Johan Oudinet  wrote:
> Hi,

Hi Johan,

> I saw in trac that the ticket about my problem to start Sage in a
> Debian Lenny 64bit is closed since GAP was downgraded.

We closed it since the problem was seemingly related to the new GAP.

> I thought Sage-3.4.1 should now works on my server... but it still
> doesn't. And the problem is still the same. When I run sage for the
> first time, I got:
> *
> RuntimeError: Unable to start gap because the command 'gap -r -b -p -T
> -o G 
> /users/asspro/oudinet/projects/sage-3.4.1-linux-Debian_GNU_Linux_5.0_lenny-sse2-x86_64-Linux/data//extcode/gap/sage.g'
> failed.
>
> Error importing ipy_profile_sage - perhaps you should run %upgrade?
> WARNING: Loading of ipy_profile_sage failed.
> *
>
> Any clue?

Can you give a little more detail? By sheer accident it was just
revealed in IRC that inside a chroot env without the pty dev
filesystem mounted pexpect obviously doesn't work. Any chance this is
something that could have happened to you?

> --
> Johan

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: install/start up problem on OS X

2009-04-30 Thread Justin C. Walker


On Apr 30, 2009, at 12:08 , Michael Welsh wrote:

>
> You've got an Intel computer, not a PPC. You should be downloading
> this DMG instead:
>
> http://www.sagemath.org/bin/apple_osx/intel/sage-3.4.1-OSX10.5-Intel-i386-Darwin.dmg

Shouldn't Rosetta handle this?

Justin

--
Justin C. Walker
Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
--
Build a man a fire and he'll be warm
  for a night.
Set a man on fire and he'll be warm
  for the rest of his life.




--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: RSACryptosystem in Cryptography book (by Kohel) is ghost :? + small typo

2009-04-30 Thread Minh Nguyen

Hi,

On Tue, Apr 28, 2009 at 7:09 PM, Jurgis Pralgauskis
 wrote:
>
> Hello,
>
> just trying to follow examples of http://www.sagemath.org/library/crypto.pdf
> Exercise 8.5 solution: page nr 124  (or 127 for file) has suspicious
> code
>
> sage: E := RSACryptosystem(128)
> sage: m = E.encoding(’The dog ate my lunch.’); m

Strange! I don't remember there being an "RSACryptosystem" class.


> first of all typo of assignment (seems like in Pascal)
>
> then no such Class/method seems to exists -- not a big problem, but
> just curiuous what happend to it..

There are many typos and errors in Kohel's crypto book. Though the
book is licensed under a Creative Commons license, it seems that I'm
unable to find the LaTeX source in order to fix typos. Not sure if
Kohel has released the LaTeX source, though.

>
> In advance Thanks for explanations :)

-- 
Regards
Minh Van Nguyen

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: install/start up problem on OS X

2009-04-30 Thread mabshoff



On Apr 30, 2:05 pm, "Dr. R"  wrote:
> Thanks, I didn't see the Intel vs PowerPC links when I first did the
> download.

Well, I guess we should add a check to the startup script analog to
what we have for SSE instructions on Linux. This is now

  http://trac.sagemath.org/sage_trac/ticket/5950

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: memory leak?

2009-04-30 Thread mabshoff



On Apr 30, 9:15 am, opti  wrote:
> Michael,

Hi Iram,

> Thanks for your reply.
> I did the exact same thing under magma, and it consumes 14 meg.

Hehe, you know how to get us going :)

> Have you found anything new?

I did find the cause, but I have not found a fix yet. What seems to
happens is that for each p a multivariate polynomial ring in
libSingular is leaked - all the gory details are at

  http://trac.sagemath.org/sage_trac/ticket/5949

> Regards,
>
> Iram

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-04-30 Thread mabshoff



On Apr 30, 10:53 am, William Stein  wrote:
> On Thu, Apr 30, 2009 at 10:43 AM, Iwan Lappo-Danilewski
>
>  wrote:
>
> > Have to report a similar problem on ubuntu 9.04..
> > While version 3.2.3 is running as fine as the "sagemath" ubuntu
> > package (3.0.5) the newest version won't start telling me
>
> What is the output of cat /proc/cpuinfo on your computer?

Well, I am not sure if gdb is installed in the VMWare image (it ought
to be trivially installable into a real Linux install), but the
following would be helpful to determine which instruction causes the
problem.

Start sage via gdb, i.e.

 ./sage -gdb

Tell it to run, i.e. press "r". Then it crashes. Punch in

bt
disass $pc-32 $pc+32

and post the output :)

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: install/start up problem on OS X

2009-04-30 Thread Dr. R

Thanks, I didn't see the Intel vs PowerPC links when I first did the
download.

On Apr 30, 2:08 pm, Michael Welsh  wrote:
> You've got an Intel computer, not a PPC. You should be downloading  
> this DMG instead:
>
> http://www.sagemath.org/bin/apple_osx/intel/sage-3.4.1-OSX10.5-Intel-...
>
> On 1/05/2009, at 6:54 AM, Dr. R wrote:
>
>
>
>
>
>
>
> > I went to
>
> >http://www.sagemath.org/bin/apple_osx/
>
> > and downloaded
>
> >http://www.sagemath.org/bin/apple_osx/powerpc/sage-3.4.1-OSX-10.5-Pow...
>
> > On Apr 30, 1:22 pm, William Stein  wrote:
> >> On Thu, Apr 30, 2009 at 10:52 AM, Dr. R   
> >> wrote:
>
> >>> When I start Sage I get the following
>
> >>> mdrg5:~ rossetti$ /Applications/sage/sage ; exit;
> >>> --
> >>> | Sage Version 3.4.1, Release Date:  
> >>> 2009-04-21                       |
> >>> | Type notebook() for the GUI, and license() for  
> >>> information.        |
> >>> --
> >>> /Applications/sage/local/bin/sage-sage: line 198: 98590 Illegal
> >>> instruction     sage-ipython "$@" -i
> >>> logout
>
> >>> [Process completed]
>
> >>> 
> >>> I am running:
> >>>  System Version:       Mac OS X 10.5.6 (9G55)
> >>>  Kernel Version:       Darwin 9.6.0
> >>> on a
> >>> Model Name:     Mac Pro
> >>>  Model Identifier:     MacPro1,1
> >>>  Processor Name:       Dual-Core Intel Xeon
>
> >> *Precisely* which Sage dmg file did you download?
>
> >> William
>
> --http://yomcat.geek.nz
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: install/start up problem on OS X

2009-04-30 Thread Michael Welsh

You've got an Intel computer, not a PPC. You should be downloading  
this DMG instead:

http://www.sagemath.org/bin/apple_osx/intel/sage-3.4.1-OSX10.5-Intel-i386-Darwin.dmg

On 1/05/2009, at 6:54 AM, Dr. R wrote:

>
> I went to
>
> http://www.sagemath.org/bin/apple_osx/
>
> and downloaded
>
> http://www.sagemath.org/bin/apple_osx/powerpc/sage-3.4.1-OSX-10.5-PowerMacintosh-Darwin.dmg
>
>
> On Apr 30, 1:22 pm, William Stein  wrote:
>> On Thu, Apr 30, 2009 at 10:52 AM, Dr. R   
>> wrote:
>>
>>> When I start Sage I get the following
>>
>>> mdrg5:~ rossetti$ /Applications/sage/sage ; exit;
>>> --
>>> | Sage Version 3.4.1, Release Date:  
>>> 2009-04-21   |
>>> | Type notebook() for the GUI, and license() for  
>>> information.|
>>> --
>>> /Applications/sage/local/bin/sage-sage: line 198: 98590 Illegal
>>> instruction sage-ipython "$@" -i
>>> logout
>>
>>> [Process completed]
>>
>>> 
>>> I am running:
>>>  System Version:   Mac OS X 10.5.6 (9G55)
>>>  Kernel Version:   Darwin 9.6.0
>>> on a
>>> Model Name: Mac Pro
>>>  Model Identifier: MacPro1,1
>>>  Processor Name:   Dual-Core Intel Xeon
>>
>> *Precisely* which Sage dmg file did you download?
>>
>> William
> >

--
http://yomcat.geek.nz


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: install/start up problem on OS X

2009-04-30 Thread Dr. R

I went to

http://www.sagemath.org/bin/apple_osx/

and downloaded

http://www.sagemath.org/bin/apple_osx/powerpc/sage-3.4.1-OSX-10.5-PowerMacintosh-Darwin.dmg


On Apr 30, 1:22 pm, William Stein  wrote:
> On Thu, Apr 30, 2009 at 10:52 AM, Dr. R  wrote:
>
> > When I start Sage I get the following
>
> > mdrg5:~ rossetti$ /Applications/sage/sage ; exit;
> > --
> > | Sage Version 3.4.1, Release Date: 2009-04-21                       |
> > | Type notebook() for the GUI, and license() for information.        |
> > --
> > /Applications/sage/local/bin/sage-sage: line 198: 98590 Illegal
> > instruction     sage-ipython "$@" -i
> > logout
>
> > [Process completed]
>
> > 
> > I am running:
> >  System Version:       Mac OS X 10.5.6 (9G55)
> >  Kernel Version:       Darwin 9.6.0
> > on a
> > Model Name:     Mac Pro
> >  Model Identifier:     MacPro1,1
> >  Processor Name:       Dual-Core Intel Xeon
>
> *Precisely* which Sage dmg file did you download?
>
> William
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: install/start up problem on OS X

2009-04-30 Thread William Stein

On Thu, Apr 30, 2009 at 10:52 AM, Dr. R  wrote:
>
> When I start Sage I get the following
>
> mdrg5:~ rossetti$ /Applications/sage/sage ; exit;
> --
> | Sage Version 3.4.1, Release Date: 2009-04-21                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
> /Applications/sage/local/bin/sage-sage: line 198: 98590 Illegal
> instruction     sage-ipython "$@" -i
> logout
>
> [Process completed]
>
> 
> I am running:
>  System Version:       Mac OS X 10.5.6 (9G55)
>  Kernel Version:       Darwin 9.6.0
> on a
> Model Name:     Mac Pro
>  Model Identifier:     MacPro1,1
>  Processor Name:       Dual-Core Intel Xeon
>

*Precisely* which Sage dmg file did you download?

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] install/start up problem on OS X

2009-04-30 Thread Dr. R

When I start Sage I get the following

mdrg5:~ rossetti$ /Applications/sage/sage ; exit;
--
| Sage Version 3.4.1, Release Date: 2009-04-21   |
| Type notebook() for the GUI, and license() for information.|
--
/Applications/sage/local/bin/sage-sage: line 198: 98590 Illegal
instruction sage-ipython "$@" -i
logout

[Process completed]


I am running:
  System Version:   Mac OS X 10.5.6 (9G55)
  Kernel Version:   Darwin 9.6.0
on a
Model Name: Mac Pro
  Model Identifier: MacPro1,1
  Processor Name:   Dual-Core Intel Xeon

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-04-30 Thread William Stein

On Thu, Apr 30, 2009 at 10:43 AM, Iwan Lappo-Danilewski
 wrote:
>
> Have to report a similar problem on ubuntu 9.04..
> While version 3.2.3 is running as fine as the "sagemath" ubuntu
> package (3.0.5) the newest version won't start telling me

What is the output of cat /proc/cpuinfo on your computer?

>
>
> ~/aps/sage-3.4.1-linux-Ubuntu_8.10-sse2-i686-Linux$ ./sage
> --
> | Sage Version 3.4.1, Release Date: 2009-04-21                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
> ../aps/sage-3.4.1-linux-Ubuntu_8.10-sse2-i686-Linux/local/bin/sage-
> sage: line 198: 20057 Illegal instruction     sage-ipython "$@" -i
>
> Iwan
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-04-30 Thread Iwan Lappo-Danilewski

Have to report a similar problem on ubuntu 9.04..
While version 3.2.3 is running as fine as the "sagemath" ubuntu
package (3.0.5) the newest version won't start telling me


~/aps/sage-3.4.1-linux-Ubuntu_8.10-sse2-i686-Linux$ ./sage
--
| Sage Version 3.4.1, Release Date: 2009-04-21   |
| Type notebook() for the GUI, and license() for information.|
--
../aps/sage-3.4.1-linux-Ubuntu_8.10-sse2-i686-Linux/local/bin/sage-
sage: line 198: 20057 Illegal instruction sage-ipython "$@" -i

Iwan


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-04-30 Thread William Stein

On Thu, Apr 30, 2009 at 9:56 AM,   wrote:
>
> Just to clarify:
>
> Starting from my failed installation of sage-vmware-sse2-3.4.1 can i
> just change to the /usr/local/sage directory and type make to get a
> native compile?

Not exactly.  You must

1. Just delete /usr/local/sage, then
cd /usr/local; rm -rf sage
2. download sage-3.4.1.tar by typing
 wget http://sagemath.org/src/sage-3.4.1.tar
3. extract it,
  tar xvf sage-3.4.1.tar
4. move it to be /usr/local/sage, and
  mv sage-3.4.1 sage
5. type make.
   cd sage; make

William

>
> Thanks Mike
>
> On Apr 30, 8:45 am, William Stein  wrote:
>> On Thu, Apr 30, 2009 at 3:50 AM,   wrote:
>>
>> > 1.  Was this the type of CPU that this binary was supposed to work for
>> > (having sse2 and not sse3)?
>>
>> Maybe.  But the issue might not be just sse3.
>>
>>
>>
>> > 2. Is Sage migrating to work on only modern duel core CPUs?  I have
>> > compiled Sage 3.4 on an older processor Ubuntu linux notebook and it
>> > worked. Is this going away?
>>
>> No. No.  You can run Sage on nearly any CPU if you build from source.
>>
>> > 3.  Can I compile Sage using a vmware player or do I need to upgrade
>> > vmware to compile Sage?
>>
>> You can compile sage.  Just delete /usr/local/sage, then download
>> sage-3.4.1, extract it, move it to be /usr/local/sage, and
>> type make.   Wait a few hours.  That's precisely how I made the
>> current /usr/local/sage directory.
>>
>>
>>
>> > 4.  Can start from the failed installation of sage-vmware-sse2-3.4.1
>> > and do a native compile?
>>
>> Yes.
>>
>>
>>
>> > 5.  Can I do "sudo apt-get install" of the software components I need
>> > to compile Sage in vmware?
>>
>> You don't need any extra software components to compile sage in vmware.
>>
>> > It seems some of us using windows XP are locked out of using Sage 3.4,
>> > but we don't understand what the road block is.
>>
>> I don't think Windows XP is relevant.    It's your old processor.
>>
>>  -- William
>>
>>
>>
>>
>>
>>
>>
>> > Thanks Mike
>>
>> > On Apr 27, 11:37 am, madison.mich...@gmail.com wrote:
>> >> processor   : 0
>> >> vendor_id   : GenuineIntel
>> >> cpu family  : 6
>> >> model        : 13
>> >> model name  : Intel(R) Celeron(R) M processor 1.50GHz
>> >> stepping        : 8
>> >> cpu MHz       : 1476.382
>> >> cache size    : 1024 KB
>> >> fdiv_bug        : no
>> >> hlt_bug         : no
>> >> f00f_bug        : no
>> >> coma_bug     : no
>> >> fpu                : yes
>> >> fpu_exception : yes
>> >> cpuid level      : 2
>> >> wp                 : yes
>> >> flags              : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
>> >> pge mca cmov  pat clflush dts acpi mmx fxsr sse sse2 ss nx up
>> >> bogomips       : 3007.50
>>
>> >> Thanks Mike Madison
>>
>> >> On Apr 27, 11:20 am, William Stein  wrote:
>>
>> >> > On Mon, Apr 27, 2009 at 10:56 AM,   wrote:
>>
>> >> > > Sorry  I forgot to type sudo
>>
>> >> > > I got:
>>
>> >> > > /usr/local/sage/local/bin/sage-sage: line 198: 3586 Illegal
>> >> > > instruction sage-ipython "$@" -i
>>
>> >> > This means you can't run the Sage vmware image on your computer, i.e.,
>> >> > it is was built for a processor that is newer than yours.  What does
>> >> > the output of
>>
>> >> >    cat /proc/cpuinfo
>>
>> >> > say?
>>
>> >> > William
>>
>> --
>> William Stein
>> Associate Professor of Mathematics
>> University of Washingtonhttp://wstein.org- Hide quoted text -
>>
>> - Show quoted text -
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-04-30 Thread madison . michael

Just to clarify:

Starting from my failed installation of sage-vmware-sse2-3.4.1 can i
just change to the /usr/local/sage directory and type make to get a
native compile?

Thanks Mike

On Apr 30, 8:45 am, William Stein  wrote:
> On Thu, Apr 30, 2009 at 3:50 AM,   wrote:
>
> > 1.  Was this the type of CPU that this binary was supposed to work for
> > (having sse2 and not sse3)?
>
> Maybe.  But the issue might not be just sse3.
>
>
>
> > 2. Is Sage migrating to work on only modern duel core CPUs?  I have
> > compiled Sage 3.4 on an older processor Ubuntu linux notebook and it
> > worked. Is this going away?
>
> No. No.  You can run Sage on nearly any CPU if you build from source.
>
> > 3.  Can I compile Sage using a vmware player or do I need to upgrade
> > vmware to compile Sage?
>
> You can compile sage.  Just delete /usr/local/sage, then download
> sage-3.4.1, extract it, move it to be /usr/local/sage, and
> type make.   Wait a few hours.  That's precisely how I made the
> current /usr/local/sage directory.
>
>
>
> > 4.  Can start from the failed installation of sage-vmware-sse2-3.4.1
> > and do a native compile?
>
> Yes.
>
>
>
> > 5.  Can I do "sudo apt-get install" of the software components I need
> > to compile Sage in vmware?
>
> You don't need any extra software components to compile sage in vmware.
>
> > It seems some of us using windows XP are locked out of using Sage 3.4,
> > but we don't understand what the road block is.
>
> I don't think Windows XP is relevant.    It's your old processor.
>
>  -- William
>
>
>
>
>
>
>
> > Thanks Mike
>
> > On Apr 27, 11:37 am, madison.mich...@gmail.com wrote:
> >> processor   : 0
> >> vendor_id   : GenuineIntel
> >> cpu family  : 6
> >> model        : 13
> >> model name  : Intel(R) Celeron(R) M processor 1.50GHz
> >> stepping        : 8
> >> cpu MHz       : 1476.382
> >> cache size    : 1024 KB
> >> fdiv_bug        : no
> >> hlt_bug         : no
> >> f00f_bug        : no
> >> coma_bug     : no
> >> fpu                : yes
> >> fpu_exception : yes
> >> cpuid level      : 2
> >> wp                 : yes
> >> flags              : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
> >> pge mca cmov  pat clflush dts acpi mmx fxsr sse sse2 ss nx up
> >> bogomips       : 3007.50
>
> >> Thanks Mike Madison
>
> >> On Apr 27, 11:20 am, William Stein  wrote:
>
> >> > On Mon, Apr 27, 2009 at 10:56 AM,   wrote:
>
> >> > > Sorry  I forgot to type sudo
>
> >> > > I got:
>
> >> > > /usr/local/sage/local/bin/sage-sage: line 198: 3586 Illegal
> >> > > instruction sage-ipython "$@" -i
>
> >> > This means you can't run the Sage vmware image on your computer, i.e.,
> >> > it is was built for a processor that is newer than yours.  What does
> >> > the output of
>
> >> >    cat /proc/cpuinfo
>
> >> > say?
>
> >> > William
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: memory leak?

2009-04-30 Thread opti

Michael,
Thanks for your reply.
I did the exact same thing under magma, and it consumes 14 meg.
Have you found anything new?
Regards,

Iram

On Apr 29, 9:07 pm, mabshoff  wrote:
> On Apr 29, 11:11 am, opti  wrote:
>
> > Hello,
>
> Hi,
>
>
>
> > I am using sage 3.4
> > I have written a simple sage script to evalute the cardinal of Brent-
> > Suyama elliptic curves s=11
> > for primes < 2^27.
>
> > Memory usage increases till program (or machine) crashes.
>
> > The script is the following:
>
> > p=30
>
> >  def FindGroupOrder(p,s):
> >    K = GF(p)
> >    v = K(4*s)
> >    u = K(s**2-5)
> >    x = u**3
> >    b = 4*x*v
> >    a = (v-u)**3*(3*u+v)
> >    A = a/b-2
> >    x = x/v**3
> >    b = x**3 + A*x**2 + x
> >    E = EllipticCurve(K,[0,b*A,0,b**2,0])
> >    return factor(E.cardinality())
>
> > while p<134217689:
> >         p=next_prime(p)
> >         g=FindGroupOrder(p,11)
> >         print g
>
> > Any idea why this happens?
>
> I would guess it is a leak :)
>
> Running it up to p=966233 consumed about 2 GB - I will have a closer
> look. IIR there are some open memory leaks in that area of the code,
> but I should know more in a couple hours.
>
> > Regards,
>
> Cheers,
>
> Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-04-30 Thread William Stein

On Thu, Apr 30, 2009 at 3:50 AM,   wrote:
>
> 1.  Was this the type of CPU that this binary was supposed to work for
> (having sse2 and not sse3)?

Maybe.  But the issue might not be just sse3.

>
> 2. Is Sage migrating to work on only modern duel core CPUs?  I have
> compiled Sage 3.4 on an older processor Ubuntu linux notebook and it
> worked. Is this going away?

No. No.  You can run Sage on nearly any CPU if you build from source.

> 3.  Can I compile Sage using a vmware player or do I need to upgrade
> vmware to compile Sage?

You can compile sage.  Just delete /usr/local/sage, then download
sage-3.4.1, extract it, move it to be /usr/local/sage, and
type make.   Wait a few hours.  That's precisely how I made the
current /usr/local/sage directory.

>
> 4.  Can start from the failed installation of sage-vmware-sse2-3.4.1
> and do a native compile?

Yes.

>
> 5.  Can I do "sudo apt-get install" of the software components I need
> to compile Sage in vmware?

You don't need any extra software components to compile sage in vmware.

> It seems some of us using windows XP are locked out of using Sage 3.4,
> but we don't understand what the road block is.

I don't think Windows XP is relevant.It's your old processor.

 -- William

>
> Thanks Mike
>
> On Apr 27, 11:37 am, madison.mich...@gmail.com wrote:
>> processor   : 0
>> vendor_id   : GenuineIntel
>> cpu family  : 6
>> model        : 13
>> model name  : Intel(R) Celeron(R) M processor 1.50GHz
>> stepping        : 8
>> cpu MHz       : 1476.382
>> cache size    : 1024 KB
>> fdiv_bug        : no
>> hlt_bug         : no
>> f00f_bug        : no
>> coma_bug     : no
>> fpu                : yes
>> fpu_exception : yes
>> cpuid level      : 2
>> wp                 : yes
>> flags              : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
>> pge mca cmov  pat clflush dts acpi mmx fxsr sse sse2 ss nx up
>> bogomips       : 3007.50
>>
>> Thanks Mike Madison
>>
>> On Apr 27, 11:20 am, William Stein  wrote:
>>
>> > On Mon, Apr 27, 2009 at 10:56 AM,   wrote:
>>
>> > > Sorry  I forgot to type sudo
>>
>> > > I got:
>>
>> > > /usr/local/sage/local/bin/sage-sage: line 198: 3586 Illegal
>> > > instruction sage-ipython "$@" -i
>>
>> > This means you can't run the Sage vmware image on your computer, i.e.,
>> > it is was built for a processor that is newer than yours.  What does
>> > the output of
>>
>> >    cat /proc/cpuinfo
>>
>> > say?
>>
>> > William
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Failure running sage-vmware-sse2-3.4.1

2009-04-30 Thread madison . michael

1.  Was this the type of CPU that this binary was supposed to work for
(having sse2 and not sse3)?

2. Is Sage migrating to work on only modern duel core CPUs?  I have
compiled Sage 3.4 on an older processor Ubuntu linux notebook and it
worked. Is this going away?

3.  Can I compile Sage using a vmware player or do I need to upgrade
vmware to compile Sage?

4.  Can start from the failed installation of sage-vmware-sse2-3.4.1
and do a native compile?

5.  Can I do "sudo apt-get install" of the software components I need
to compile Sage in vmware?

It seems some of us using windows XP are locked out of using Sage 3.4,
but we don't understand what the road block is.

Thanks Mike

On Apr 27, 11:37 am, madison.mich...@gmail.com wrote:
> processor   : 0
> vendor_id   : GenuineIntel
> cpu family  : 6
> model        : 13
> model name  : Intel(R) Celeron(R) M processor 1.50GHz
> stepping        : 8
> cpu MHz       : 1476.382
> cache size    : 1024 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug     : no
> fpu                : yes
> fpu_exception : yes
> cpuid level      : 2
> wp                 : yes
> flags              : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
> pge mca cmov  pat clflush dts acpi mmx fxsr sse sse2 ss nx up
> bogomips       : 3007.50
>
> Thanks Mike Madison
>
> On Apr 27, 11:20 am, William Stein  wrote:
>
> > On Mon, Apr 27, 2009 at 10:56 AM,   wrote:
>
> > > Sorry  I forgot to type sudo
>
> > > I got:
>
> > > /usr/local/sage/local/bin/sage-sage: line 198: 3586 Illegal
> > > instruction sage-ipython "$@" -i
>
> > This means you can't run the Sage vmware image on your computer, i.e.,
> > it is was built for a processor that is newer than yours.  What does
> > the output of
>
> >    cat /proc/cpuinfo
>
> > say?
>
> > William
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---