[sage-support] Re: installing binary of sage-3.4.1 OSX10.4 on G4

2009-05-02 Thread curious

This problem is not unique, I am having the identical problem. No my
system is not screwed up, nor
is it anything to to with intel/powerpc mixup. When I click on the
sage folder in the .dmg file, my cursor
turns into to the international circle-with-slash. Downloaded several
times, and tried to drag and copy
on several flavors of mac. Is there a lock on the contents of
the .dmg???
David Galant

On May 2, 8:25 am, Michael Welsh yom...@yomcat.geek.nz wrote:
 Look in Console (in your Utilities Folder - cmd-shift-u). There might  
 be something related in there.
 On 2/05/2009, at 2:31 PM, nickname wrote:

  When I say I cannot move the sage folder, I mean, it just jumps back
  into the .dmg package with NO complaints or error messages. I have no
  evidence of any problem with my OSX

 --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] Update R to the 2.9 release with milestone Sage 4.0

2009-05-02 Thread Rolandb

Hi

Ticket #3086 states Update R to the 2.7 release and split off
rpy.spkg with milestone Sage 4.0.

If possible, two requests:

1) Update R to the latest 2.9 release  (now sage 3.4 uses R version
2.6.1 (2007-11-26))

2) To use R one has to load various additional packages. For instance
I use the following lines:

import rpy
pack=[abind, distr, distrEx, e1071, effects, foreign,
grid, lattice, lmtest, MASS, mgcv, multcomp,Rcmdr]
for p in pack: r.install_packages(p)

As the policy of Sage is all inclusive, I suggest rpy includes the
most common R packages.

Thanks in advance!

Roland
--~--~-~--~~~---~--~~
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: Update R to the 2.9 release with milestone Sage 4.0

2009-05-02 Thread William Stein

On Sat, May 2, 2009 at 12:26 AM, Rolandb rola...@planet.nl wrote:

 Hi

 Ticket #3086 states Update R to the 2.7 release and split off
 rpy.spkg with milestone Sage 4.0.

 If possible, two requests:

 1) Update R to the latest 2.9 release  (now sage 3.4 uses R version
 2.6.1 (2007-11-26))

 2) To use R one has to load various additional packages. For instance
 I use the following lines:

 import rpy
 pack=[abind, distr, distrEx, e1071, effects, foreign,
 grid, lattice, lmtest, MASS, mgcv, multcomp,Rcmdr]
 for p in pack: r.install_packages(p)

 As the policy of Sage is all inclusive, I suggest rpy includes the
 most common R packages.

 Thanks in advance!

Is there any chance you could help with making the above happen?  You
might be the biggest user of R in Sage in the world.

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: GAP still doesn't start in sage-3.4.1...

2009-05-02 Thread Johan Oudinet

On Fri, May 1, 2009 at 11:13 PM, mabshoff
michael.absh...@mathematik.uni-dortmund.de wrote:



 On May 1, 5:48 am, Johan Oudinet johan.oudi...@gmail.com wrote:
 On Fri, May 1, 2009 at 2:24 AM, mabshoff

 SNIP

 Hi Johan,

  Can you give a little more detail? By sheer accident it was just

 Well, this is exactly what I've done:
 0) ssh to the server as a normal user.
 1) download 
 sage-3.4.1-linux-Debian_GNU_Linux_5.0_lenny-sse2-x86_64-Linux.tar.gz
 from France mirror
 2) decompress it (tar xzf)
 3) cd sage-3.4.1-linux-Debian_GNU_Linux_5.0_lenny-sse2-x86_64-Linux
 4) ./sage

 Ok. Does gap start by itself, i.e. ./sage -gap?

 What more detail can I give you?
 $ uname -a
 Linux serveur-fortesse 2.6.24-22-xen #1 SMP Mon Nov 24 21:35:54 UTC
 2008 x86_64 GNU/Linux

  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?

 I don't think so... AFAIK, I didn't run sage from a chroot env. But I
 don't know if 'pty dev filesystem' was mounted. What should I do to
 verify this?

 Please post the output of mount. I am not sure what else related to
 xen could be a factor here.

$ mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
automount(pid2614) on /local type autofs
(rw,fd=4,pgrp=2614,minproto=2,maxproto=4)
automount(pid2642) on /users type autofs
(rw,fd=4,pgrp=2642,minproto=2,maxproto=4)
automount(pid2872) on /tmpsim type autofs
(rw,fd=4,pgrp=2872,minproto=2,maxproto=4)
automount(pid2962) on /special type autofs
(rw,fd=4,pgrp=2962,minproto=2,maxproto=4)
netapp2:/vol/Logiciels/Fortesse on /special/fortesse type nfs
(rw,intr,soft,addr=129.175.1.2)
netapp-11:/vol/Equipe_asspro/asspro on /users/asspro type nfs
(rw,nosuid,intr,hard,tcp,timeo=600,retrans=2,addr=129.175.1.7)

And I try to run Sage from /users/asspro

 Have you used and/or installed another version of GAP independently of Sage?

No.

 Is there any Sage release that ever worked on your platform?

No (I've tried since Sage-3.2.3)

-- 
Johan
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

--~--~-~--~~~---~--~~
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-05-02 Thread mabshoff



On May 2, 1:29 am, William Stein wst...@gmail.com wrote:
 On Sat, May 2, 2009 at 1:27 AM, Johan Oudinet johan.oudi...@gmail.com wrote:

SNIP

  $ mount
  /dev/hda1 on / type ext3 (rw,errors=remount-ro)
  tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
  proc on /proc type proc (rw,noexec,nosuid,nodev)
  sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
  udev on /dev type tmpfs (rw,mode=0755)
  fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
  automount(pid2614) on /local type autofs
  (rw,fd=4,pgrp=2614,minproto=2,maxproto=4)
  automount(pid2642) on /users type autofs
  (rw,fd=4,pgrp=2642,minproto=2,maxproto=4)
  automount(pid2872) on /tmpsim type autofs
  (rw,fd=4,pgrp=2872,minproto=2,maxproto=4)
  automount(pid2962) on /special type autofs
  (rw,fd=4,pgrp=2962,minproto=2,maxproto=4)
  netapp2:/vol/Logiciels/Fortesse on /special/fortesse type nfs
  (rw,intr,soft,addr=129.175.1.2)
  netapp-11:/vol/Equipe_asspro/asspro on /users/asspro type nfs
  (rw,nosuid,intr,hard,tcp,timeo=600,retrans=2,addr=129.175.1.7)

  And I try to run Sage from /users/asspro

Ok.

 Is there enough space so you could try doing everything in /tmp or
 /local or some other *non*-NSF local partition?

Gonzalo had the exact same problem about GAP not starting up when he
was playing around with a Debian chroot env and it turned out that he
needed to mount devpts. According to the output above that (pseudo)
filesystem is not mounted, so before trying anything else I would
recommend to mount it. The kernel might or might not support it out of
the box (since it is a Debian kernel it should). devpts should be
mounted by udev it seems per default, but check out

   http://linux.derkeiler.com/Newsgroups/comp.os.linux.setup/2005-03/0473.html

on how to mount it.  If this turns out to the cause it seems well
worth an entry in the FAQ as well as README.txt since this is a rather
obscure problem. Even adding a check in Sage somewhere to verify that
the devpts is mounted on startup of Sage might be worth it.

 william

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: Help on creating packages/modules

2009-05-02 Thread simon . king

Dear Sage-Support,

off-list, Robert pointed me to the source of the problem.

In my original setup.py, I used the optional parameter ext_package,
according to http://docs.python.org/distutils/setupscript.html:
-
If you have a number of extensions all in the same package (or all
under the same base package), use the ext_package keyword argument to
setup(). For example,

setup(...,
  ext_package='pkg',
  ext_modules=[Extension('foo', ['foo.c']),
   Extension('subpkg.bar', ['bar.c'])],
 )

will compile foo.c to the extension pkg.foo, and bar.c to
pkg.subpkg.bar.


Robert pointed out that this is not supported by Cython. With
examples, we found that it *is* supported if one only has .pyx-files,
but it fails as soon as one has .pxd-files. One has to provide the
fully qualified package name.

Moreover, in order to get the right package name hardcoded into the
modules, the source directory names have to match the package name.

I changed my sources and setup.py accordingly, removed the build/
directory that was created by python setup.py install, and tried
again -- and still it failed!

Robert then pointed out that it does not suffice to remove (or empty)
the build/ directory --- I was not aware that the Cython-generated c-
files for the extension modules reside in the source directory. They
have to be removed, too, before rebuilding.

Now it works, including pickling.

Thank you, Robert!
  Simon

--~--~-~--~~~---~--~~
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-05-02 Thread John Cremona

When an elliptic curve is created the code in the __init__ function in
ell_generic.py (lines 164-5) do cause a multivariate polynomial ring
to be created.  In this case it's a new ring each time as the base
field is always a new field.

The reason this is done is that the elliptic curve class derives from
the plane curve class, which is created from a homogeneous polynomial
in three variables.  However at least 95% (at a guess) of elliptic
curve functionality does not depend at all on the base class (one
exception is checking that points lie on the curve, and even that was
not the case until the recent patch by Alex Ghitza).

So, when you create a large number of curves over different fields you
do also create all these rings.  However, in the example in the
original post, these elliptic curves do not remain in scope, so I
don't know why the rings are not garbage-collected away.

John

On May 1, 10:00 pm, mabshoff michael.absh...@mathematik.uni-
dortmund.de wrote:
 On May 1, 12:12 pm, Robert Bradshaw rober...@math.washington.edu
 wrote:

 SNIP

   No that I have a clue how to debug this, so I will poke RobertWB - I
   am sure he has nothing better to do that to dive into this problem and
   will be happy to debug this ;)

  Yep, I bet coercion is leaking rings. I'll look at this during Sage  
  days, if not sooner.

 Thanks, I ought to look over your shoulder to get an idea on how to
 attack those leaks in the future :)

  - Robert

 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-05-02 Thread simon . king

Dear John,

On 2 Mai, 18:39, John Cremona john.crem...@gmail.com wrote:
 When an elliptic curve is created the code in the __init__ function in
 ell_generic.py (lines 164-5) do cause a multivariate polynomial ring
 to be created.  In this case it's a new ring each time as the base
 field is always a new field.

How is the multivariate polynomial ring created?

I remember that recently Martin Albrecht was fixing some bug: Here, a
multivariate polynomial ring was created without using the
PolynomialRing constructor, violating uniqueness of parents.

But if, in your case, you create a polynomial ring, work with it, and
then want it to be garbage collected, then perhaps it would be a good
idea to *not* use the PolynomialRing constructor: If the resulting
ring is cached (- uniqueness of Parent Structures) then it would not
be garbage collected, or would it?

Best regards,
Simon

--~--~-~--~~~---~--~~
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-05-02 Thread John Cremona



On May 2, 5:55 pm, simon.k...@uni-jena.de wrote:
 Dear John,

 On 2 Mai, 18:39, John Cremona john.crem...@gmail.com wrote:

  When an elliptic curve is created the code in the __init__ function in
  ell_generic.py (lines 164-5) do cause a multivariate polynomial ring
  to be created.  In this case it's a new ring each time as the base
  field is always a new field.

 How is the multivariate polynomial ring created?

First the projective plane is constructed, effectively by
PP=ProjectiveSpace(2,K), and then the ring by PP.coordinate_ring(),
which calls
 PolynomialRing(self.base_ring(),
   self.variable_names(),
self.dimension_relative()+1)
so in effect we call PolynomialRing(K).

John


 I remember that recently Martin Albrecht was fixing some bug: Here, a
 multivariate polynomial ring was created without using the
 PolynomialRing constructor, violating uniqueness of parents.

 But if, in your case, you create a polynomial ring, work with it, and
 then want it to be garbage collected, then perhaps it would be a good
 idea to *not* use the PolynomialRing constructor: If the resulting
 ring is cached (- uniqueness of Parent Structures) then it would not
 be garbage collected, or would it?

 Best regards,
     Simon
--~--~-~--~~~---~--~~
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: Sage RSS reader in firefox and .xml .rss in SAGE

2009-05-02 Thread Serge Salamanka

Sage RSS reader really does have a nice look.
Its simplicity and integration with firefox bookmarks are very useful.

What I'm thinking now is how it could be interesting to follow
publishing of new notebooks of my colleagues at their own institutional
Sage servers.

It just needs to put XML file into /pub directory when you are
publishing notebook and then someone subscribes for this RSS with any
RSS reader (preferably Sage) to read about new sage notebooks.

I will try to find out how to do that.
Suggestions are welcome.

Serge

Serge Salamanka пишет:
 I've just remembered about the Sage RSS reader and an idea to integrate
 it with SAGE came to mind.
 It would be very useful to have a possibility of publishing information
 about new worksheets available or updates or anything else in RSS format
 and very nice to read using Sage RSS reader plugin for firefox.
 
 Don't know whether it has already been discussed but post it to the list
  for developers attention...
 
 
 Serge
 
  
 

--~--~-~--~~~---~--~~
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] [help!] problem with sage-vmware 3.4.1 on windows xp

2009-05-02 Thread Alessandro Torre

Hello to everybody.
I can't make Sage works on windows and I'm going crazy.

When typing sage or notebook on the welcome screen of the VMware
Player nothing happens.
If I type manage and then sage the following message appears:

--
| Sage Version 3.4.1, (etc..) |
--
usr/local/sage/local/bin/sage-sage: line 198:  3558 Illegal
instruction sage-ipython $@ -i


What have I missed?

VMware 2.5.2 on Windows XP sp3 .
AMD Athlon 64 Processor 3000+ 2.00 GHz, 1.50 GB Ram
0 MB Paging File

Is it possible that my processor is obsolete for this version of Sage?
I've set my paging file to 0 MB. Could it be a problem?

Thanks in advance.
Alessandro

--~--~-~--~~~---~--~~
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: Numerical precision

2009-05-02 Thread Fidel

Sorry, I thought the discussion wouldn't appear.

I did a more detailed post about the same question, here is the link

http://groups.google.com/group/sage-support/browse_thread/thread/ba920658ffcac2d1

I am so sorry,
Fidel

On May 2, 1:03 pm, Fidel fidel.barr...@gmail.com wrote:
 Hello,

 I'm working in sage 3.4.1.

 I have a variable, x=6.12303176911189e-17, which I got from

 sage: x=graphs.PetersenGraph().get_pos()[0][0]

 I would like to ask sage to approximate te value of x up to two
 decimals, that is, 0.00.

 This is what I have tried

 sage: numerical_approx(x,digits=2)
 6.1e-17
 sage: n(x,digits=2)
 6.1e-17

 Is there a way of getting 0.00 as output?

 Thank you very much for your attention.

 Greetings,
 Fidel
--~--~-~--~~~---~--~~
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] Numerical approximation

2009-05-02 Thread Fidel


Hello,

I think I tried to post this about an hour ago, but the discussion
didn't show up. So I'm doing it again, sorry in case it is repeated.

I am working in sage 3.4.1

I am trying to define a function to get the LaTeX string of a graph,
so I am trying to convert a number to string.

I have x=6.1230317691118863e-17, which I got from

sage: x=graphs.PetersenGraph().get_pos()[0][0]

I would like a two decimal approximation of x, that is 0.00.

I have tried

sage: numerical_approx(x,digits=2)
6.1e-17
sage: n(x,digits=2)
6.1e-17

Is there a way to get 0.00 as output?

Thanks in advance for your attention and help.

Greetings,
Fidel

--~--~-~--~~~---~--~~
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: Numerical approximation

2009-05-02 Thread Utpal Sarkar

sage: round(x,2)
0.0
To show it really does what you want:
sage: round(1.2345,2)
1.23


On May 2, 8:35 pm, Fidel fidel.barr...@gmail.com wrote:
 Hello,

 I think I tried to post this about an hour ago, but the discussion
 didn't show up. So I'm doing it again, sorry in case it is repeated.

 I am working in sage 3.4.1

 I am trying to define a function to get the LaTeX string of a graph,
 so I am trying to convert a number to string.

 I have x=6.1230317691118863e-17, which I got from

 sage: x=graphs.PetersenGraph().get_pos()[0][0]

 I would like a two decimal approximation of x, that is 0.00.

 I have tried

 sage: numerical_approx(x,digits=2)
 6.1e-17
 sage: n(x,digits=2)
 6.1e-17

 Is there a way to get 0.00 as output?

 Thanks in advance for your attention and help.

 Greetings,
 Fidel
--~--~-~--~~~---~--~~
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] Numerical precision

2009-05-02 Thread Fidel

Hello,

I'm working in sage 3.4.1.

I have a variable, x=6.12303176911189e-17, which I got from

sage: x=graphs.PetersenGraph().get_pos()[0][0]

I would like to ask sage to approximate te value of x up to two
decimals, that is, 0.00.

This is what I have tried

sage: numerical_approx(x,digits=2)
6.1e-17
sage: n(x,digits=2)
6.1e-17

Is there a way of getting 0.00 as output?

Thank you very much for your attention.

Greetings,
Fidel




--~--~-~--~~~---~--~~
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: installing binary of sage-3.4.1 OSX10.4 on G4

2009-05-02 Thread curious

This problem is just that the folder sage in the dmg cannot be copied.
However,
the contents of the folder _can_ be copied, so the solution is to
create a folder
somewhere on the machine hard disk (or an external disk) and copy the
contents
of the folder sage on the dmg to the new folder.

David Galant

On May 2, 9:34 am, curious davidgal...@gmail.com wrote:
 This problem is not unique, I am having the identical problem. No my
 system is not screwed up, nor
 is it anything to to with intel/powerpc mixup. When I click on the
 sage folder in the .dmg file, my cursor
 turns into to the international circle-with-slash. Downloaded several
 times, and tried to drag and copy
 on several flavors of mac. Is there a lock on the contents of
 the .dmg???
 David Galant

 On May 2, 8:25 am, Michael Welsh yom...@yomcat.geek.nz wrote:

  Look in Console (in your Utilities Folder - cmd-shift-u). There might  
  be something related in there.
  On 2/05/2009, at 2:31 PM, nickname wrote:

   When I say I cannot move the sage folder, I mean, it just jumps back
   into the .dmg package with NO complaints or error messages. I have no
   evidence of any problem with my OSX

  --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: installing binary of sage-3.4.1 OSX10.4 on G4

2009-05-02 Thread nickname

Thank you very much! This may have worked. When first started, sage
complained about not have the folder spkg. In fact, it did not and I
just added the older one from 3.4. I hope that's OK.

armand

On May 2, 3:08 pm, curious davidgal...@gmail.com wrote:
 This problem is just that the folder sage in the dmg cannot be copied.
 However,
 the contents of the folder _can_ be copied, so the solution is to
 create a folder
 somewhere on the machine hard disk (or an external disk) and copy the
 contents
 of the folder sage on the dmg to the new folder.

 David Galant

 On May 2, 9:34 am, curious davidgal...@gmail.com wrote:

  This problem is not unique, I am having the identical problem. No my
  system is not screwed up, nor
  is it anything to to with intel/powerpc mixup. When I click on the
  sage folder in the .dmg file, my cursor
  turns into to the international circle-with-slash. Downloaded several
  times, and tried to drag and copy
  on several flavors of mac. Is there a lock on the contents of
  the .dmg???
  David Galant

  On May 2, 8:25 am, Michael Welsh yom...@yomcat.geek.nz wrote:

   Look in Console (in your Utilities Folder - cmd-shift-u). There might  
   be something related in there.
   On 2/05/2009, at 2:31 PM, nickname wrote:

When I say I cannot move the sage folder, I mean, it just jumps back
into the .dmg package with NO complaints or error messages. I have no
evidence of any problem with my OSX

   --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: [help!] problem with sage-vmware 3.4.1 on windows xp

2009-05-02 Thread William Stein

On Sat, May 2, 2009 at 8:53 AM, Alessandro Torre
adessobastadavv...@gmail.com wrote:

 Hello to everybody.
 I can't make Sage works on windows and I'm going crazy.

 When typing sage or notebook on the welcome screen of the VMware
 Player nothing happens.
 If I type manage and then sage the following message appears:

 --
 | Sage Version 3.4.1, (etc..) |
 --
 usr/local/sage/local/bin/sage-sage: line 198:  3558 Illegal
 instruction     sage-ipython $@ -i


 What have I missed?

 VMware 2.5.2 on Windows XP sp3 .
 AMD Athlon 64 Processor 3000+ 2.00 GHz, 1.50 GB Ram
 0 MB Paging File

 Is it possible that my processor is obsolete for this version of Sage?

Yes.

What is the output of

   cat /proc/cpuinfo

after you login as manage?

Anyway, you might have to build Sage from source.  This is actually
easier than you might think.  Do all of the following after login as
manage and typing  sudo su.

1. 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 xf sage-3.4.1.tar
4. move it to be /usr/local/sage, and
 mv sage-3.4.1 sage
5. build Sage -- this will take a few hours (no manual intervention):
  cd sage; make

 I've set my paging file to 0 MB. Could it be a problem?

You could try setting it larger and see what happens.

 -- 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: Sage RSS reader in firefox and .xml .rss in SAGE

2009-05-02 Thread William Stein

On Sat, May 2, 2009 at 11:01 AM, Serge Salamanka salsa-...@tut.by wrote:

 Sage RSS reader really does have a nice look.
 Its simplicity and integration with firefox bookmarks are very useful.

 What I'm thinking now is how it could be interesting to follow
 publishing of new notebooks of my colleagues at their own institutional
 Sage servers.

 It just needs to put XML file into /pub directory when you are
 publishing notebook and then someone subscribes for this RSS with any
 RSS reader (preferably Sage) to read about new sage notebooks.

 I will try to find out how to do that.
 Suggestions are welcome.

You would have to modify
SAGE_ROOT/devel/sage/sage/server/notebook/twist.py and add a new
resource that serves up the XML file.

It's pretty amusing to combine the two sages :-)

William


 Serge

 Serge Salamanka пишет:
 I've just remembered about the Sage RSS reader and an idea to integrate
 it with SAGE came to mind.
 It would be very useful to have a possibility of publishing information
 about new worksheets available or updates or anything else in RSS format
 and very nice to read using Sage RSS reader plugin for firefox.

 Don't know whether it has already been discussed but post it to the list
  for developers attention...


 Serge

 


 




-- 
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: installing binary of sage-3.4.1 OSX10.4 on G4

2009-05-02 Thread Justin Walker


On May 2, 2009, at 12:08 PM, curious wrote:


 This problem is just that the folder sage in the dmg cannot be copied.
 However,
 the contents of the folder _can_ be copied, so the solution is to
 create a folder
 somewhere on the machine hard disk (or an external disk) and copy the
 contents
 of the folder sage on the dmg to the new folder.

I think that the issue is that the .dmg is mounted as a read-only disk  
image.  The intent of the .dmg is to act as a distribution alternative  
to DVDs (so you can download them, instead of waiting for them to  
arrive in the mail :-}).

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: Sage RSS reader in firefox and .xml .rss in SAGE

2009-05-02 Thread Serge Salamanka



William Stein пишет:
 On Sat, May 2, 2009 at 11:01 AM, Serge Salamanka salsa-...@tut.by wrote:
 Sage RSS reader really does have a nice look.
 Its simplicity and integration with firefox bookmarks are very useful.

 What I'm thinking now is how it could be interesting to follow
 publishing of new notebooks of my colleagues at their own institutional
 Sage servers.

 It just needs to put XML file into /pub directory when you are
 publishing notebook and then someone subscribes for this RSS with any
 RSS reader (preferably Sage) to read about new sage notebooks.

 I will try to find out how to do that.
 Suggestions are welcome.
 
 You would have to modify
 SAGE_ROOT/devel/sage/sage/server/notebook/twist.py and add a new
 resource that serves up the XML file.
 
It is quite new to me but very interesting.
I'll search for a python script to create XML files for RSS feeds.

I would appreciate if you could describe shortly the steps to add such
functionality as a guideline for a newbie developer.

 It's pretty amusing to combine the two sages :-)
 
 William
 
... and a combiner is Serge :)))
(that mostly amuses me)

 Serge

 Serge Salamanka пишет:
 I've just remembered about the Sage RSS reader and an idea to integrate
 it with SAGE came to mind.
 It would be very useful to have a possibility of publishing information
 about new worksheets available or updates or anything else in RSS format
 and very nice to read using Sage RSS reader plugin for firefox.

 Don't know whether it has already been discussed but post it to the list
  for developers attention...


 Serge

 
 
 

--~--~-~--~~~---~--~~
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: [help!] problem with sage-vmware 3.4.1 on windows xp

2009-05-02 Thread mabshoff



On May 2, 2:04 pm, William Stein wst...@gmail.com wrote:
 On Sat, May 2, 2009 at 8:53 AM, Alessandro Torre

SNIP

  Is it possible that my processor is obsolete for this version of Sage?

 Yes.

 What is the output of

    cat /proc/cpuinfo

I doubt this will be helpful. Having thought about this for a while my
guess is that some of the instructions used in MPIR might cause this.
When I wrote a script to detect advanced instructions I only
concentrated on SSE instructions since back then it was the major (and
only known) problem. If gdb is installed in the VMWare image we can
start Sage under gdb, get a back trace (to figure out which library it
is) and then disassemble around the current pc so that I can fix
this :)

So far no one has provided information to what is wrong, i.e. which
instruction[s] in what library causes this, so I cannot even start to
fix this.

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: Update R to the 2.9 release with milestone Sage 4.0

2009-05-02 Thread Rolandb

Release 4.0 is soon. So I suggest we split the work.

1) Update R to the latest 2.9 release (ticket #3086)
I have no development experiences, but I assume that updating is a
straightforward activity (but maybe I'm wrong).

2) Loading common packages in advance.
After release 4.0 we look how many users have the same needs. If its
really worthwhile, we can consider to take the next step.

Roland

On 2 mei, 09:30, William Stein wst...@gmail.com wrote:
 On Sat, May 2, 2009 at 12:26 AM, Rolandb rola...@planet.nl wrote:

  Hi

  Ticket #3086 states Update R to the 2.7 release and split off
  rpy.spkg with milestone Sage 4.0.

  If possible, two requests:

  1) Update R to the latest 2.9 release  (now sage 3.4 uses R version
  2.6.1 (2007-11-26))

  2) To use R one has to load various additional packages. For instance
  I use the following lines:

  import rpy
  pack=[abind, distr, distrEx, e1071, effects, foreign,
  grid, lattice, lmtest, MASS, mgcv, multcomp,Rcmdr]
  for p in pack: r.install_packages(p)

  As the policy of Sage is all inclusive, I suggest rpy includes the
  most common R packages.

  Thanks in advance!

 Is there any chance you could help with making the above happen?  You
 might be the biggest user of R in Sage in the world.

 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: Update R to the 2.9 release with milestone Sage 4.0

2009-05-02 Thread mabshoff



On May 2, 3:27 pm, Rolandb rola...@planet.nl wrote:
 Release 4.0 is soon. So I suggest we split the work.

 1) Update R to the latest 2.9 release (ticket #3086)
 I have no development experiences, but I assume that updating is a
 straightforward activity (but maybe I'm wrong).

I doubt it will be straightforward - nothing ever is :). R has
suggested in 2.6 that some time in the future libintl will be
mandatory. If that is the case we will have problems.

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-05-02 Thread Alex Ghitza

   When an elliptic curve is created the code in the __init__ function in
   ell_generic.py (lines 164-5) do cause a multivariate polynomial ring
   to be created.  In this case it's a new ring each time as the base
   field is always a new field.

  How is the multivariate polynomial ring created?

 First the projective plane is constructed, effectively by
 PP=ProjectiveSpace(2,K), and then the ring by PP.coordinate_ring(),
 which calls
  PolynomialRing(self.base_ring(),
                                self.variable_names(),
 self.dimension_relative()+1)
 so in effect we call PolynomialRing(K).

 John

 Well, is there any way to avoid this? It seems like a bad thing to
 waste a couple GB on rings that in the end aren't used any more once
 the curve E is delete.


I can confirm (if there was any doubt) that one can try

{{{
for p in prime_range(upper):
R.x, y, z = PolynomialRing(GF(p), 3)
}}}

and watch it eat 800MB of RAM.

I can see good reasons why we want the current behaviour of
uniqueness of parents, and what we just saw here is a good reason
why we might *not* want it.  How can we reconcile this?  Can we make
it easy to turn off uniqueness of parents in some situations?


Best,
Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
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-05-02 Thread Robert Bradshaw

On May 2, 2009, at 8:42 PM, Alex Ghitza wrote:

 When an elliptic curve is created the code in the __init__  
 function in
 ell_generic.py (lines 164-5) do cause a multivariate polynomial  
 ring
 to be created.  In this case it's a new ring each time as the base
 field is always a new field.

 How is the multivariate polynomial ring created?

 First the projective plane is constructed, effectively by
 PP=ProjectiveSpace(2,K), and then the ring by PP.coordinate_ring(),
 which calls
  PolynomialRing(self.base_ring(),
self.variable_names(),
 self.dimension_relative()+1)
 so in effect we call PolynomialRing(K).

 John

 Well, is there any way to avoid this? It seems like a bad thing to
 waste a couple GB on rings that in the end aren't used any more once
 the curve E is delete.


 I can confirm (if there was any doubt) that one can try

 {{{
 for p in prime_range(upper):
 R.x, y, z = PolynomialRing(GF(p), 3)
 }}}

 and watch it eat 800MB of RAM.

 I can see good reasons why we want the current behaviour of
 uniqueness of parents, and what we just saw here is a good reason
 why we might *not* want it.  How can we reconcile this?  Can we make
 it easy to turn off uniqueness of parents in some situations?

We can have uniqueness and collection--it's called weakrefs. I  
suspect part of the problem is that the coercion model doesn't use  
them enough (there's places I meant to go back to and add them in).

- 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
-~--~~~~--~~--~--~---