[sage-support] Re: numeric approximations for symbolic expressions

2008-10-10 Thread mabshoff



On Oct 10, 3:48 pm, Jason Grout <[EMAIL PROTECTED]> wrote:



> Is there any chance this could be merged into 3.1.3 to get wider
> testing?  That is, if it's a purely optional framework.  Barring that,
> is there a chance we could get a single huge patch that consolidates all
> of this, or even just a single patch that contains the changes in the
> bundle?

Nope, I don't see this happening until I

 a) valgrind the new doctests
 b) build it on Cygwin, Solaris, Linux/Itanium and G4/G5 on OSX 10.4
and 10.5 and have all doctests pass

and the doctests pass. ghmm has taught me that just because it mostly
works and there is only a couple allegedly easy bugs to fix a patch
like that can still hold up a release for an extended amount of time
(2 weeks in 3.1.2 in my guesstimation). And those bugs in ghmm on
Itanium are still not fixed, but we did disable doctests globally in
those two files in order to make the doctests pass. 3.1.3 is supposed
to be out soon, i.e. before the SD 10 coding sprint, and I am not
willing to take the risk of pynac's integration bundle.

> Thanks,
>
> Jason

Cheers,

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



[sage-support] Re: jsMath issue and solution with error code -7

2008-10-10 Thread mabshoff



On Oct 10, 1:55 pm, Jason Grout <[EMAIL PROTECTED]> wrote:



> We really ought to include these fonts with Sage and have the error
> message say: "Here are some fonts.  Install them.  If you want darker or
> lighter variations, go here (link to the website)"

#1608 :)

> Jason

Cheers,

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



[sage-support] Re: numeric approximations for symbolic expressions

2008-10-10 Thread mabshoff



On Oct 10, 10:02 am, Jason Grout <[EMAIL PROTECTED]> wrote:
> Burcin Erocal wrote:
> > On Fri, 10 Oct 2008 10:35:16 -0500
> > Jason Grout <[EMAIL PROTECTED]> wrote:
>
> >> The general request still stands, though: is there a way to
> >> numerically approximate all the constants in a symbolic expression,
> >> but keep the variables as variables?
>
> > The pynac based symbolics code does the following:
>
> > sage: x,y,z = var("x y z", ns=1)
> > sage: t = 1 + sqrt(2)*x + sin(x)
> > sage: t.n()
> > sin(x) + (1.4142135623730951)*x + 1.0
>
> > This is with the bundle at #3872 and patches at #4244 applied, and the
> > package at #4243.
>
> Nice.  That's exactly what I was wanting.  Chalk me up as one more
> person eager to get this in shape and into Sage.

Yep, it is certainly the highest priority ticket for 3.2 and 3.1.3 has
unfortunately delayed longer than planned. I plan to do 3.1.3.rc0
tonight and unless something major happens it should be very close to
final. Then we can open 3.2 during the coding sprint at SD 10 here at
Loria.

> Thanks,
>
> Jason

Cheers,

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



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-09 Thread mabshoff



On Oct 8, 5:48 am, Pierre <[EMAIL PROTECTED]> wrote:
> > Ironically pretty much everything works under Solaris now but the
> > notebook. I think that issue is easy to fix (RAND_MAX related
>
> incidentally, is it possible to get knoboo to work on solaris instead
> of the notebook ?
>
> (sorry if this question is somewhat besides the point)

No problem, but I think it could work. The issue right now with the
notebook on Solaris is that the key generation takes forever due to
sucky entropy caused by RANDMAX issues. I can fix that, but I want to
make sure that I do not open a gaping security issue.

Cheers,

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



[sage-support] Re: Sage server incredibly slow

2008-10-09 Thread mabshoff



On Oct 9, 1:20 pm, Maike <[EMAIL PROTECTED]> wrote:
> Hello,

Hii Maike,

> I tried using the sage server at sagenb.org. Generally, it's great,
> but sometimes it's just incredibly slow. I'm having to wait about a
> minute for cells to be executed or worksheets to be loaded or saved
> sometimes.
>
> Is everyone having these problems or am I doing something wrong?

Every so often Sage backs up all the data and that takes a while.
William did optimize a bunch of the backup code, but there is
certainly still work to do.


> Thanks for any help!
> Maike

Cheers,

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



[sage-support] Re: Using Sage with a large number of undergraduate students.

2008-10-07 Thread mabshoff



On Oct 7, 1:27 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> On Tue, Oct 7, 2008 at 1:15 PM, Jason Grout <[EMAIL PROTECTED]> wrote:
> > To sum up the discussion about what makes things slow, is it a
> > file-locking bottleneck with the sage server?
>
> I don't think anyone has done any serious profiling of the notebook so
> I think that conclusion is quite a bit premature.  One thing that
> might be helpful would be to run the notebook under Solaris with
> DTrace.

Ironically pretty much everything works under Solaris now but the
notebook. I think that issue is easy to fix (RAND_MAX related
probably), but the even shorter way to profile here is either using
VTune (which is proprietary) or Systemtap (which is free).

If we can get Mike's notebook testing code to do some larger number of
operations in automated mode we could probably easily determine where
the bottlenecks are.

> --Mike

Cheers,

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



[sage-support] Re: Sage compile fails on Fedora Core 2

2008-10-07 Thread mabshoff



On Oct 7, 10:01 am, Venkat <[EMAIL PROTECTED]> wrote:
> Hi all,

Hi,

> I'm using a Fedora Core2 based system, which I can't upgrade.
>
> Compilation fails for the latest Sage (3.1.2). I'm not sure how to fix
> this error. Any help is appreciated. I'm pasting the relevant lines
> below.

It looks like you are using gcc 3.3.3. To build Sage you need gcc 3.4
or higher since we need C99 capabilities. Even if you update the
compiler I doubt Sage will build corrrectly. FC 2 was released in 2004
and is way out of date.

> Thanks,
> Venkat.

Cheers,

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



[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-10-03 Thread mabshoff



On Oct 3, 3:29 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 3, 2008 at 1:25 PM, Ines Abdeljaoued-TEJ <[EMAIL PROTECTED]> 
> wrote:
> > I'll be to the office tomorrow; do you understand french ?

I suggested sending the install log *off list* since most people on
this list did not want to receive a large attachment they will never
look at.

> You get an "internal compiler error" when installing the Cython
> spkg.  You're using "gcc version 4.1.0 (SUSE Linux)" and the
> error is copied below and is, in short "internal compiler error".
> This always indicates either a serious bug in your compiler
> or your hardware is defective.

That gcc is a know bad compiler for Sage (and many other software
packages) - see #3123 blacklist "gcc version 4.1.0 (SUSE Linux)"

> You should definitely upgrade to a newer version of GCC
> and try building Sage again from scratch.

There are upgrades for OpenSuSE's 10.1 gcc rpms. They might be hard to
get hold of since OpenSuSE 10.1 is no longer supported.



Cheers,

Michael

> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-10-03 Thread mabshoff



On Oct 3, 5:30 am, Ines <[EMAIL PROTECTED]> wrote:
> Hi !
> I tried to insatll a last version of sage : sage-3.1.2.tar with no
> sucess. How can I send you the insall.log file ?
>
> Ines.

Hi Ines,

please send it compressed to me off list per email.

Cheers,

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



[sage-support] Re: Bugs with rational functions and gcd

2008-10-02 Thread mabshoff



On Oct 2, 2:41 pm, Simon King <[EMAIL PROTECTED]> wrote:
> Remark:
>
> I just found that the above error does occur for R.=ZZ[], but not
> for R.=QQ[].
>
> This might be the work-around that I was looking for.
>
> Cheers
>       Simon

Well, it still sounds like a bug to me for ZZ[]. There has been recent
work by malb in 3.1.3, so if someone could see if it is still a
problem and then open a ticket appropriately it would be nice.

Cheers,

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



[sage-support] Re: Is "readline" a prerequisite to build Sage?

2008-09-30 Thread mabshoff



> Sorry, it does not work. Same error as before.

Yeah, considering I screwed up and did not replace the one r.spkg to
download this does not surprise me. Please try again and check that
the md5sum matches:

de0de83b25ca7b9e0a65246c067f0afa  /home/mabshoff/release-cycles-3.1.3/
alpha2/r-2.6.1.p20.spkg

Hopefully this will put this problem to rest once and for all.

> Cheers
>         Simon

Cheers,

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



[sage-support] Re: Is "readline" a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 6:07 am, Simon King <[EMAIL PROTECTED]> wrote:
> Dear Michael
>
> On Sep 30, 2:49 pm, mabshoff <[EMAIL PROTECTED]
>
> dortmund.de> wrote:
> > It is a bug in R when doing processing on .d files. I have hit the
> > problem, too, but not fixed it yet. Feel free to open a ticket and I
> > will attempt to fix it in 3.1.3.
>
> It is #4222. I made it "critical" -- feel free to reduce the priority.

Please test the spkg at #4222. I am 99% sure it will solve your
problem.

> But would it solve my problem to install readline on that laptop?

It would make Sage compile, but it would potentially cause subtle
issues with tab completion for example if the system's readline is
old. Don't install readline for now to make sure the above spkg fixes
the problem.

> Cheers
>       Simon

Cheers,

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



[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-09-30 Thread mabshoff

Ines Abdeljaoued-TEJ wrote:
> Hi !

Hi Ines,

please don't take discussions off list.



>> There is a file call install.log in the Sage base directory. Can you
>> upload it somewhere and post a link?
>>
>
> I'll try to upload the install.log, but this will take a while (I'm not in the
> office until friday).

Ok.

>> There are also x86 and x86-64 binaries for OpenSuSE 10.2 I believe, so
>> you might want to give them a try.
>>
>
> Should Iinstall OpenSuse10.2 in place of suse 10.1 ?
> Thanks, Ines.

It is worth a try, but it might not work. I don't know a reason why
compiling Sage on OpenSuSE 10.1 should not work, but I guess we will
find out.

Cheers,

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



[sage-support] Re: Is "readline" a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 7:23 am, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:



> Ironically now I am hitting the same problem as you since I touched
> the .d file, so I can now actually debug this :)

And the problem is fixed in the thrid update of
http://sage.math.washington.edu/home/mabshoff/release-cycles-3.1.3/alpha2/r-2.6.1.p20.spkg

please try it out and let me know how it works. It does build on
sage.math without readline headers present, so it should work for you,
too. If it does not I am more than sure that NFS or some other crap
file system is to blame since as is the dependency creation code of R
is broken.

> Cheers,
>
> Michael

Cheers,

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



[sage-support] Re: Is "readline" a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 7:19 am, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> On Sep 30, 7:11 am, Simon King <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Sep 30, 4:02 pm, mabshoff <[EMAIL PROTECTED]
>
> > dortmund.de> wrote:
> > > Ok, please send me the complete output from a full build of the new
> > > r-2.6.1.p20.spkg offlist.
>
> > Sorry, this will take a couple of hours, because I tried the "quick
> > and dirty" method (copy the headers into /usr/include/), which seems
> > to work.
>
> > Hence, I will
> > * wait for the current built to finish
> > * move the headers out of the way
> > * start a new built in a different folder, using your spkg
> > * wait until it fails
> > * send you the log file off list
> > * move the headers in place, so that I can use Sage.
>
> No need to wait. Move the headers out of the way, download
>
> http://sage.math.washington.edu/home/mabshoff/release-cycles-3.1.3/al...
>
> (it is an updated version). Then run ./sage -f path/to/spkg/
> r-2.6.1.p20.spkg - that can be done in parallel to the build and if it
> fails the currently installed r.spkg will not be affected.

Ironically now I am hitting the same problem as you since I touched
the .d file, so I can now actually debug this :)

Cheers,

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



[sage-support] Re: Is "readline" a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 7:11 am, Simon King <[EMAIL PROTECTED]> wrote:
> On Sep 30, 4:02 pm, mabshoff <[EMAIL PROTECTED]
>
> dortmund.de> wrote:
> > Ok, please send me the complete output from a full build of the new
> > r-2.6.1.p20.spkg offlist.
>
> Sorry, this will take a couple of hours, because I tried the "quick
> and dirty" method (copy the headers into /usr/include/), which seems
> to work.
>
> Hence, I will
> * wait for the current built to finish
> * move the headers out of the way
> * start a new built in a different folder, using your spkg
> * wait until it fails
> * send you the log file off list
> * move the headers in place, so that I can use Sage.

No need to wait. Move the headers out of the way, download

http://sage.math.washington.edu/home/mabshoff/release-cycles-3.1.3/alpha2/r-2.6.1.p20.spkg

(it is an updated version). Then run ./sage -f path/to/spkg/
r-2.6.1.p20.spkg - that can be done in parallel to the build and if it
fails the currently installed r.spkg will not be affected.

> Cheers
>        Simon

Cheers,

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



[sage-support] Re: Is "readline" a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 6:42 am, Simon King <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Sep 30, 3:37 pm, mabshoff <[EMAIL PROTECTED]
>
> dortmund.de> wrote:
> > > I just did:
> > > * removed r-2.6.1... from build/ and from standard/,
> > > * downloaded your package
> > > * make
>
> > Did you drop the spkg in $SAGE_ROOT/standard/spkg?
>
> Do you mean in $SAGE_ROOR/spkg/standard? Yes.
> Cheers
>      Simon

Ok, please send me the complete output from a full build of the new
r-2.6.1.p20.spkg offlist. I found a potential issue, but have so far
failed to force a successful rebuild of the damn autohell buildsystem
of R.

Cheers,

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



[sage-support] Re: Is "readline" a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 6:32 am, Simon King <[EMAIL PROTECTED]> wrote:
> Dear Michael,
>
> On Sep 30, 3:21 pm, mabshoff <[EMAIL PROTECTED]
>
> dortmund.de> wrote:
> > Please test the spkg at #4222. I am 99% sure it will solve your
> > problem.
>
> I just did:
> * removed r-2.6.1... from build/ and from standard/,
> * downloaded your package
> * make
>
> Unfortunately, I belong to the 1%. It is the same error as before. Or
> did I do a mistake in the above steps?

Did you drop the spkg in $SAGE_ROOT/standard/spkg?

> > It would make Sage compile, but it would potentially cause subtle
> > issues with tab completion for example if the system's readline is
> > old.
>
> Is there a system's readline? "which readline" shows nothing!

Well, your likely have to install the readline development package
from your package manager. You can also likely copy the readline
headers from Sage into /usr/include and then R should compile, but
that is not very clean. Note that the readline headers are in a
readline directory.

> Yours
>      Simon

Cheers,

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



[sage-support] Re: Is "readline" a prerequisite to build Sage?

2008-09-30 Thread mabshoff



On Sep 30, 5:42 am, Simon King <[EMAIL PROTECTED]> wrote:
> Dear Team,

Hi Simon,

> currently I try to build Sage from source on a laptop (GNU/Linux
> i686). The built of R failed, and the complaint is
>   sys-std.c:401:33: error: readline/readline.h: No such file or
> directory
>   sys-std.c:431:32: error: readline/history.h: No such file or
> directory
>
> Is readline required to build Sage?

No.

> Note that it is not mentioned in
> the README.txt (it only lists gcc, g++, m4, ranlib, and make).
>
> Or what else might be gone wrong?

It is a bug in R when doing processing on .d files. I have hit the
problem, too, but not fixed it yet. Feel free to open a ticket and I
will attempt to fix it in 3.1.3.

> I'll try to upload the install.log, but this will certainly take a
> while, and perhaps you already have a hint for me...

No need for the log :)

> Yours
>       Simon

Cheers,

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



[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-09-30 Thread mabshoff

On Sep 30, 12:56 am, Ines <[EMAIL PROTECTED]> wrote:

Hi Ines,

> I am trying to install sage on 14 pc for educational's need. the
> command make
> return three type of error's message (depending on the pc and after
> 65min of
> compil) :
>
> error while installing cython-0.9.8
> error while installing atlas-3.8.1
> error while installing givaro-3.2.11
>
> and the same instruction (I replace the package's name by ... ):
>
> If you want to try to fix the problem, yourself *don't* just cd to
> /home/essai/Desktop/SAGEmath/sage-3.0.5/... and type 'make'.
> Instead type "/home/essai/Desktop/SAGEmath/sage-3.0.5/sage -sh"
> in order to set all environment variables correctly, then cd to
> /home/essai/Desktop/SAGEmath/sage-3.0.5/spkg/build/...
> (When you are done debugging, you can type "exit" to leave the
> subshell.)
>
> It is very urgent. I hope I'll can teach numerical analysis and
> operational
> research with sage to my students.

There is a file call install.log in the Sage base directory. Can you
upload it somewhere and post a link?

There are also x86 and x86-64 binaries for OpenSuSE 10.2 I believe, so
you might want to give them a try.

> Regards, Ines.

Cheers,

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



[sage-support] Re: Lost notebook worksheets after updating

2008-09-29 Thread mabshoff



On Sep 29, 3:33 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 2:27 PM, Rolandb <[EMAIL PROTECTED]> wrote:
>
> > Several times I indicated the same problem but until now no action.
>
> It's definitely not due to lack of desire on our part.  It's just that there
> are so many things to do, and so little time.
>
> The simplest solution would be to add a link to the notebook that
> allows one to download all the files for that notebook into a single
> file (a tarball), and another link in the notebook that allows one to
> upload all worksheets in such an archive.   I think this could
> be implemented in a few hours.  What do people think of
> this?  It would beat doing this:
>
> > I just save my worksheets (around 30) manually and recover the *.sws
> > files one by one in the new SAGE version.

Yep, the feature request to do this is #2740.

Cheers,

Michael

> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: problem with animate on OS X 10.5, Sage 3.1.2

2008-09-29 Thread mabshoff



On Sep 29, 11:15 am, John H Palmieri <[EMAIL PROTECTED]> wrote:
> On Sep 29, 7:40 am, Jason Grout <[EMAIL PROTECTED]> wrote:
>
>
>
> > Seehttp://trac.sagemath.org/sage_trac/ticket/975fora solution that is
> > already put in place.  Basically, use
> > $SAGE_ROOT/local/bin/sage-native-execute, which does exactly what
> > mabshoff says above.
>
> So like the following?
>
> <http://trac.sagemath.org/sage_trac/ticket/4216>

Yep, pretty much.

> By the way, is there a way to tell which calls to os.system should use
> sage-native-execute, or should we just deal with case-by-case?

sage-native-execute sets [DY]LD_LIBRARY_PATH depending if the binary
is in $SAGE_LOCAL/bin or not and avoids the kind of missing or
incorrect symbol problem. I would always prefer sage-native-execute
over os.system.

>   John

Cheers,

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



[sage-support] Re: formatting not saved in notebooks

2008-09-29 Thread mabshoff



On Sep 29, 10:17 am, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 7:00 AM, Stan Schymanski <[EMAIL PROTECTED]> wrote:
>
> > Dear all,
>
> > As of version 3.1.2, plots are saved correctly in notebooks. Thanks to
> > those that fixed it. However, I noticed that the formatting of cells
> > beginning with "%hide %html" is not saved. I need to re-evaluate all
> > of those cells to get the formatting back. Is this a bug in SAGE or
> > does it have something to do with the web browser (Firefox 3.0.3 on
> > Mac OS X 10.4)?
>
> > Thanks again for the great effort!
>
> This is definitely a bug.  If it isn't listed at trac.sagemath.org somewhere,
> I hope somebody adds it, so it will get fixed.

This does not seem to be in trac, so I made this #4217.

> William

Cheers,

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



[sage-support] Re: problem with animate on OS X 10.5, Sage 3.1.2

2008-09-28 Thread mabshoff



On Sep 28, 12:40 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Sat, Sep 27, 2008 at 5:51 PM, mabshoff
>
>
>
> <[EMAIL PROTECTED]> wrote:
>
> > On Sep 27, 5:41 pm, John H Palmieri <[EMAIL PROTECTED]> wrote:
> >> Can anyone else reproduce this?
>
> > I can't since I do not have convert on a Mac, but the problem is that
> > we switched to a dynamic libpng. The solution is:
>
> >  * create a convert script in $SAGE_LOCAL/bin
> >  * set DYLD_LIBRARY_PATH to SAGE_ORIG_DYLD_LIBRARY_PATH
> >  * call convert with an absolute path (use "which convert" from
> > outside Sage) and pass on all parameters (i.e. /use/local/foo/convert
> > "$@")
>
> > We should probably do that automatically on OSX for convert, emacs and
> > the other usual suspects. The problem boils down to Apple renaming
> > some of the symbols in libpng and creating libPng.dylib in the
> > process.
>
> The right solution, which we've probably halfway already done
> if I remember correctly, is to write a Sage function called
> "run_command" that resets the environment as you suggest
> above, runs the subcommand, and returns.    This should be
> completely transparent to the user, and should do the right
> thing on Linux, OS X, etc.   Then the animate command
> would call convert via run_command instead of os.system.

Yes, for the convert command this should be used. Once we do that this
should also stop the annoying "convert not found" crap printed when
doctesting.

That still does not resolve the issue for Emacs that is launched due
to hg executing EDITOR.

> William

Cheers,

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



[sage-support] Re: problem with wiki.sagemath.org

2008-09-28 Thread mabshoff



On Sep 27, 9:03 pm, pong <[EMAIL PROTECTED]> wrote:

Hi Pong,

> I apologize in advance that if this is not a right place to ask this
> question.
>
> I have some problem in using wiki.sagemath.org. I created an account
> but when I tried to re-login sometime later it compliant that my
> password is wrong. (I'm pretty sure I remember my password
> correctly).When I tried to create an account again using the same
> name, wiki compliant that the username has already been taken (so
> obviously it remember something).
>
> Now the only explanation that I could think of is that I choose "not
> to remember something" (sorry I forgot what the something is) by
> unchecking a box at some point. Could it be the reason?
>
> PS. I also tried to recover my password by providing wiki my email
> however it complaint that no info associate with my email address
> (again I'm pretty sure the email that I gave was correct, it simply my
> gmail account)

Please recreate your account, I did some spammer cleanup and might
have inadvertently delete it :(

> Please help.

Cheers,

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



[sage-support] Re: problem with animate on OS X 10.5, Sage 3.1.2

2008-09-27 Thread mabshoff



On Sep 27, 5:41 pm, John H Palmieri <[EMAIL PROTECTED]> wrote:
> Can anyone else reproduce this?

I can't since I do not have convert on a Mac, but the problem is that
we switched to a dynamic libpng. The solution is:

 * create a convert script in $SAGE_LOCAL/bin
 * set DYLD_LIBRARY_PATH to SAGE_ORIG_DYLD_LIBRARY_PATH
 * call convert with an absolute path (use "which convert" from
outside Sage) and pass on all parameters (i.e. /use/local/foo/convert
"$@")

We should probably do that automatically on OSX for convert, emacs and
the other usual suspects. The problem boils down to Apple renaming
some of the symbols in libpng and creating libPng.dylib in the
process.

Cheers,

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



[sage-support] Re: How to do: is_Integer(sqrt(a^2+b^2))

2008-09-26 Thread mabshoff



On Sep 26, 12:06 am, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:



> > Indeed!  I like Mike Hansen's (or your) proposal to get
> > rid of them all from the global namespace, and replace
> > them only by "is_lowercase_method_name" functions
> > that are all conceptually meaningful.   Of course leave
> > the type-checking is_Uppercase's around, but don't
> > put them in all.py's.
>
> > What do you guys think?
>
> +1 for sure.

The patch is up at #4192 and will be merge shortly unless there is
some last minute breakage.



> - Robert

Cheers,

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



[sage-support] Re: Seg fault with determinant calculation

2008-09-25 Thread mabshoff



On Sep 25, 12:34 pm, phil <[EMAIL PROTECTED]> wrote:

Hi,

I did valgrind a couple of the example sessions you gave for various n
(n=4,5 and 8 IIRC) and the good news is that there are no leaks going
on and Singular does not seem to do anything  naughty.

> One more thing I've noticed is that loading the saved result either
> doesn't work is is extremely inefficient.  On Monday, I started up
> 3.1.2 final and ran "load detMp.sobj".   It's been rough 3 days and
> it's still going.  This means loading takes longer than the original
> computation.

Yeah, pickling for those matrices over the mv polynomial ring probably
uses generic code and hence sucks speed wise. If malb or anyone else
familiar with that are of the code agrees please open a ticket so we
remember to fix this.

> Phil

Cheers,

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



[sage-support] Re: saving worksheets?

2008-09-25 Thread mabshoff



On Sep 25, 3:35 pm, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> On Sep 25, 3:19 pm, RayKiddy <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> > This seems pretty basic, but I am having issues with deleting
> > worksheets and then not having them pop up again.
>
> > Yes, I could read a few hundred pages of manuals, but how hard should
> > this be. I followed the instructions for installing sage on Mac OS X
> > (10.4.11) and that works. So I do:
>
> > % ./sage
> > --
> > | SAGE Version 3.1.1, Release Date: 2008-08-17                       |
> > | Type notebook() for the GUI, and license() for information.        |
> > --
> > sage: notebook()
> > The notebook files are stored in: /Users/ray/.sage//sage_notebook
> > **
> > *                                                *
> > * Open your web browser tohttp://localhost:8000*
> > *                                                *
> > **
>
> > So, I click on the checkbox next to one of the worksheets and hit the
> > Delete button. I click on the "Log out" link. Now, I see this on
> > sage's console:
>
> > 2008-09-25 15:06:15-0700 [-] Log opened.
> > 2008-09-25 15:06:15-0700 [-] twistd 8.0.1 (/Users/ray/Applications/
> > sage/local/bin/python 2.5.2) starting up
> > 2008-09-25 15:06:15-0700 [-] reactor class:  > 'twisted.internet.selectreactor.SelectReactor'>
> > 2008-09-25 15:06:15-0700 [-] twisted.web2.channel.http.HTTPFactory
> > starting on 8000
> > 2008-09-25 15:06:15-0700 [-] Starting factory
> > 
> > 2008-09-25 15:08:05-0700 [HTTPChannel,1,127.0.0.1]
>
> > I never get back to a prompt? How do I? The only way I have found is
> > to type a ^C.

[Sorry for the double post, but I missed to answer this one]

When you start the notebook you do not get back the prompt. I do not
know why, but I guess there is a good reason :)

> > ^C2008-09-25 15:15:15-0700 [-] Saving notebook...
> > 2008-09-25 15:15:15-0700 [-] Saving notebook...
> > 2008-09-25 15:15:15-0700 [-] Notebook cleanly saved.
> > 2008-09-25 15:15:15-0700 [-] Notebook cleanly saved.
> > 2008-09-25 15:15:15-0700 [-] Main loop terminated.
> > 2008-09-25 15:15:15-0700 [-] Server Shut Down.
> > True
> > sage: quit
> > Exiting SAGE (CPU time 0m0.03s, Wall time 9m15.28s).
> > %
>
> > Hm. Looks as though it saved. I re-start sage and there it is. The
> > worksheet I thought I deleted is back.
>
> This was a bug fixed in the 3.1.2 release. There is no 3.1.2 binary
> for OSX 10.4 PPC yet, but there should be in the not too distant
> future.
>
> > So, I see a "Delete" button, a "Save" button, a "Save & Quit" button.
> > I have tried all of these. No effect. Is there a "Delete Really"
> > button? Where is it? I tried to get back to the "sage:" prompt with a
> > ^D. What else should I try? ^X-elbow-Z? What is the magic word for
> > getting it to do this rather obvious thing?
>
> > If someone can explain it, I can find a rather obvious place to put
> > this info in the documentation. I found several obvious places, and no
> > documentation. Thanks.
>
> Cheers,
>
> Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: saving worksheets?

2008-09-25 Thread mabshoff

On Sep 25, 3:19 pm, RayKiddy <[EMAIL PROTECTED]> wrote:

Hi,

> This seems pretty basic, but I am having issues with deleting
> worksheets and then not having them pop up again.
>
> Yes, I could read a few hundred pages of manuals, but how hard should
> this be. I followed the instructions for installing sage on Mac OS X
> (10.4.11) and that works. So I do:
>
> % ./sage
> --
> | SAGE Version 3.1.1, Release Date: 2008-08-17                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
> sage: notebook()
> The notebook files are stored in: /Users/ray/.sage//sage_notebook
> **
> *                                                *
> * Open your web browser tohttp://localhost:8000*
> *                                                *
> **
>
> So, I click on the checkbox next to one of the worksheets and hit the
> Delete button. I click on the "Log out" link. Now, I see this on
> sage's console:
>
> 2008-09-25 15:06:15-0700 [-] Log opened.
> 2008-09-25 15:06:15-0700 [-] twistd 8.0.1 (/Users/ray/Applications/
> sage/local/bin/python 2.5.2) starting up
> 2008-09-25 15:06:15-0700 [-] reactor class:  'twisted.internet.selectreactor.SelectReactor'>
> 2008-09-25 15:06:15-0700 [-] twisted.web2.channel.http.HTTPFactory
> starting on 8000
> 2008-09-25 15:06:15-0700 [-] Starting factory
> 
> 2008-09-25 15:08:05-0700 [HTTPChannel,1,127.0.0.1]
>
> I never get back to a prompt? How do I? The only way I have found is
> to type a ^C.
>
> ^C2008-09-25 15:15:15-0700 [-] Saving notebook...
> 2008-09-25 15:15:15-0700 [-] Saving notebook...
> 2008-09-25 15:15:15-0700 [-] Notebook cleanly saved.
> 2008-09-25 15:15:15-0700 [-] Notebook cleanly saved.
> 2008-09-25 15:15:15-0700 [-] Main loop terminated.
> 2008-09-25 15:15:15-0700 [-] Server Shut Down.
> True
> sage: quit
> Exiting SAGE (CPU time 0m0.03s, Wall time 9m15.28s).
> %
>
> Hm. Looks as though it saved. I re-start sage and there it is. The
> worksheet I thought I deleted is back.

This was a bug fixed in the 3.1.2 release. There is no 3.1.2 binary
for OSX 10.4 PPC yet, but there should be in the not too distant
future.

> So, I see a "Delete" button, a "Save" button, a "Save & Quit" button.
> I have tried all of these. No effect. Is there a "Delete Really"
> button? Where is it? I tried to get back to the "sage:" prompt with a
> ^D. What else should I try? ^X-elbow-Z? What is the magic word for
> getting it to do this rather obvious thing?
>
> If someone can explain it, I can find a rather obvious place to put
> this info in the documentation. I found several obvious places, and no
> documentation. Thanks.

Cheers,

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



[sage-support] Re: Windows: Where are worksheets stored?

2008-09-25 Thread mabshoff



On Sep 24, 1:27 pm, Jannick Asmus <[EMAIL PROTECTED]> wrote:
> Hi,
>
> switching to the latest release 3.1.2 on windows machines I would like
> to save my workbooks. but where are they stored?
>
> Sorry for my ignorance since my question seems to be a FAQ.
>
> As always, thanks for your help.
>
> Best wishes,
> J.

Hi,

the VMware application of Sage on Windows stores the worksheets just
like the native OSX and Linux versions in $HOME/.sage. Unfortunately
it is not possible yet to do a one step download and re-upload of all
worksheets, but that is an open issue to be fixed in the future. So
you can either down and upload them one by one (tedious for obvious
reasons) or use a tool like WinSCP to log into the running VMware
seesion and copy the .sage directory from the old to the new image.

Let us know if you have any more trouble.

Cheers,

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



[sage-support] Re: a problem starting the notebook

2008-09-25 Thread mabshoff



On Sep 25, 10:09 am, cesarnda <[EMAIL PROTECTED]> wrote:
> I am using Kubuntu 8.04
>
> On 25 sep, 07:39, cesarnda <[EMAIL PROTECTED]> wrote:
>
> > --
> > | SAGE Version 3.1.2, Release Date: 2008-09-19                       |
> > | Typenotebook() for the GUI, and license() for information.        |
> > --
>
> > sage:notebook()
> > Thenotebookfiles are stored in: /home/cesarnda/.sage//sage_notebook
> > **
> > *                                                *
> > * Open your web browser tohttp://localhost:8000*
> > *                                                *
> > **
> > 2008-09-25 07:38:53-0500 [-] Log opened.
> > 2008-09-25 07:38:53-0500 [-] twistd 8.1.0 (/home/cesarnda/Sage/
> > sage-3.0.6-i686-Linux/local/bin/python 2.5.2)startingup
> > 2008-09-25 07:38:53-0500 [-] reactor class:  > 'twisted.internet.selectreactor.SelectReactor'>
> > 2008-09-25 07:38:53-0500 [-] 
> > twisted.web2.channel.http.HTTPFactorystartingon 8000
> > 2008-09-25 07:38:53-0500 [-]Startingfactory
> > 
> > 2008-09-25 07:38:57-0500 [HTTPChannel,1,127.0.0.1] /home/cesarnda/Sage/
> > sage-3.0.6-i686-Linux/local/lib/python2.5/site-packages/Twisted-8.1.0-
> > py2.5-linux-i686.egg/twisted/internet/defer.py:267:
> > exceptions.DeprecationWarning: Don't pass strings (like 'Bad token')
> > to failure.Failure (replacing with a DefaultException).
> > 2008-09-25 07:38:57-0500 [HTTPChannel,1,127.0.0.1] Exception
> > rendering:
> > 2008-09-25 07:38:57-0500 [HTTPChannel,1,127.0.0.1] Unhandled Error
> >         Traceback (most recent call last):
> >         Failure: twisted.python.failure.DefaultException: Bad token
>

Hmm, nothing obvious pops out. Can you move the .sage directory in
$HOME and see if the problem goes away?

Cheers,

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



[sage-support] Re: maple from sage on mac os

2008-09-24 Thread mabshoff



On Sep 24, 3:20 pm, Alex Raichev <[EMAIL PROTECTED]> wrote:
> Hi William:
>
> The same thing happens to me on Mac OS X.  How do i fix this?
>
> Alex

Hi Alex,

I don't know how handy you are with patches and so on, but applying
the patch from #4180 followed by a "sage -b" would enable us to easily
see the pexpect logs. If you get the patch applied and so on do the
following:

export SAGE_PEXPECT_LOG=yes, then start sage from that console, do
some examples that break. Then check out $DOT_SAGE/pexpect_logs/ (that
is usually $HOME/.sage/pexpect_logs/) and send us the logs. That will
likely allow us to pinpoint what is going wrong.

If you do not want to or cannot do the patching just wait for 3.1.3
and it will have everything build in.

Cheers,

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



[sage-support] Re: a problem starting the notebook

2008-09-24 Thread mabshoff



On Sep 24, 5:25 pm, cesarnda <[EMAIL PROTECTED]> wrote:
> so?

What version of Sage are you using? What operating system are you on?
Could you provide the complete log, i.e. the output from when you
start Sage and then invoke the notebook?

Cheers,

Michael

> On 23 sep, 01:35, cesarnda <[EMAIL PROTECTED]> wrote:
>
> > I start sage and I type notebook and firefox is open to the following
> > address:
>
> >http://localhost:8000/?startup_token=1af26f2b14cac678ab97c121c9cca7c5
>
> > which is not found, so I have to cut it just tohttp://localhost:8000,
> > is there a way to solve this problem?
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage runs amok when killing a sub process

2008-09-24 Thread mabshoff



On Sep 24, 5:18 am, Simon King <[EMAIL PROTECTED]> wrote:
> Dear Team,

Hi Simon,

> on a linux machine with 4 Dual Core AMD Opteron(tm) Processor 270, I
> had some computations with Sage 3.1.1.
>
> One of them had a very long Singular sub process, and eventually I
> killed the sub process.
>
> By consequence, a massive amount (more than 20) of new Python
> processes popped up (see below for a small part of what "top" shows).

I don't see why 20 of those python jobs would pop up. Can you
reproduce it?

> Fortunately the other Sage processes on that machine have not been
> affected. Nonetheless, I wonder if this is a bug.

The output from top as is is useless since there is no information to
gain. One would at least need PPID and the command line option used to
start the python jobs. It looks like you are ending up with something
that could turn into a zombie, but since it is unclear what exactly
you did this is undebuggable as is.

> Cheers
>       Simon
>

Cheers,

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



[sage-support] Re: Numerical evaluate of the Dirichlet character value

2008-09-24 Thread mabshoff



On Sep 24, 4:15 am, Raouf <[EMAIL PROTECTED]> wrote:
> Hi,
> I want to have a numerical value of a  Dirichlet character :
>
> I have this line code in my notebook:
>
> sage:
> G = DirichletGroup(21)
> chi = G.1;
> chi(23)
>
> evaluate:
> zeta6 - 1
>
> And when i want to use this value: zeta6 - 1 i have the error message:
>
> G = DirichletGroup(21)
> chi = G.1;
> chi(23)
> B=13*chi(23)
> print float(B)
>
> error message:
>
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/home/server2/nb1/sage_notebook/worksheets/fstthese/0/code/
> 6.py", line 10, in 
>     print float(B)
>   File "/home/server2/sage/local/lib/python2.5/site-packages/
> SQLAlchemy-0.4.6-py2.5.egg/", line 1, in 
>
> TypeError: float() argument must be a string or a number.

Looks like a bug to me. The usual trick (at least in my book of using
n() does also not work):

[EMAIL PROTECTED]:/scratch/mabshoff/release-cycle/sage-3.1.3.alpha1$ ./
sage
--
| SAGE Version 3.1.3.alpha1, Release Date: 2008-09-24|
| Type notebook() for the GUI, and license() for information.|
--

sage: G = DirichletGroup(21)
sage: chi = G.1;
sage: chi(23)
zeta6 - 1
sage: B=13*chi(23)
sage: print float(B)
---
TypeError Traceback (most recent call
last)

/scratch/mabshoff/release-cycle/sage-3.1.3.alpha1/ in
()

TypeError: float() argument must be a string or a number
sage: type(B)

sage: n(B)
---
TypeError     Traceback (most recent call
last)

/scratch/mabshoff/release-cycle/sage-3.1.3.alpha1/ in
()

/scratch/mabshoff/release-cycle/sage-3.1.3.alpha1/local/lib/python/
site-packages/sage/misc/functional.py in numerical_approx(x, prec,
digits)
716 return
sage.rings.real_mpfr.RealField_constructor(prec)(x)
717 except TypeError:
--> 718 return sage.rings.complex_field.ComplexField(prec)
(x)
719
720 n = numerical_approx

/scratch/mabshoff/release-cycle/sage-3.1.3.alpha1/local/lib/python2.5/
site-packages/sage/rings/complex_field.py in __call__(self, x, im)
212 except AttributeError:
213 pass
--> 214 return complex_number.ComplexNumber(self, x, im)
215
216 def _coerce_impl(self, x):

/scratch/mabshoff/release-cycle/sage-3.1.3.alpha1/complex_number.pyx
in sage.rings.complex_number.ComplexNumber.__init__ (sage/rings/
complex_number.c:2519)()

TypeError: unable to coerce to a ComplexNumber
sage:


Can someone more knowledgeable in the area open a ticket?

Cheers,

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



[sage-support] Re: Secure Sage Server

2008-09-24 Thread mabshoff

On Sep 24, 12:22 am, Maike <[EMAIL PROTECTED]> wrote:

Hi Maike,

> We'd like to set up a sage server allowing different users to see,
> copy and edit our published worksheets. However, this allows users to
> execute arbitrary system calls, e.g.> os.popen("ps auxw").read()

Yes, any account on a Notebook server hands the user a shell, so you
either trust them or you secure the server itself.

> The formatting of the output is not perfect, but still, this is a
> problem!
>
> I'd be grateful for any suggestions on how to set up a SECURE sage
> server. If this has been covered elsewhere, just post the link...

There are a couple possibilities:

 a) a chroot jail
 b) a VMWare image (or some other kind of virtualization)
 c) SELinux, potentially in combination with (a)

None of the above is simple and securing a server so that it runs with
SELinux is difficult. There is no documentation on how to do this yet.
I would favor (b), frequent backups of the Sage notebook data and some
intrusion detection system in the notebook in addition to keeping
kernel and all the other components current to avoid break ins. Since
you are running a VMware image it is easily resettable and the
likelyhood of breaking out of the VMWare image is relatively small. So
should you have somebody break into your box it is much easier to
reset an image than the server. If you come up with something we would
definitely like to hear about it.

> Thanks!
>
> Maike

Cheers,

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



[sage-support] Re: installation problem with sage-3.1.2

2008-09-23 Thread mabshoff



On Sep 23, 7:37 am, abhi <[EMAIL PROTECTED]> wrote:

Hi,

> I am trying to install sage-3.1.2 on my Fedora 9 with gcc-4.3. I am
> having problem with matplotlib-0.98.3.p1its giving error given
> below
>
> BUILDING MATPLOTLIB
>             matplotlib: 0.98.3
>                 python: 2.5.2 (r252:60911, Sep 23 2008, 17:09:57)
> [GCC
>                         4.3.0 20080428 (Red Hat 4.3.0-8)]
>               platform: linux2
>
> REQUIRED DEPENDENCIES
>                  numpy: 1.1.0
>              freetype2: 9.16.3
>
> OPTIONAL BACKEND DEPENDENCIES
>                 libpng: 1.2.29
> Traceback (most recent call last):
>   File "setup.py", line 125, in 
>     if check_for_tk() or (options['build_tkagg'] is True):
>   File "/home/abhishek/sage-3.1.2/spkg/build/matplotlib-0.98.3.p1/src/
> setupext.py", line 846, in check_for_tk
>     explanation = add_tk_flags(module)
>   File "/home/abhishek/sage-3.1.2/spkg/build/matplotlib-0.98.3.p1/src/
> setupext.py", line 1106, in add_tk_flags
>     module.libraries.extend(['tk' + tk_ver, 'tcl' + tk_ver])
> UnboundLocalError: local variable 'tk_ver' referenced before
> assignment
> Error building matplotlib package


I have seen the same error on Cygwin when tcl/tk was installed, but I
have not fixed this yet. Hopefully I will get around to it in 3.1.3. I
worked around this by disabling tcl/tk detection in setupext.pu, but I
do not have a clean patch I could post.

I have opened a ticket at http://trac.sagemath.org/sage_trac/ticket/4176
to track the issue.

> plz help

Cheers,

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



[sage-support] Re: Mercurial problems in 3.1.2

2008-09-22 Thread mabshoff



On Sep 22, 11:39 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote:
> On Sep 22, 2008, at 22:24 , mabshoff wrote:
>
> > Nope, none of those fixes is in alpha0, but I hope that at least some
> > of them will make it into alpha1, due out late tomorrow. I still don't
> > see how parallel make impacts numpy, so if you could send me the
> > portion of the blown up numpy build with parallel make I could attempt
> > to figure out what is wrong.
>
> See
>    sage.math.washington.edu:~justin/logs/sage-numpy.log
> (the whole shebang; maybe something early on triggered it :-}).

Thanks. Numpy is complaining about a missing math module, but I think
that is more likely caused by the libpng.dylib disaster than anything
else. I just checked the python.spkg and we are running "make install"
with parallel make, which I would guess is not a good idea :)

The ticket for that issue is #4174 and there should be an spkg
shortly.

> Justin
>

Cheers,

Michael
> --
> Justin C. Walker, Curmudgeon-At-Large
> Institute for the Enhancement of the Director's Income
> 
> When LuteFisk is outlawed,
> Only outlaws will have LuteFisk
> 
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: sage -wiki not starting

2008-09-22 Thread mabshoff



On Sep 22, 11:32 pm, Adam Webb <[EMAIL PROTECTED]> wrote:
> > > ^^^ This is some sort of permission error. Are you running SELinux or
> > > something like that?

Hi Adam,

> Just to confirm. SELinux was added to the computer. I am now
> 'negotiating' with IT. :-)

good luck negotiating :). You can relabel all the files so that Sage
and SELinux can play well together, but adding new pages to the wiki
might prove difficult since those new files need to inherit the right
ACLs.

> cheers,
> Adam

Cheers,

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



[sage-support] Re: Mercurial problems in 3.1.2

2008-09-22 Thread mabshoff



On Sep 22, 10:16 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote:
> On Sep 22, 2008, at 21:33 , mabshoff wrote:
[snip]

Hi Justin,

> > I am playing with libpng-1.2.32 since that is the latest release and
> > also has a boatload of security updates since the lowly 1.2.22 that we
> > ship. Hopefully this will resolve the symbol missing issues. I am
> > testing 3.1.3.alpha0 on OSX 10.5 to see if I can hit any of those
> > problems.
>
> Is 1.2.32 in alpha0?  As well as the md5 and numpy fixes (for parallel  
> building)?

Nope, none of those fixes is in alpha0, but I hope that at least some
of them will make it into alpha1, due out late tomorrow. I still don't
see how parallel make impacts numpy, so if you could send me the
portion of the blown up numpy build with parallel make I could attempt
to figure out what is wrong.

> Justin

Cheers,

Michael

> --
> Justin C. Walker, Curmudgeon-At-Large
> Institute for the Absorption of Federal Funds
> 
> Men are from Earth.
> Women are from Earth.
>     Deal with it.
> 
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Mercurial problems in 3.1.2

2008-09-22 Thread mabshoff



On Sep 22, 8:41 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote:
> On Sep 21, 2008, at 23:35 , mabshoff wrote:

Hi Justin,

> > On Sep 21, 11:27 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote:
> > This is the same crap issue you hit when building 3.1.2.rc-something,
> > i.e. emacs is linked against Apple's libnpng while launching it from
> > hg causes it to pick up "out" linpng. Results in *boom*. You can work
> > around this by writing an emacs script in SAGE_LOCAL/bin that sets
> > DYLD_LIBRARY_PATH to the old DYLD_LIBRARY_PATH and then launches
> > emacs.
>
> Well, that worked.  I actually used SAGE_ORIG_{LD,DYLD}_LIBRARY_PATH  
> to get it to work in all the cases I tried (and had to check the  
> $XXX_SET variables as well).  Thanks for the work-around.

No problem, good that it works for you.

> > Is someone can find out where Apple has its modifications to libpng
> > this issue can be resolved.
>
> I'll guess that it's a difference between versions (1.2.22 vs.  
> 1.2.24), but I can't find old source on the libpng site, and it  
> doesn't show up on the Darwin site (which I infer means that they did  
> not change anything).  I'll poke further, but if anyone has a better  
> idea, speak up!

I am playing with libpng-1.2.32 since that is the latest release and
also has a boatload of security updates since the lowly 1.2.22 that we
ship. Hopefully this will resolve the symbol missing issues. I am
testing 3.1.3.alpha0 on OSX 10.5 to see if I can hit any of those
problems.

> Justin

Cheers,

Michael

> --
> Justin C. Walker, Curmudgeon at Large
> Institute for the Absorption of Federal Funds
> ---
> My wife 'n kids 'n dogs are gone,
> I can't get Jesus on the phone,
> But Ol' Milwaukee's Best is my best friend.
> ---
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: long arithmetic

2008-09-22 Thread mabshoff



On Sep 22, 6:17 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 22, 2008 at 6:12 PM, Robert Bradshaw



> >> This is a bug, so I've added it to trac:
>
> >>http://trac.sagemath.org/sage_trac/ticket/4171
>
> > ... just after I added the ticket here:http://trac.sagemath.org/
> > sage_trac/ticket/4170
>
> What's the rule about whose is a dupe then?  I posted on sage-support
> first, but you hit "new ticket" first.    I'll let you have the ticket; please
> mark mine a dupe.
>
> William

Well, my personal rule is this:

 * ticket with a patch closes other tickets as dupe
 * no patches: earlier ticket stays open *unless* the later ticket has
a much better description

In this case Robert's ticket with patch (that I am currently
doctesting and likely to merge in 10 minutes) wins :)

Cheers,

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



[sage-support] Re: Seg fault with determinant calculation

2008-09-22 Thread mabshoff



On Sep 22, 4:23 pm, phil <[EMAIL PROTECTED]> wrote:
> On Sep 15, 10:26 am, Martin Albrecht <[EMAIL PROTECTED]>
> wrote:



> > I'll try to reproduce the crash and see what I can do about it. You could 
> > help
> > by running sage -gdb (if you have gdb installed) and send me the backtrace
> > off list. Thanks.
>
>   The original machine I was using was needed for other things.  So, I
> ran it on sage 3.1.2rc4 on sage.math.washington.edu and it completed
> successfully after 169446 seconds.  So, the problem was specific to
> the setup I was using or it was fixed in 3.1.2rc4.
>   The scaling of the problem seems worse than it should be though.
> The 9x9 problem takes 40 seconds while the 10x0 problem takes 4236
> times longer.  That's worse than O(n!) let along O(n^3).
>   If your curious, the test problem is 
> athttp://sage.math.washington.edu/home/fongpwf/sage_work/determinant_10...

It would be worth it to check foe either memory leaks or something
else fishy going on here via valgrind. Let me poke around to see if I
can find anything either in Sage or in libSingular.

> Phil

Cheers,

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



[sage-support] Re: sage -wiki not starting

2008-09-22 Thread mabshoff



On Sep 22, 6:59 am, Adam Webb <[EMAIL PROTECTED]> wrote:
> Hi,

Hi Adam,

> I would guess this might be related to ticket #1870. If I try to run
> sage -wiki or wiki() I get an error.
>
> $ sage
> --
> | SAGE Version 3.1.2, Release Date: 2008-09-16                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
>
> sage: wiki()
> **
> *                                                *
> * Open your web browser tohttp://localhost:9000*
> *                                                *
> **

It works for me:

sage: wiki()
**
**
* Open your web browser to http://localhost:9000 *
**
**
2008-09-22 09:30:32-0700 [-] Log opened.
2008-09-22 09:30:32-0700 [-] twistd 8.1.0 (//scratch/mabshoff/release-
cycle/sage-3.1.3.alpha1/local/bin/python 2.5.2) starting up
2008-09-22 09:30:32-0700 [-] reactor class: 
2008-09-22 09:30:32-0700 [-] MoinMoin.server.twistedmoin.MoinSite
starting on 9000
2008-09-22 09:30:32-0700 [-] Starting factory

2008-09-22 09:30:32-0700 [-] set uid/gid 1090/1090


> Removing stale pidfile /home/adamwebb/tmp/sage_wiki/twistd.pid
> 2008-09-22 14:03:18+0200 [-] Log opened.
> 2008-09-22 14:03:18+0200 [-] twistd 8.1.0 (/home/adamwebb/local/sage/
> local/bin/python 2.5.2) starting up
> 2008-09-22 14:03:18+0200 [-] reactor class:  'twisted.internet.selectreactor.SelectReactor'>
> 2008-09-22 14:03:18+0200 [-] MoinMoin.server.twistedmoin.MoinSite
> starting on 9000
> 2008-09-22 14:03:18+0200 [-] Starting factory
> 
> 2008-09-22 14:03:18+0200 [-] Traceback (most recent call last):
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> bin/twistd", line 21, in 
> 2008-09-22 14:03:18+0200 [-]     run()
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/scripts/twistd.py", line 27, in
> run
> 2008-09-22 14:03:18+0200 [-]     app.run(runApp, ServerOptions)
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/application/app.py", line 614, in
> run
> 2008-09-22 14:03:18+0200 [-]     runApp(config)
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/scripts/twistd.py", line 23, in
> runApp
> 2008-09-22 14:03:18+0200 [-]     _SomeApplicationRunner(config).run()
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/application/app.py", line 337, in
> run
> 2008-09-22 14:03:18+0200 [-]     self.postApplication()
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/scripts/_twistd_unix.py", line
> 207, in postApplication
> 2008-09-22 14:03:18+0200 [-]
> self.startApplication(self.application)
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/scripts/_twistd_unix.py", line
> 309, in startApplication
> 2008-09-22 14:03:18+0200 [-]
> self.shedPrivileges(self.config['euid'], uid, gid)
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/scripts/_twistd_unix.py", line
> 281, in shedPrivileges
> 2008-09-22 14:03:18+0200 [-]     switchUID(uid, gid, euid)
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/python/util.py", line 664, in
> switchUID
> 2008-09-22 14:03:18+0200 [-]     initgroups(uid, gid)
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/python/util.py", line 641, in
> initgroups
> 2008-09-22 14:03:18+0200 [-]     _setgroups_until_success(l)
> 2008-09-22 14:03:18+0200 [-]   File "/home/adamwebb/local/sage/local/
> lib/python2.5/site-packages/twisted/python/util.py", line 587, in
> _setgroups_until_success
> 2008-09-22 14:03:18+0200 [-]     setgroups(l)
> 2008-09-22 14:03:18+0200 [-] OSError: [Errno 1] Operation not
> permitted

^^^ This is some sort of permission error. Are you running SELinux or
something like that?

> True
> sage:
>
> This is on 32-bit Scientific Linux 5.1. I used the wiki with 3.1 so
> this is recent.
>
> cheers,
> Adam

Cheers,

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



[sage-support] Re: problems with install path

2008-09-22 Thread mabshoff



On Sep 22, 5:38 am, arnold <[EMAIL PROTECTED]> wrote:
> L.S.

Hi,

> When updating to Sage 3.1.2 I run into the following problem:
>
> Am using a Mac G4 dual core, OSX 10.4.11.
> Used a previous version of Sage without apparent problems. Updating to
> 3.1.2 however was not without hickups: copying Sage with the finder
> resulted in error messages that duplicate names were not allowed.
> Removing all visible traces of Sage from /Applications and then
> installing with Terminal (sudo cp -R -P "/Volumes/sage-3.1.2-osx10.4-
> ppc-PowerMacintosh-Darwin/" . inside the Applications folder) appeared
> to work fine. Starting Sage however resulted in the following:
>
> /Users/arnold>cd "/Applications/sage" ; "/Applications/sage/sage"
> --
> | SAGE Version 3.1.2, Release Date: 2008-09-19                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
> The SAGE install tree may have moved.
> Regenerating Python.pyo and .pyc files that hardcode the install PATH
> (please wait at most a few minutes)...
> Please do not interrupt this.
> Traceback (most recent call last):
>   File "/Applications/sage/local/bin/sage-location", line 71, in
> 
>     update_library_files(R)
>   File "/Applications/sage/local/bin/sage-location", line 39, in
> update_library_files
>     open(LIB + F,'w').write(H)
> IOError: [Errno 13] Permission denied: '/Applications/sage/local/lib/
> libfplll.la'

Since you installed via sudo you do not own the Sage files. If you
start sage once under sudo this will likely fix those issues.

> sage:
>
> Typing "notebook()" gives me a list of previous notebooks; when I open
> one, type a new line and ask to evaluate nothing happens.
>
> The error message at startup never occurred before.
> What am I doing wrong?
>
> Regards,
> arnold

Cheers,

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



[sage-support] Re: Mercurial problems in 3.1.2

2008-09-21 Thread mabshoff



On Sep 21, 11:27 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote:
> Hi, all,
>
> I'm on Mac OS X, 10.5.4 (dual quad xeon), and when I run "sage -hg  
> commit", I get this
>



>
> Anyone seen this?

This is the same crap issue you hit when building 3.1.2.rc-something,
i.e. emacs is linked against Apple's libnpng while launching it from
hg causes it to pick up "out" linpng. Results in *boom*. You can work
around this by writing an emacs script in SAGE_LOCAL/bin that sets
DYLD_LIBRARY_PATH to the old DYLD_LIBRARY_PATH and then launches
emacs.

Is someone can find out where Apple has its modifications to libpng
this issue can be resolved.

> Justin

Cheers,

Michael

> --
> Justin C. Walker, Curmudgeon-At-Large, Director
> Institute for the Enhancement of the Director's Income
> 
> The path of least resistance:
> it's not just for electricity any more.
> 
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Sage 3.1.2 released (i.e. binaries are available)

2008-09-21 Thread mabshoff

[Due to three security critical notebook bugs it is *highly*
recommended that you upgrade from all previous versions of Sage.
Binaries for all platforms are available at sagemath.org. The mirrors
are hopefully catching up soon.]

Hello folks,

Sage 3.1.2 was released on September 19th, 2008. It is available at

   http://sagemath.org/download.html

* About Sage (http://www.sagemath.org)

Sage is developed by volunteers and combines 71 open source packages.
It is available for download from sagemath.org and its mirrors in
source or binary form. If you have any questions and/or problems
please report them to the Google groups sage-devel or sage-support.
You can also drop by in #sage-devel or #sage-support in freenode.

-

The following 42 people contributed to this release:

 * Tim Abbott
 * Michael Abshoff
 * Martin Albrecht
 * Robert Bradshaw
 * Arnaud Bergeron [first contribution]
 * C. Boncelet [first contribution]
 * Tom Boothby
 * Michael Brickenstein
 * Ondrej Certik
 * Craig Citro
 * Timothy Clemans
 * John Cremona
 * Karl-Dieter Crisman
 * Burcin Erocal
 * Gary Furnish
 * Alex Ghitza
 * Andrzej Giniewicz
 * Jason Grout
 * Mike Hansen
 * Marshall Hampton
 * Chris Holdsworth [first contribution]
 * Hamish Ivey-Law [first contribution]
 * David Joyner
 * Josh Kantor
 * Simon King
 * Steve Linton
 * Jason Merrill [first contribution]
 * Robert Miller
 * Minh Nguyen
 * Willem Jan Palenstijn
 * John Palmieri
 * David Philp [first contribution]
 * Yi Qiang
 * Nils-Peter Skoruppa [first contribution]
 * Franco Saliola
 * William Stein
 * Griffen Thoma [first contribution]
 * Igor Tolkov
 * Ralf-Philipp Weinmann
 * Georg Weber [first contribution]
 * Carl Witty
 * Chris Wuthrich

Cheers,

Michael Abshoff (release chair), William Stein

* Major Features, New Spkgs and Bugfixes

 * Doctest Coverage Hits 60% (Mike Hansen and others)
 * Hidden Markov Models (William Stein)
 * Fix various Notebook Bugs (Timothy Clemans, Mike Hansen)
 * New Structures for Partition Refinement (Robert Miller)
 * Improved Dense Linear Algebra over GF(2) (Martin Albrecht)
 * Update to new PolyBoRi Version (0.5) and Improved Interface (Tim
Abbott, Michael Abshoff, Martin Albrecht)
 * QEPCAD Interface (Carl Witty)
 * Update Developer's Handbook (John Palmieri)
 * Improved 64-bit OSX Support (Michael Abshoff)
 * GAP Meataxe Interface (Simon King, David Joyner)
 * Better SymPy Integration (Ondrej Certik)
 * Real Number Inputs Improved (Robert Bradshaw)
 * Faster Determinants of Dense Matrices over Multivariate Polynomial
Rings (Martin Albrecht)
 * Arrow drawing improved (Jason Grout)
 * Eigen functions for matrices (Jason Grout)
 * Memory Leak fixes (Michael Abshoff, Craig Citro)

For details see the Sage 3.1.2 Release Tour at

  http://wiki.sagemath.org/sage-3.1.2

* Known Issues with 3.1.2:

 * RHEL 5 clisp build issue: the latest clisp.spkg does not build
   so please use the clisp.spkg from Sage 3.0.3.

* Bug Statistics

We closed 251 tickets. For details see

   http://trac.sagemath.org/sage_trac/milestone/sage-3.1.2

or check out the closed ticket section at the end of the
announcement.

* Upcoming Releases

The next release will be 3.1.3, chaired by Michael Abshoff. It will
be a mix of new features and bug fixes.

* Doctesting Coverage

For 3.1.1 we had:

Overall weighted coverage score:  56.5%
Total number of functions:  20920

We increased coverage by 4.0% in 3.1.2 while removing 336 functions:

Overall weighted coverage score:  60.5%
Total number of functions:  20584

* Closed Tickets:

Merged in Sage 3.1.2.rc5:

#3534: William Stein, John Palmieri: plot -- fix circle example in the
documentation [Reviewed by Mike Hansen]
#3894: John Palmieri: in tutorial, live version, triple dots are not
visible [Reviewed by Mike Hansen]
#4063: Timothy Clemans: properly escape the titles of worksheets
[Reviewed by Mike Hansen]
#4133: Mike Hansen, Michael Abshoff: sage.math - sage 3.1.2.rc4
doctest failure in interfaces/maxima.py [Reviewed By Robert Miller]
#4130: Michael Abshoff: #4125 does not work on OS X 10.4 [Reviewed by
Robert Miller]
#4131: Michael Abshoff: unbreak sage-clone [Reviewed by Mike Hansen]
#4137: William Stein: add doctests for user_type() in avatar.py
[Reviewed by Mike Hansen]
#4138: Michael Abshoff: Sage 3.1.2.rc5: fix documentation build issues
[Reviewed by Mike Hansen]

Merged in Sage 3.1.2.rc4:

#925: Michael Abshoff: valgrind options to sage (sage -valgrind, sage
-
callgrind, etc.) should be more customizable [Reviewed by Robert
Miller]
#1915: Alex Ghitza: infinity doesn't behave well [Reviewed by John
Cremona]
#3563: Michael Abshoff: make "def atlas()" deal with the Accelerate
Framework on OSX [Reviewed by Robert Miller]
#3675: Michael Abshoff: upgrade optinal valgrind.spkg to the 3.3.1
release [Reviewed by Robert Miller]
#3847: Alex Ghitza: can't make vector of ints [Reviewed by John
Cremona]
#4097: Robert Miller: matrix automorphism groups 

[sage-support] Re: problem of using surf in SAGE online server 2

2008-09-20 Thread mabshoff



On Sep 20, 11:37 am, pong <[EMAIL PROTECTED]> wrote:

Hi Pong,

> I tried the example
>
> sage: s = singular.eval
> sage: s('LIB "surf.lib";')
>       ...
> sage: s("ring rr0 = 0,(x1,x2),dp;")
>       ...
> sage: s("ideal I = x1^3 - x2^2;")
>       ''
> sage: s("plot(I);")
>
> inhttp://www.dms.umontreal.ca/~math/logiciels/Sage/const/node18.html#ch:AG
>
> Looks like surf has been loaded and everything is fine but at the end
> I got:
>
> Traceback (click to the left for traceback)
> ...
>    skipping text from `;` error at token `)`
>
> Any help?

IIRC surf does depend on some Java binary code shipped with Singular
and we have removed it. I am also pretty sure surf is broken when used
via the notebook server.

Cheers,

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



[sage-support] Re: Maxima problems in sage 3.1.1

2008-09-15 Thread mabshoff



On Sep 15, 6:34 pm, Jason Bandlow <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've been happily '$ sage -updgrade'ing since sage 2.10 or so, and
> recently noticed that I couldn't use Maxima (details below).  I'm not
> sure for how long I've had this problem.   Knowing the disclaimer that
> applies to upgrading, I downloaded the linux 32-bit binaries for 3.1.1
> from sagemath.org and still had the same problem.   I'm running Ubuntu
> Hardy on an AMD laptop.
>
> If I try any command that calls Maxima, I have to wait for a timeout,
> and then get an error.   Specific system information and a traceback are
> below.
>
> Thanks very much for any help,
> Jason Bandlow
>



Hi Jason,

> *** - invalid byte #xFD in CHARSET:UTF-8 conversion, not a Unicode-16

this is #2841 and clisp riding on the short bus. Check your home
directory for any file with an accent or Umlaut and you likely found
the culprit you need to rename. This has been open on the clisp end
forever and has never been fixed. That is why we are moving to ecls,
hopefully in the 3.1.3 release cycle.


Cheers,

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



[sage-support] Re: bug in sage -clone for 3.1.2.rc4?

2008-09-15 Thread mabshoff



On Sep 15, 6:27 pm, "David Joyner" <[EMAIL PROTECTED]> wrote:
> Hi:
>
> After building 3.1.2.rc4 I got the following error when I tried to create a
> clone:
>
> 
>
> SAGE build/upgrade complete!
> [EMAIL PROTECTED]:~/sagefiles/sage-3.1.2.rc4$ ./sage -clone dbl-coset
>   File "/home/wdj/sagefiles/sage-3.1.2.rc4/local/bin/sage-clone", line 71
>     echo 'Pbuild is currently broken -- defaulting to serial build.'
>                                                                    ^
> SyntaxError: invalid syntax
>
> real    0m0.043s
> user    0m0.018s
> sys     0m0.006s
>
> Does this make any sense?

Yes, it is a stupid buglet that we just fixed. It slipped by during
the review process since it was 5 am :(

> - David Joyner

Patch is up at #4131 that fixes the issue.

Cheers,

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



[sage-support] Re: Raising an Error resulted in a crash

2008-09-15 Thread mabshoff



On Sep 15, 4:25 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> On Sep 15, 2008, at 4:22 PM, Simon King wrote:
>
>
>
>
>
> > Dear Robert,
>
> > simply for testing, i raise an error as soon as the init-method of my
> > class is called. So, for the moment the code looks like this:
> > class COHO:
> >     """
> >     Docstring
> >     """
> >     def __init__(self, *args, **kwds):
> >         raise ValueError, "fooBAR..."
> >         # followed by a lots of more code
>
> > And now the reason why i am puzzled.
> > If i write a .pyx file with the above content, then everything is fine
> > (i.e., an error is raised, but no crash occurs). But with my module
> > (although the relevant (?) part of it has exactly the above form), it
> > fails:
> > sage: from cohomology import *
> > sage: H=COHO()
> > /home/king/SAGE/devel/sage-3.1.1/local/bin/sage-sage: line 216: 27343
> > Speicherzugriffsfehler  sage-ipython "$@" -c "$SAGE_STARTUP_COMMAND;"
>
> > Note that my class also has a __del__ method.
> > Could that be the reason for the "Speicherzugriffsfehler" (what is it
> > in english?)?
> > I mean, would __del__ be called if __init__ fails?
>
> No idea what Speicherzugriffsfehler means (never heard of that  
> before) but __del__ might be called on a failing __init__.

invalid memory access :)

> For Cython, you might want to use __cinit__ and __dealloc__ (which  
> are guaranteed to be called exactly once in pairs).
>
> - Robert

Cheers,

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



[sage-support] Re: Raising an Error resulted in a crash

2008-09-15 Thread mabshoff



On Sep 15, 4:07 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> On Sep 15, 2008, at 3:56 PM, Simon King wrote:
>
>
>
> > Dear Robert,
>
> > On Sep 16, 12:46 am, Robert Bradshaw <[EMAIL PROTECTED]>
> > wrote:
> >> Try running as sage -gdb , which will catch the error. Then you can
> >> type "bt" at the prompt to get a c traceback.
>
> > I don't understand what the following tells me.
> > When there should be an error raised, instead i get:
>
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 46922761735376 (LWP 26484)]
> > 0x0041befe in instancemethod_call (func=0x34ba680,
> > arg=0x36ebab8,
> >     kw=0x0) at Objects/classobject.c:2477
> > 2477    Objects/classobject.c: Datei oder Verzeichnis nicht gefunden.
> >         in Objects/classobject.c
> > (gdb) bt
> > #0  0x0041befe in instancemethod_call (func=0x34ba680,
> > arg=0x36ebab8,
> >     kw=0x0) at Objects/classobject.c:2477
> > #1  0x00415913 in PyObject_Call (func=0x36ebab8,
> > arg=0x36ebab8, kw=0x0)
> >     at Objects/abstract.c:1861
> > #2  0x0047efd2 in PyEval_CallObjectWithKeywords
> > (func=0x35a4f00,
> >     arg=0x36ebab8, kw=0x0) at Python/ceval.c:3442
> > #3  0x0041dd68 in instance_getattr (inst= > out>,
> >     name=0x99a840) at Objects/classobject.c:755
> > #4  0x2aad32fd7298 in ?? ()
> > #5  0x in ?? ()
>
> > That's all. But what does it mean?
>
> Hmm... that's not a very informative traceback (just generic Python  
> calls). I would try putting some print statements in. What is the  
> return type of the function you're raising an error from?
>
> - Robert

There are a couple things you can do:

a) boil it down to a simple patch against some recent 3.1.x and I can
take a look.
b) Build the Sage library with "-O0". To do so edit $SAGE_ROOT/local/
lib/python2.5/config/Makefile and change

# Compiler options
OPT=-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

to

# Compiler options
OPT=-DNDEBUG -g -fwrapv -O0 -Wall -Wstrict-prototypes

Maybe that will help. Then do a "sage -ba" to rebuild the whole Sage
library

If that still does not help you can also build Python with "-O0", but
we can do that later.

Cheers,

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



[sage-support] Re: gmp.h again?

2008-09-12 Thread mabshoff



On Sep 11, 9:27 pm, TMichel <[EMAIL PROTECTED]> wrote:
> Having a problem while building 3.1.1 on ia64 IRIX with gcc 4.4.  I
> donnot know what I am doing.  Info:

A couple more remarks: You are running Linux and not IRIX by the way.

> > uname -a
>
> Linux  2.6.5-7.244-sn2 #1 SMP Mon Dec 12 18:32:25 UTC 2005 ia64 GNU/
> Linux> gcc --v
>
> Using built-in specs.
> Target: ia64-unknown-linux-gnu
> Configured with: ../gcc/configure --prefix=/home/me --enable-
> languages=c,c++,fortran --with-mpfr=/home/trm/
> Thread model: posix
> gcc version 4.4.0 20080911 (experimental) (GCC)

Any particular reason you are runnning an experimental gcc release?
gcc 4.3.1 works perfectly fine for us on SLES 10 as well as RHEL 5 on
Itanium.

Cheers,

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



[sage-support] Re: PIL and jpeg on OS X workaround

2008-09-12 Thread mabshoff

On Sep 10, 7:11 pm, Jason Merrill <[EMAIL PROTECTED]> wrote:

Hi Jason,

> I had been having trouble for a while figuring out how to load jpgs
> into a usable form on OS X.  The optional PIL spkg that gets installed
> through sage -i PIL-1.1.5.spkg would throw an IOError when I tried to
> load in a jpeg, complaining that the jpeg decoder wasn't available.
>
> I found a work around tonight, which was to install PIL through
> macports (py25-pil is the package name).  I already had libjpeg
> installed through macports (jpeg is the package name).  Then I just
> went into the directory where PIL got installed, /opt/local/lib/
> python2.5/site-packages/, and then copied the PIL folder and PIL.pth
> into sage's python: /Applications/sage/local/lib/python/site-packages/

Sage 3.1.2 will have the fixes so we no longer end up using Apple's
IOKit. This caused a bunch of issues with libpng.dylib similar to the
above. There is an spkg for libjpeg, but it is not merged yet. Once
that is merged the above problem will go away.

> With that stuff there, I can now do
>
> sage: import pylab
> sage: imjpg = pylab.imread(DATA+'aarts02.jpg')
> sage: pylab.imshow(imjpg)
> sage: pylab.savefig('imjpg')
>
> and I actually see an image.
>
> If I can provide information or anything else helpful for turning this
> hack into something that works the way sage is supposed to, please let
> me know.
>
> Regards,
>
> JM

Cheers,

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



[sage-support] Re: gmp.h again?

2008-09-12 Thread mabshoff

On Sep 11, 9:27 pm, TMichel <[EMAIL PROTECTED]> wrote:


Hi,

> Having a problem while building 3.1.1 on ia64 IRIX with gcc 4.4.  I
> donnot know what I am doing.  Info:
>
> > uname -a
>
> Linux  2.6.5-7.244-sn2 #1 SMP Mon Dec 12 18:32:25 UTC 2005 ia64 GNU/
> Linux> gcc --v
>
> Using built-in specs.
> Target: ia64-unknown-linux-gnu
> Configured with: ../gcc/configure --prefix=/home/me --enable-
> languages=c,c++,fortran --with-mpfr=/home/trm/
> Thread model: posix
> gcc version 4.4.0 20080911 (experimental) (GCC)
> ---
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -O3 -
> mtune=itanium2 -c isfuns.cc  -fPIC -DPIC -o .libs/isfuns.o
> In file included from isfuns.cc:25:
> ../gmp.h:516: error: 'std::FILE' has not been declared
> make[4]: *** [isfuns.lo] Error 1
> make[4]: Leaving directory `/mnt/uav-r0/trm/src/sage-3.1.1/spkg/build/
> gmp-4.2.2.p1.fake/src/cxx'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/mnt/uav-r0/trm/src/sage-3.1.1/spkg/build/
> gmp-4.2.2.p1.fake/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/mnt/uav-r0/trm/src/sage-3.1.1/spkg/build/
> gmp-4.2.2.p1.fake/src'
> Error building GMP.
>
> sage: An error occurred while installing gmp-4.2.2.p1.fake
> ---
>
> As noted in previous posts with similar problem
> commenting out the declaration"std::file" in mpg.h
> enable compilation... but I have no idea how to
> fix the package.
>
> Apologies if this is a re-hash.

Nope, it isn't. I have a bunch of fixes to build Sage with gcc
4.4.CVS, but since that compiler is at Stage 3 they will not be in
3.1.2.  You need the following fixes which will likely make it into
the next release after 3.1.2.

Cheers,

Michael

Sage 3.1.2.rc0 vs. gcc 4.4-20080905

## gmp ## [clean fix]

 *  include  in gmp-in.h

## ntl ## [clean fix]

 *  in src/WizardAux - add "$|++;" in the function to force autoflush
this might be broken: "CFILEOUT->flush();", but seems to be the
recommended way to do things

 *  In tools.h add "include " for "EOF"

## matplotlib ## [clean fix]

 * add "#include " in src/mplutils.cpp

## libfplll ## [dirty fix]

 * src/nr.cpp - scope issues with gmp's and mpfr's string functions in
some templates

## polybori ## [clean fix?]

 * boost busted" +138 boost_1_34_1.cropped/boost/mpl/apply.hpp and
others: problem might be extra () in a bunch of places

## clisp ##

 * internal compiler error - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37418

gcc -Igllib -O0 -g -I/home/mabshoff/build-3.1.2.rc0/sage-3.1.2.rc0-eno-
gccc-4.4-2008-09-5/local/include/ -L/home/mabshoff/build-3.1.2.rc0/
sage-3.1.2.rc0-eno-gccc-4.4-2008-09-5/local/lib/ -W -Wswitch -Wcomment
-Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-
sign-compare -O -falign-functions=4 -DUNICODE -DNO_SIGSEGV -I. -c
eval.c
eval.d: In function ‘unwind_upto’:
eval.d:656: error: type mismatch in address expression
void (*restartf_t) (void * *)

void (*) (void * *)

unwind_protect_to_save.fun = unwind_upto;

eval.d:656: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [eval.o] Error 1
Error building clisp

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



[sage-support] Re: SnapPeaPython

2008-09-10 Thread mabshoff



On Sep 10, 5:45 pm, hypermonkey2 <[EMAIL PROTECTED]> wrote:
> Hi again!

Hi,

> i am trying to get SnapPeaPython running in SAGE on my EEEpc
> (on an SD card (ext2)).

Don't do it the following way since you are installing into to
"global" Python.

>  [1;31meeepc-jonathanl: [1;34m/media/E/SnapPeaPython [1;00m> sudo
> python setup.py build

Instead run "./sage -sh" followed by "python setup.py install".

> running build
> running build_py
> running build_ext
> building 'SnapPea.SnapPeaC' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-
> prototypes -fPIC -DDEBUG_MALLOC=0 -ISnapPeaC/headers -ISnapPeaC/
> unix_kit -I/usr/include/python2.4 -c SnapPeaC/SnapPeaC.c -o build/
> temp.linux-i686-2.4/SnapPeaC/SnapPeaC.o
> unable to execute gcc: No such file or directory
> error: command 'gcc' failed with exit status 1
>
> any ideas where this gcc problem comes from?
> Thanks so much,
> Jon

Do you have gcc installed? What does "gcc" return on the shell?

Cheers,

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



[sage-support] Re: Trace of Hecke Operator with large integer

2008-09-10 Thread mabshoff



On Sep 10, 2:09 pm, Raouf <[EMAIL PROTECTED]> wrote:
> i have windows Xp Os and i use sage 3.1.1 vmware with notebook.

Ok, then you are using a 32 bit build. At

http://trac.sagemath.org/sage_trac/attachment/ticket/4098/trac-4098.patch

you can find a patch that fixes the issue and should cleanly apply
against 3.1.1. It will be in 3.1.2 which should be out in a few days.

Cheers,

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



[sage-support] Re: Trace of Hecke Operator with large integer

2008-09-10 Thread mabshoff


Hi,

even  with what will become 3.1.2.rc2 this blows up on a 32 bit build:

varro:~/sage-3.1.2.rc1 mabshoff$ ./sage
--
| SAGE Version 3.1.2.rc1, Release Date: 2008-09-08   |
| Type notebook() for the GUI, and license() for information.|
--

sage: M1 =  ModularSymbols(21,2)
sage: T1 =  M1.hecke_operator(13^8)
sage: trace1=T1.trace()
sage: print trace1
2651076189
sage: M1 =  ModularSymbols(21,2)
sage: T1 =  M1.hecke_operator(13^9)
---
TypeError Traceback (most recent call
last)

/Users/mabshoff/sage-3.1.2.rc1/ in ()

/Users/mabshoff/sage-3.1.2.rc1/local/lib/python2.5/site-packages/sage/
modular/hecke/module.py in hecke_operator(self, n)
858int n -- an integer at least 1.
859 """
--> 860 return self.hecke_algebra().hecke_operator(n)
861
862 def T(self, n):

/Users/mabshoff/sage-3.1.2.rc1/local/lib/python2.5/site-packages/sage/
modular/hecke/algebra.py in hecke_operator(self, n)
184 pass
185 n = int(n)
--> 186 T = hecke_operator.HeckeOperator(self, n)
187 self.__hecke_operator[n] = T
188 return T

/Users/mabshoff/sage-3.1.2.rc1/local/lib/python2.5/site-packages/sage/
modular/hecke/hecke_operator.py in __init__(self, parent, n)
360 HeckeAlgebraElement.__init__(self, parent)
361 if not isinstance(n, int):
--> 362 raise TypeError, "n must be an int"
363 self.__n = n
364

TypeError: n must be an int

Ticket time: we are tracking the problem at 
http://trac.sagemath.org/sage_trac/ticket/4098

Cheers,

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



[sage-support] Re: sage on eeepc

2008-09-10 Thread mabshoff



On Sep 10, 12:20 pm, hypermonkey2 <[EMAIL PROTECTED]> wrote:

Hi,

> OK! so ive managed to extract sage onto an SD card (ext2 formatted).
> when i run sage, i get this:
> --
> | SAGE Version 3.1.1, Release Date: 2008-08-17                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
> /usr/bin/env: sage.bin: No such file or directory
> /home/user/E:/sage/local/bin/sage-sage: line 171: sage-cleaner:
> command not found
> /home/user/E:/sage/local/bin/sage-sage: line 218: sage-ipython:
> command not found
>
> any ideas??

Did you mount the disk to "/home/user/E:"? The colon, i.e. ":" is a
path separation character under Linux/Unix, so this cannot work.
Moving Sage to some place where the path has no colon should work.

> Thanks!
> Jon

Cheers,

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



[sage-support] Re: problems with sage notebook and folder sharing on windows

2008-09-05 Thread mabshoff

On Sep 4, 7:28 pm, david <[EMAIL PROTECTED]> wrote:

Hi David,

> I just installed the VMWare  player and SAGE on my Windows XP
> machine.  The sage notebook does not come up, a slew of error messages
> are given, and the VMWare folder sharing does not seem to work.  I
> would post the error messages but there does not seem to be a way to
> copy data out of the VMWare player, nor to scroll upward in the
> window.  I also tried to run a browser outside of VMWare and open the
> localhost address given, but it did not work.  Any tips?  The sage
> version is 3.0.1 release data 2008-05-05, the VMWare is current as of
> 9-04-08.

That is rather old. Where did you get the VMWare image? The current
download version is 3.0.6 (Sage 3.1.1 is out, but the VMWare image has
not been updated yet).

I suspect your download is either corrupted or incomplete. What size
is it?

> Also the VMWare only uses about a 1/4 of the screen, even in full
> screen mode, is there a way to enlarge the font in the shell?

Hmm, VMWare might have some settings, but there is not many knobs to
tweak.

> best regards,
>
> David

Cheers,

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



[sage-support] Re: Copying/moving worksheets

2008-09-02 Thread mabshoff



On Sep 2, 2:44 pm, Marshall Hampton <[EMAIL PROTECTED]> wrote:
> I'm a little confused - I upgrade my sage version often in the middle
> of semesters.  Since the notebook lives in a seperate directory it
> shouldn't be a problem.
>
> Perhaps my confusion is related to the VMWare server, because I don't
> use that.  I thought you could upgrade those though.
>
> -M. Hampton
>

Odd, this discussion ended somehow on sage-devel, too.

Anyway: in this context upgrade == download new VMWare image of Sage.

As Marshall pointed out: the in-place upgrade should work and as I
mentioned in the sage-devel thread one should make a copy of the
VMWare image with the data before attempting to do so since if one has
backups fewer things tend to go wrong due to Murphy's law :)

Cheers,

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



[sage-support] Re: Error configuring clisp - cannot find source lispbibl.d (Linux RHEL)

2008-09-02 Thread mabshoff



On Sep 2, 12:07 pm, Shan-Ho <[EMAIL PROTECTED]> wrote:
> Dear All,

Hi Shan-Ho,

> I am trying to install Sage 3.1.1 (downloaded the source
> tarball) on an AMD Opteron node, running Red Hat Linux
> (Entreprise Level 4.3). I am getting an error configuring
> clisp, the error message is:
>
>  configure: error: cannot find sources (lispbibl.d) in
> /usr/local/RepeatMasker or ..
> Error configuring clisp
>
> where /usr/local/RepeatMasker is the first directory in
> my PATH. The file lispbibl.d is there in the directory
> spkg/build/clisp-2.46.p6/src/src under the sage-3.1.1
> directory. Not sure why configure doesn't find it.
>
> Is it possible for me to install clisp separately and
> tell sage to find it in a given path? If so, how do I
> pass this clisp path in the sage building stage?

The issue here is that we rename the clisp binary to clisp-bin - at
least that is what Maxima is looking for. You need a little wrapper
script or clisp as well as clisp.bin like

#!/bin/sh
"$SAGE_ROOT/local/bin/clisp.bin" -B "$SAGE_ROOT/local/lib/clisp-2.46"
"$@"

and adjust the path and binary name for your install. You can also
change the maxima.spkg to use clisp instead of clisp.bin as a binary
name.

> Any thoughts how to fix this problem would be highly
> appreciated. Below are the last 50 lines of install.log:

In so many words: clisp sucks and we will hopefully switch to ecl in
the next (3.2) release. We just upgraded Maxima so that it can be
build with ecl in 3.1.2 - which will be out this week. 3.2 will then
follow in about another two weeks.



> Thanks!
> Shan-Ho Tsai

Cheers,

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



[sage-support] Re: failed to download cddlib-094b.p1

2008-08-29 Thread mabshoff



On Aug 29, 7:33 am, Thierry Dumont <[EMAIL PROTECTED]> wrote:
> Trying to install polymake in sage 3.1, I got the message:
>

Hi Thierry,

this is a known issue and I have a fixed spkg-install that should once
and for all resolve the issue. We are tracking this at #3640 and I
need to put up a spkg and get it reviewed since I have been sitting on
this for a while.

Sorry that this is taking so long :(

> **
> * Unable to download cddlib-094b.p1
> * Please seehttp://www.sagemath.org//packagesfor a list of valid
> * packages or check the package name.
> **
> sage: Failed to download package cddlib-094b.p1 fromhttp://www.sagemath.org/
>
> yours
> t.d.

Cheers,

Michael

>  tdumont.vcf
> < 1KViewDownload
>
>  smime.p7s
> 5KViewDownload
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: solve() fails to produce a solution

2008-08-28 Thread mabshoff



On Aug 28, 10:47 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 28, 2008 at 8:57 AM, Roger <[EMAIL PROTECTED]> wrote:
>
> > solve([x==0, 1-exp(y)==0],x,y)
> > returns the empty set, although (0,0) is an obvious solution. This
> > occurs also for other simple combinations involving exp, as well as
> > for
> > solve([y*sin(x)==0, cos(x)==0],x,y)
>
> > What am I doing wrong? Thanks. (Sage 3.0.2 on Mac OSX)
>
> Sage uses Maxima's solve command, and Maxima's solve
> command is pretty wimpy, and we (Sage developers) intend
> to write our own new solve command that can deal with
> more general equations.
>
> Here's an illustration of maxima not solving the above equations
>
> sage: !maxima
> (%i2) solve([x=0, 1-exp(y)=0],[x,y]);
> (%o2)                                 []
> (%i3) solve([y*sin(x)=0, cos(x)=0],[x,y]);
> (%o3)                                 []

Yeah, and it is also broken in the latest Maxima (since William might
have used the Maxima from Sage 3.1.1):

Maxima 5.16.2 http://maxima.sourceforge.net
Using Lisp CLISP 2.46 (2008-07-02)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) solve([x=0, 1-exp(y)=0],[x,y]);
(%o1) []
(%i2) solve([y*sin(x)=0, cos(x)=0],[x,y]);
(%o2) []
(%i3)

Since Robert Dodier is not subscribed to sage-support I am CCin him
here.

> You can read the help on maxima's solve, if you want to get
> a sense of its limitations.
>
> sage: maxima.solve?
>
> William

Cheers,

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



[sage-support] Re: numerically solving a polynomial system of equations

2008-08-25 Thread mabshoff

On Aug 25, 1:21 am, iSAGE <[EMAIL PROTECTED]> wrote:
> There is a matlab/octave interface to it. Look at the following
> reference onhttp://www.math.uic.edu/~jan/
> I don't know more about this since I am also at the moment collecting
> information on how to solve a large system of polynomial equations.
>
> Yun Guan and Jan Verschelde: PHClab: A MATLAB/Octave interface to
> PHCpack. The abstract and  paper . Take a look at the  Poster. In IMA
> Volume 148: Software for Algebraic Geometry, edited by Michael E.
> Stillman, Nobuki Takayama, and Jan Verschelde. Pages 15-32, Springer-
> Verlag, 2008.
>
> Bhalchandra Thatte

There is also a quite sophisticated interface in Sage, but as long as
the code is written in Ada there is a zero percent chance that that
code will become standard in Sage. The optional package we have is a
bunch of binaries since Ada support is usually not available. Note
that at least until recently there was not even a 64 bit x86-64 ot
Itanium binary on Verschelde's website.

Cheers,

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



[sage-support] Re: Issues wrt sage 3.1.1 on linux

2008-08-24 Thread mabshoff



On Aug 24, 4:55 pm, doug5y <[EMAIL PROTECTED]> wrote:
> PS What systems are you running sage on? Just interested.

Dual Core 2.4GHz Core2 with 4 GB Ram for my laptop, 16 core 64 GB box
for development (sage.math) :)

> Cheers,
> DN

You can also run the tests with "-long" added, that way there is a
rather long timeout, but some of the tests need more memory and will
run longer - up to 15 minutes probably in your case.

Cheers,

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



[sage-support] Re: Issues wrt sage 3.1.1 on linux

2008-08-24 Thread mabshoff

On Aug 24, 3:36 pm, doug5y <[EMAIL PROTECTED]> wrote:
> Hello,

Hi Doug,

> I upgraded my sage 3.0.6 installation using the command : sage -
> upgrade. Every thing seemed to go well.
>
> I then did sage --testall with the result :
>
> --
> The following tests failed:
>
>         sage -t  devel/sage/sage/graphs/graph_generators.py
>         sage -t  devel/sage/sage/calculus/calculus.py
>         sage -t  devel/sage/sage/combinat/root_system/
> weyl_characters.py
> Total time for all tests: 11051.6 seconds

Could you post the output from the failures? Your system seems to be a
slow one and all three of the above could have simply timed out.

> Is there any way to get more detailed info wrt to these failures?
> Maybe correct them in some way?
>
> The output of uname -a is :
>
> uname -a
> Linux yamnuska 2.6.25.14-69.fc8 #1 SMP Mon Aug 4 14:20:24 EDT 2008
> i686 athlon i386 GNU/Linux
>
> TIA,
> Doug Nadworny

Cheers,

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



[sage-support] Re: numerically solving a polynomial system of equations

2008-08-24 Thread mabshoff



On Aug 24, 2:22 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Sun, Aug 24, 2008 at 2:03 PM, Joshua Kantor <[EMAIL PROTECTED]> wrote:
>
> > 1. I would recommend looking at phcpack, it is designed to exploit the
> > special nature of large polynomial systems, however, supposedly I
> > believe it is sometimes difficult to compile, I've never used it but
>
>           ^
>
> It is written in ADA.

And building the GNU Ada compiler from sources is a giant pain unless
you have the GNU Ada compiler to bootstrap. I did build some phcpack
binaries for x86-64 Linux and it has a tendency to segfault when run
on say Debian if the binary was build on a FC8 box and vice versa. I
mainly wanted an Itanium binary, but cross compiling the ada toolchain
was just plainly not worth it for it.

So in conclusion: great code if you can use a binary that works, if
you need to build from sources it plainly sucks. The lesson learned
here is not to use exotic languages since the (alleged) benefit from
using Ada is far outweight by the fact that the practicality of
building the code :)



> William Stein

Cheers,

Michael

> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org

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



[sage-support] Re: polymake

2008-08-18 Thread mabshoff

On Aug 18, 2:37 pm, "Alec Mihailovs" <[EMAIL PROTECTED]> wrote:

Hi Alec,

> I just tried to install polymake (an optional package) in Sage 3.1.1 and it
> failed because it tried to find cddlib-094b.p1 while the next patch,
> cddlib-094b.p2 is included in standard packages.
>
> Alec

I have an updates spkg that fixes those issues once and for all. I
need to polish it and have it reviewed so that I can push it into the
repo.

Cheers,

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



[sage-support] Re: Plans for a Sage port to Solaris ??

2008-07-22 Thread mabshoff



On Jul 22, 1:46 am, Pierre <[EMAIL PROTECTED]> wrote:
> > Did the 32 bit binary work for you, i.e. did it at least start up?
>
> er... which one ? i keep having a look at the following page:
>
> http://wiki.sagemath.org/solaris

Oops, I did not mention it there, but only in a similar thread on sage-
devel.

> and i'm waiting for a 'download' link to pop up one day. Obviously i'm
> confused ! how does one get a binary ??

Check out

http://sage.math.washington.edu/home/mabshoff/release-cycles-3.0.5/

> i sort of feel like a charlie !
>
> cheers
> pierre

I will likely do a custom 3.0.6 binary in a day or two with numpy 1.1
that is supposed to fix a number of Solaris specific issues with numpy
that cause the root finding code to segfault. The binary is not ready
for prime time, but should at least start up and lets you play around.
Note that the (secure) notebook is broken, but I have a good lead how
to fix it.

Cheers,

Michael

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



[sage-support] Re: Plans for a Sage port to Solaris ??

2008-07-21 Thread mabshoff



On Jul 21, 1:16 am, Pierre <[EMAIL PROTECTED]> wrote:
> hi there,

Hi Pierre,

> just to feed michael's motivation, let me insist that a Solaris
> version of SAGE would be fabulous. I'm thinking of using sage with our
> students here (it would at the very least teach them some python,
> which they will use in 'real life' (ie working for a company...) even
> if they eventually give up on maths!) I'm also trying to tell my
> colleagues about sage. The main obstacle, or rather the first, is that
> we are running Solaris...

So the people who do not run Linux still exist :). But I am actually
aware of some rather large installs of Sparc boxen, which is why the
port is happening.

> (btw very interested in a binary for Solaris 10, on an x86, 64 bits if
> you have one...)

No one for 64 bits in sight yet since we plan to fix a couple bugs
first before switching over to optionally 64 bit on Solaris. Once 32
bits work I expect very little trouble for the 64 bit port.

Did the 32 bit binary work for you, i.e. did it at least start up?

> anyway, keep up the good work!
> cheers
> pierre

Cheers,

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



[sage-support] Re: Transitioning from Maple...

2008-07-21 Thread mabshoff

On Jul 20, 12:04 pm, Donu Arapura <[EMAIL PROTECTED]> wrote:

hi Donu,

> I apologize in advance for my somewhat rambling post. I don't have  
> any really urgent
> questions; just a few small ones, along with some comments. I'm an  
> algebraic
> geometer, so I use Macaulay 2 for certain things, but often I prefer  
> Maple
> which has a lot more flexibility. Although I  have free access  to  
> Maple through
> my University, I have never been entirely comfortable with  this...  
> but I suppose
> it's not necessary to preach to the choir.

:)

>  I'd heard some rumours  
> about Sage,
> and  I recently downloaded it to my  Mac (G5, macosx 10.4). I have  
> been playing
> with it for a couple of days,  and I am pretty impressed.  However...
>
>   In Maple I find it convenient to use  "%" to refer to the output on  
> the  previous line.
> Is there a way to do this in Sage? If not, would this or a scheme  
> using line numbers,
> be a useful feature to add?

I assume you need the following?

--
| SAGE Version 3.0.5, Release Date: 2008-07-11   |
| Type notebook() for the GUI, and license() for information.|
--

sage: 2+2
4
sage: _
4
sage:

>   As a more serious exercise, I tried writing a script in Sage. Since
> I'm pretty new to Python, I have to admit that I was a bit taken  
> aback that
> indentation was part of the language, but it's not a big deal.  
> Anyway,  I
> found that I could manage by typing things into  emacs (actually  
> aquamacs)
> and pasting the formatted code into the notebook, since I like to  
> debug one
> function at a time. This seems a bit clumsy however. What to other  
> people do?
> Surely, it  must be possible to have emacs communicate directly with  
> sage?

Yes, check out http://wiki.sagemath.org/sage-mode

For the record I have to state that Emacs is evil and that only vim
can bring true happiness, but there are a lot of happy Emacs users
with Sage.

> Incidentally, the script in question  computes Betti numbers for  
> moduli spaces
> of vector bundles using standard formulas. I'm happy to say that it  
> seems to
> be working correctly under Sage. I've checked it against values  
> generated by
> my original Maple script and published values for small rank and genus.

Excellent. Please let us know if you run into any trouble. We are more
than happy to fix bugs.

> Anyway, my thanks to all for putting  this package together.
>
> - Donu Arapura

Cheers,

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



[sage-support] Re: Plans for a Sage port to Solaris ??

2008-07-19 Thread mabshoff

On Jul 19, 9:36 am, Karen Bindash <[EMAIL PROTECTED]> wrote:

Hi Karen,

> Thank you very much for making me aware of this. I was a bit surprised
> there was no version for Solaris, as some older web pages mention what
> will be needed to version 2.8.1 running on Solaris, which I assume is
> quite old now.

Yes, Sage has always been compilable on Solaris with loads of tricks,
but 3.0.6 will be a step in the right direction. It will not be there
yet.

> I will keep a lookout for some notices about a Solaris version of
> sage. In the intervening period I will have to use Mathematica.

Sure, if you let me know which Solaris release and CPU you want I can
probably get you a binary to play around with.

> I can use Mathematica for no personal cost to me, but I'm not keen to
> get locked in to this system.

Hehe, getting locked into an Open Source codebase is called building a
community :)

Cheers,

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



[sage-support] Re: Spam bots

2008-07-15 Thread mabshoff



On Jul 15, 3:13 pm, "Alec Mihailovs" <[EMAIL PROTECTED]> wrote:
> > I guess in the end I'm not sure what you wanted to accomplish with
> > this thread.  Are you saying that there is an individual associated to
> > the Sage project that is spamming your wiki?  Or that there is code in
> > Sage designed to spam your wiki? Or ...?
>
> First, I wanted to know if there were other similar cases known.

Any MoinMoin based wiki gets many attempts to have it defaced, that
has nothing to do with Sage. In case of the vandalism you suggested
Sage had something to do with:

 * 193.53.87.109 is from an Indian IP space
 * 78.157.143.233 is from a Latvian IP space

and I doubt anybody needs Sage to write a Spam bot in Python - if it
even were written in Python. But having posted the url here and in
other newsgroups to let people know it exists has only raise its
profile with spammers. Such is life on the internet :)

> Second, what would you do in a similar case, if say, your wiki got spammed
> with some text ending CathegoryMathematica?

Disabled automated account creation and turn on the text captcha. Just
because a spam bot uses a category X it has nothing to do with X. It
seems kind of counter productive to be associated with the culprit in
the first place. If *I* were to write a Sage spambot I would have it
claim to be MMA as a diversion tactic ;)

> Alec

Cheers,

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



[sage-support] Re: Python Modules

2008-07-15 Thread mabshoff



On Jul 14, 10:12 pm, JonasMo <[EMAIL PROTECTED]> wrote:
> On 15 Jul., 04:38, mabshoff <[EMAIL PROTECTED]> wrote:
> > On Jul 14, 7:13 pm, Robert Bradshaw <[EMAIL PROTECTED]>
> > wrote:
>
> > Hi,

Hi Jonas,

> > > Sage comes with all the modules it needs, as well as Python itself.
>
> Does this apply even to the VMware Player version?

Yes, but Sage is installed into a Linux image runnning in VMWare.

> > I would guess that is not the expected answer even though Robert does
> > answer the question.
>
> > So: What are you trying to do? Run a native version of Sage on
> > Windows? Use some of the modules of Sage (numpy, sympy, ) with
> > your Python install on Windows?
>
> > Cheers,
>
> > Michael
>
> I am running a local sage notebook server with the VMware Player. My
> problem is, that nearly none of the built-in functions, as e.g. view()
> or diff() works. When I type in view? and press tab then, it tells me
> "File:        /usr/local/sage/local/lib/python2.5/site-packages/sage/
> misc/latex.py (...) ". I thought the cause it doesn't work might be
> that neither this file nor even the directory "/site-packages/
> sage/..." does exist on my Python installation.
>
> thank you for responding
>
> Sincere regards
> Jonas

Ok, the usual way to use the VMWare image of Sage is via the notebook.
While the command line is a possibility using all features of Sage
from the notebook is much more convenient as you just found out.

Cheers,

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



[sage-support] Re: hyper-v-sage-deluxe-3

2008-07-15 Thread mabshoff



On Jul 14, 11:26 pm, "Adam Getchell" <[EMAIL PROTECTED]> wrote:
> Hi all,

Hi Adam,

> Right now I'm building Sage 3.0 on Xubuntu 8.04 Server LTS on Hyper-V,
> Microsoft's new virtualization platform.
>
> So far it looks to be roughly half the size as the VMWare version
> (we'll see once I discard all the various build snapshots along the
> way), and unlike VMWare workstation is able to properly resize
> X-Window display. It's currently built using the legacy network
> adapter (due to no Integration services tools yet), which shouldn't
> really affect performance, but is something that can be looked at.

Nice.

> If you run Windows Server 2008 the Hyper-V image should be instantly
> runnable. I took the long-way round, that is, I built the image from
> scratch with the Linux install directions, rather than just porting
> over my VMWare image (which can be done, but gets messy due to virtual
> SCSI->virtual IDE issues, which seems to have been fixed recently).
>
> If you have any suggestions or comments on this, send them over,
> otherwise I'll post a build to the Sage site whenever I get this to
> work.

Is the image 32 or 64 bit? It would be nice to have a 64 bit image
since at least now all the VMWare images I am aware of are 32 bits.
Making such an image in 64 bit is not a technical problem, but so far
no one has stepped forward to provide one.

> Cheers,
>
> Adam

Cheers,

Michael

> "Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Python Modules

2008-07-14 Thread mabshoff

On Jul 14, 7:13 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:

Hi,

> Sage comes with all the modules it needs, as well as Python itself.
>
> On Jul 14, 2008, at 10:57 AM, JonasMo wrote:
>
>
>
> > Where can I get all the Python modules SAGE requires from? I am using
> > Windows XP and Python 2.5, if this should be important.

I would guess that is not the expected answer even though Robert does
answer the question.

So: What are you trying to do? Run a native version of Sage on
Windows? Use some of the modules of Sage (numpy, sympy, ) with
your Python install on Windows?

Cheers,

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



[sage-support] Re: Plans for a Sage port to Solaris ??

2008-07-14 Thread mabshoff



On Jul 12, 11:04 am, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> On Jul 12, 10:01 am, Karen Bindash <[EMAIL PROTECTED]>

Hi Karen,

Here we go, it can be done, but does require custom toolchains and a
*patched* binutils 2.18 to work around a bug for gas on i86pc-elf:

-bash-3.00$ uname -a
SunOS fulvia 5.10 Generic_127128-11 i86pc i386 i86pc
-bash-3.00$ ./sage
--
| SAGE Version 3.0.5, Release Date: 2008-07-11  |
| Type notebook() for the GUI, and license() for information.|
--
sage:

> Sun's gcc version as well as the one from Blastwave are pretty bad
> IMHO to build Sage. The main issue is that they are usually build to
> use Sun's ld and as and many packages in Sage detect gld and gas and/
> or have GNUisms, so things tend to blow up. Sun's build of the GNU
> binutils is also quite buggy and those bugs prevent Sage from
> building.
>
> > If anyone has built Sage on Solaris, can they advise what compiler
> > version, as well as any other information which might be useful.
>
> I build my own custom toolchain (at least gcc, binutils and gmake) to
> build Sage. But even that custom build chain does not build Sage out
> of the box; I have about 10 fixes

Interestingly enough there are more fixes needed on x86[-64] Solaris
at this point compares to Solaris sparc

>  I need to merge back into Sage to
> get close for it to work in 32 bit mode on Solaris 10 out of the box
> for now.
>
> The medium term plan is to have a custom toolchain for Sage on Solaris
> build out of the box before Sage since the system compilers on Solaris
> will always give trouble. I have something that is half way automated
> to do this, but still needs some work and polish.
>
> > Karen.
>
> Cheers,
>
> Michael

Cheers,

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



[sage-support] Re: Notebook sign-up email

2008-07-12 Thread mabshoff



On Jul 11, 10:23 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> On Jul 11, 2008, at 7:55 PM, Greg Landweber wrote:

Greg, Robert,

> > I am running a Sage notebook server for my students. Every time one of
> > my students creates an account, the notebook sends the student an
> > e-mail with a link to confirm their e-mail address. However, that
> > e-mail gets bounced back to the server since my machine is not
> > authorized to send e-mail messages. However, the bounced back message
> > cannot be delivered since my server does not support incoming mail,
> > and the message gets stuck in my college's mail queue. Then I get
> > nasty messages from my college's unix system administrator.
>
> > I want to turn off the "feature" of the notebook that sends out e-mail
> > messages to everyone who creates an account. As far as I can tell, you
> > can use your newly created account to log in to the notebook, even
> > without receiving the e-mail and confirming your e-mail address.
>
> > My students and I are able to use Sage just fine. I just want to avoid
> > the complaints from my sysadmin about the bounced e-mail being sent by
> > my server.
>
> > -- Greg
>
> Thanks for the clarification. This can easily be resolved by  
> commenting out line ~1716 of sage/server/notebook/twist.py. This  
> should probably be made optional and configurable somewhere.
>
> - Robert

We are tracking this request at http://trac.sagemath.org/sage_trac/ticket/3649.

One more question for Greg: What happened to the OSX Sage app you
showed at Dev1? We are really anxious to get it merged into Sage since
it looked really cool :)

Cheers,

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



[sage-support] Re: Is there a way to group notebooks?

2008-07-12 Thread mabshoff

On Jul 12, 8:28 am, gerhard <[EMAIL PROTECTED]> wrote:

Hi Gerhard

> My  list of notebooks is growing.
> Is there a way of grouping them into directory trees?

There is a feature request to implement "folders" for the notebook. It
has not happened yet. Timothy Clemans might be working on it.

> I could of course generate several logins, but
> that is hardly optimal.

I agree.

> Thank you,
> -gerhard

Cheers,

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



[sage-support] Re: Plans for a Sage port to Solaris ??

2008-07-12 Thread mabshoff

On Jul 12, 10:01 am, Karen Bindash <[EMAIL PROTECTED]>
wrote:

Hi Karen,

> I hope this is the most appropiate list, as I am aware of other
> similar lists. If not, please let me know what is best.

This is the right list.

> I have seen various references to Sage on Solaris going back quite
> some time. Can anybody advise on
>
> 1) If a port is definately planned, or has it been shelved?

It is ongoing.

> 2) If a port is planned, what is the expected time-scale for a version
> which run will on Solaris without too much effort?

Well, define "too much effort". Right now I am the only guy with
enough Sage-Foo to build Sage on Solaris in 32 bit mode:

bash-3.00$ uname -a
SunOS mark 5.10 Generic_127111-01 sun4u sparc SUNW,Sun-Blade-2500
bash-3.00$ export PATH=/usr/local/gcc-4.3.1/sparc-SunOS/bin/:$PATH
bash-3.00$ export LD_LIBRARY_PATH=/usr/local/gcc-4.3.1/sparc-SunOS/lib/
sparcv9:/usr/local/gcc-4.3.1/sparc-SunOS/lib:/usr/local/
SunStudio12-200709/sparc-SunOS/SUNWspro/lib:/usr/local/gmp-4.2.2/sp>
bash-3.00$ ./sage
--
| SAGE Version 3.0.1, Release Date: 2008-05-04   |
| Type notebook() for the GUI, and license() for information.|
--

sage: P.=QQ[]
sage: (x+y)/x
(x + y)/x
sage:
Exiting SAGE (CPU time 0m0.05s, Wall time 0m38.77s).
bash-3.00$

This is 3.0.1+ a bunch of custom updates from later releases, but I
will start today on 3.0.5 since the last couple weeks have kept me
busy with other things. That build does not pass doctests and it will
be a while until it does, but I am working on it.

> I had a vane attempt to build version 3.0.4 on a Sun Ultra 45
> workstation, but it soon stops while compiling NTL, although I believe
> from the notes that it can be built on Solaris.

Yes.

> I used the default install of gcc (3.4.3) in /usr/sfw/bin. An attempt
> with the 'cc' compiler was even less successful than the attempt with
> 'gcc'.

Sun's gcc version as well as the one from Blastwave are pretty bad
IMHO to build Sage. The main issue is that they are usually build to
use Sun's ld and as and many packages in Sage detect gld and gas and/
or have GNUisms, so things tend to blow up. Sun's build of the GNU
binutils is also quite buggy and those bugs prevent Sage from
building.

> If anyone has built Sage on Solaris, can they advise what compiler
> version, as well as any other information which might be useful.

I build my own custom toolchain (at least gcc, binutils and gmake) to
build Sage. But even that custom build chain does not build Sage out
of the box; I have about 10 fixes I need to merge back into Sage to
get close for it to work in 32 bit mode on Solaris 10 out of the box
for now.

The medium term plan is to have a custom toolchain for Sage on Solaris
build out of the box before Sage since the system compilers on Solaris
will always give trouble. I have something that is half way automated
to do this, but still needs some work and polish.

> Karen.

Cheers,

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



[sage-support] Re: sage-3.0.4.spkg fails to compile

2008-07-12 Thread mabshoff



On Jul 12, 7:30 am, ugus <[EMAIL PROTECTED]> wrote:
> Hi Michael,

Hi Osman,

> > Hi Osman,
> > Bingo, pbuild is broken in Sage 3.0.4. Please apply the patch from
>
> >http://trac.sagemath.org/sage_trac/ticket/3614
>
> > to $SAGE_ROOT/data/extcode, i.e. download the patch, i.e.
>
> >    
> > wgethttp://trac.sagemath.org/sage_trac/attachment/ticket/3614/trac_3614.p...
>
> > then run
>
> >    hg import trac_3614.patch?format=raw
>
> > in $SAGE_ROOT/data/extcode
>
> > After restart the build with "make" and everything should finish from
> > there.
>
> running "hg import trac_3614.patch"  in $SAGE_ROOT/data/extcode gives
> following errors:
> applying trac_3614.patch
> abort: unable to find sagebuild.py or sagebuild.py for patching
>
> Should I run it $SAGE_ROOT/data/extcode?

Ooops, I meant and I am sure you also mean $SAGE_ROOT/devel/sage - we
moved the pbuild config recently from data/extcode to devel/sage and I
forgot about it. My bad & sorry.

> Cheers,
>
> Osman

I am actually surprised that pbuild does no longer prints a message
before building the Sage library that it is used because that would
have helped detecting the problem.

Cheers,

Michael

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



[sage-support] Re: sage-3.0.4.spkg fails to compile

2008-07-12 Thread mabshoff



On Jul 12, 6:58 am, ugus <[EMAIL PROTECTED]> wrote:
> > Hi Osman,
>
> Hi Michael,

Hi Osman,

> > Notice the missing numpy include. The build options for the
> > time_series extension are in $SAGE_ROOT/devel/sage/setup.py:
>
> > time_series = Extension('sage.finance.time_series',['sage/finance 
> > time_series.pyx'],include_dirs=debian_include_dirs + [SAGE_ROOT
> > +'/local/lib/python2.5/site-packages/numpy/core/include/numpy'])
>
> > Can you check what exactly it says there?
>
> The build options for me are exactly the same as yours:
> time_series = Extension('sage.finance.time_series',['sage/finance/
> time_series.pyx'],
>                         include_dirs=debian_include_dirs + [SAGE_ROOT
> +'/local/lib/python2.5/site-packages/numpy/core/include/numpy'])
>
> >This seems to be a new install, but did you build in a new directory or over 
> >an old version of Sage?
>
> Yes, this is a completely new installation.

Ok.

>
> > What does "hg status" in $SAGE_ROOT/devel/sage say? You might have to
> > "source local/bin/sage-env" from $SAGE_ROOT to have hg in $PATH.
>
> "hg status" in in $SAGE_ROOT/devel/sage says nothing. I am getting no
> output.
>
> One point: in my installation I am using
> export SAGE_PBUILD=yes
> export SAGE_BUILD_THREADS=4
>
> Can it be the reason? (I could sage-3.0.3 without any problem with
> these PBUILD flags)

Bingo, pbuild is broken in Sage 3.0.4. Please apply the patch from

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

to $SAGE_ROOT/data/extcode, i.e. download the patch, i.e.

   wget 
http://trac.sagemath.org/sage_trac/attachment/ticket/3614/trac_3614.patch?format=raw

then run

   hg import trac_3614.patch?format=raw

in $SAGE_ROOT/data/extcode

After restart the build with "make" and everything should finish from
there.

> > Cheers,
>
> > Michael
>
> Cheers,
>
> Osman

Cheers,

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



[sage-support] Re: sage-3.0.4 test: TIMED OUT errors on linux ppc

2008-07-12 Thread mabshoff



On Jul 12, 5:44 am, Bin Zhang <[EMAIL PROTECTED]> wrote:
> Hi,

Hi Bin,

> On my 1.2GHz iBook Linux Powerpc, I get the following timeouts when
> "make test":

This is not really surprising since the iBook is rather slow. To raise
the timeout change the following value right at the top of $SAGE_ROOT/
local/bin/sage-doctest

# the default timeout for doctests: 6 minutes
TIMEOUT = 360

> sage -t  devel/sage/sage/modular/abvar/homspace.py          *** ***
> Error: TIMED OUT! *** ***
> *** *** Error: TIMED OUT! *** ***
>          [374.9 s]

As is the doctest complains about timeouts once it has finished, so
everything worked here as expected.

> sage -t  devel/sage/sage/calculus/calculus.py               *** ***
> Error: TIMED OUT! *** ***
> **
> File "/Archives/build/sage/sage-3.0.4/tmp/calculus.py", line 3388:
>     sage: F = factor(f/(36*(1 + 2*y + y^2)), dontfactor=[x])
> Expected nothing
> Got:
>     Maxima crashed -- automatically restarting.
> **

Hmm, this might be bad. We upgraded clisp in 3.0.4 and so far we did
not test on Linux PPC. But we will be upgrading to ecls in August,
depending on Maxima merging the ecl branch into Maxime 5.16.x. Is the
failure reproducible? Clisp is anything but stable on anything not x86
and x86-64.

> 1 items had failures:
>    1 of   9 in __main__.example_87
> ***Test Failed*** 1 failures.
> For whitespace errors, see the file /Archives/build/sage/sage-3.0.4/
> tmp/.doctest_calculus.py*** *** Error: TIMED OUT! *** ***
>          [364.3 s]
>
> Thanks,
> Bin

Thanks for testing.

Cheers,

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



[sage-support] Re: sage-3.0.4.spkg fails to compile

2008-07-12 Thread mabshoff



On Jul 12, 5:35 am, ugus <[EMAIL PROTECTED]> wrote:
> Hi Michael,

Hi Osman,

> > but I would guess the problem lies deeper. I
> > checked and the dependencies for the Sage library include numpy. Can
> > you compress install.log and post a link here so that I can take a
> > look?
>
> you can download it 
> from:http://www.4shared.com/file/54868751/44cd2576/sage_install_log.html

Thanks. I found the problem, but so far I am still in the dark for the
cause since this is one of those things which cannot happen, but
apparently it does in your case:

My 3.0.4 build:

gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes -fPIC -I/scratch/mabshoff/release-cycle/sage-3.0.4-vg/local/
lib/python2.5/site-packages/numpy/core/include/numpy -I/scrat
ch/mabshoff/release-cycle/sage-3.0.4-vg/local//include -I/scratch/
mabshoff/release-cycle/sage-3.0.4-vg/local//include/csage -I/scratch/
mabshoff/release-cycle/sage-3.0.4-vg/devel//sage/sage/ext -I/
scratch/mabshoff/release-cycle/sage-3.0.4-vg/local/include/python2.5 -
c sage/finance/time_series.c -o build/temp.linux-x86_64-2.5/sage/
finance/time_series.o -w -w

Your build of the time_series extension:

gcc -g -c -fPIC -O3 -fwrapv -fno-strict-aliasing devel/sage/sage/
finance/time_series.c -DNDEBUG  -I/var/abs/local/sage/src/sage-3.0.4/
local/include  -I/var/abs/local/sage/src/sage-3.0.4/local/incl
ude/csage  -I/var/abs/local/sage/src/sage-3.0.4/devel/sage/sage/ext  -
I/var/abs/local/sage/src/sage-3.0.4/local/include/python2.5  -o /var/
abs/local/sage/src/sage-3.0.4/devel/sage/build/temp/sage/
finance/time_series.o

Notice the missing numpy include. The build options for the
time_series extension are in $SAGE_ROOT/devel/sage/setup.py:

time_series = Extension('sage.finance.time_series',['sage/finance/
time_series.pyx'],
include_dirs=debian_include_dirs + [SAGE_ROOT
+'/local/lib/python2.5/site-packages/numpy/core/include/numpy'])

Can you check what exactly it says there? This seems to be a new
install, but did you build in a new directory or over an old version
of Sage?

What does "hg status" in $SAGE_ROOT/devel/sage say? You might have to
"source local/bin/sage-env" from $SAGE_ROOT to have hg in $PATH.

> > Cheers,
> > Michael
>
> Cheers,
> Osman

Cheers,

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



[sage-support] Re: sage-3.0.4.spkg fails to compile

2008-07-12 Thread mabshoff



On Jul 12, 1:51 am, ugus <[EMAIL PROTECTED]> wrote:
> Hi,

Hi OSman

> i am compiling sage-3.0.4 on Arch Linux. Everything compiled fine,
> until the 61th pakage which is sage-3.0.4.spkg.
>
> Compiling sage-3.0.4.spkg terminates with following errors stemming
> from arrayobject.h file:
>
> cython --embed-positions -I. -o sage/rings/padics/
> padic_ZZ_pX_CA_element.c sage/rings/padics/padic_ZZ_pX_CA_element.pyx -
> w devel/sage
> In file included from devel/sage/sage/finance/time_series.c:106:
> devel/sage/sage/finance/arrayobject.h:14:27: error: ndarrayobject.h:
> No such file or directory
> devel/sage/sage/finance/arrayobject.h:19:27: error: npy_interrupt.h:
> No such file or directory

time_series depends on numpy, but those headers seem to be missing.



> 
>
> real    7m17.337s
> user    13m4.915s
> sys     0m13.806s
> sage: An error occurred while installing sage-3.0.4
>
> How can I fix it?

You can try

  ./sage -i spkg/standard/numpy-20080104-1.0.4.p4.spkg

and then rerun make, but I would guess the problem lies deeper. I
checked and the dependencies for the Sage library include numpy. Can
you compress install.log and post a link here so that I can take a
look?

> Cheers,
> OSman

Cheers,

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



[sage-support] Re: Trying to install "all" (Sage 3.0.3)

2008-07-11 Thread mabshoff



On Jul 11, 5:29 am, Thierry Dumont <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I tried to install "all" the packages and ... some installation did not
> work. As posting all would be a to long message, I have but the listings
> of the failed installations, as well as datas on my system  here:
>
>  http://math.univ-lyon1.fr/~tdumont/sageproblems/
>
> My machine is a 32 bit intel Ubuntu 8.0.3, and Sage version is 3.0.3
>
> I hope this will be usefull.
>
> t.d.

Hi Thierry,

it is generally *not* recommended to install all or even many optional/
experimental spkgs unless you need them. In detail to your list:

polymake: tracked at http://trac.sagemath.org/sage_trac/ticket/3640 -
I will fix this today once and for all.
dvipng: install from the distribution. The dependencies are insane to
build this from source and it should be deleted to moved to
experimental.
jmol-11.5.2-src-v2: this is the source version of a binary spkg
already installed. No need to install it.
hermes: *never* even heard of it, too lazy to google it now :).
fricas: It is a known problem that the current FriCAS.spkg builds with
gcl since our clisp is either compiled with the wrong options or
broken. We have a ticket for that somewhere. But I would recommend you
build the latest FriCAS release (which is more current than the spkg
anyway). As long as it is in $PATH Sage should be able to pick it up.
I would also suggest we move the FriCAS.spkg to experimental until the
lisp issues are sorted out. We will start shipping ecl with the August
Maxima release (5.16.x) assuming the ecl branch gets merged.

Cheers,

Michael

>
> --
>
> Thierry Dumont. Institut Camille Jordan -- Mathematiques--
> Univ. Lyon I,43 Bd du 11 Novembre 1918, 69622
>  - Villeurbanne Cedex - France.
> [EMAIL PROTECTED]  web:http://math.univ-lyon1.fr/~tdumont
>
>  tdumont.vcf
> 1KDownload
>
>  smime.p7s
> 5KDownload
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage 3.0.4 Fails with "ImportError"

2008-07-11 Thread mabshoff

Hi Robert,

I looked at your build log you send me off list and lcalc failed to
build. I suspect it is due to some CFLAG option we set, namely using "-
static-libgcc". According to the log this was added a while back, but
I see no reason to add it at all. Can you take the spkg at

http://sage.math.washington.edu/home/mabshoff/lcalc-20080205.p2.spkg

and put it into $SAGE_ROOT/spkg/standard and run "make" again from
$SAGE_ROOT since you did not finish building Sage. Let me know how it
goes.

Cheers,

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



[sage-support] Re: SAGE-3.0.4 Did NOT Build!

2008-07-10 Thread mabshoff



On Jul 10, 6:48 pm, joseph1110 <[EMAIL PROTECTED]> wrote:
> Dear Michael,

Hi Joseph,

>    I attached a copy of the log file to Dr. Stein earlier today.
>    I could attach a copy to you too if you'd like.

Yes, please send a compressed copy to me off list and I will put it up
on a website.

>    I don't how to do it on this site, and I do not have a web server.

No problem :)

>                                    Sorry,
>
>                                   Joseph Roy D. North

Cheers,

Michael

> On Jul 10, 1:27 pm, mabshoff <[EMAIL PROTECTED]
>
> dortmund.de> wrote:
> > On Jul 10, 10:46 am, joseph1110 <[EMAIL PROTECTED]> wrote:
>
> > > Dear Dr. Stein, et al.:
>
> > Hi,
>
> > >   SAGE-3.0.4 did NOT build from source!
> > >   I have attached the file named "install.log" to Dr. Stein.
>
> > There is no log attached. You should *not* attach some huge installlog
> > since this email goes to 600+ people. So please post a link to your
> > install.log so that interested people can take a look.
>
> > >   My platform consisted of an AMD Athlon 64 X2
> > > Dual-Processor under Red Hat Linux Fedora 9, x86_64.
> > >   Tempus fugit et ad augusta per angusta.
>
> > >                      Nil desparare (Gauss),
>
> > >                      Joseph Roy D. North
> > >                      Le        Roi Du Nord
> > >                      3220 Duval Road, Apt. 1110
> > >                      Austin, TX 78759-3524, USA
>
> > Cheers,
>
> > Michael
>
> > > Scientia est Potentia!
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage 3.0.4 Fails with "ImportError"

2008-07-10 Thread mabshoff



On Jul 10, 6:30 pm, Roberto Dominijanni
<[EMAIL PROTECTED]> wrote:

Hi Roberto,

> Sage 3.0.4 compiled successfully on a system with two 3 Gb Xeon
> processors running the AMD64 flavor of ubuntu-8.04.  Invoking sage from
> the command prompt gives the following:

> > ImportError: No module named processing
>
> Any ideas on how I can go about fixing this?

The Pyprocessing module was not installed/compiled properly. This
indicates that the build did not finish and/or something bad happened.
Please upload install.log to some place and post a link so I can take
a closer look.

> Regards,
>
> Roberto Dominijanni

Cheers,

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



[sage-support] Re: SAGE-3.0.4 Did NOT Build!

2008-07-10 Thread mabshoff



On Jul 10, 10:46 am, joseph1110 <[EMAIL PROTECTED]> wrote:
> Dear Dr. Stein, et al.:

Hi,

>   SAGE-3.0.4 did NOT build from source!
>   I have attached the file named "install.log" to Dr. Stein.

There is no log attached. You should *not* attach some huge installlog
since this email goes to 600+ people. So please post a link to your
install.log so that interested people can take a look.

>   My platform consisted of an AMD Athlon 64 X2
> Dual-Processor under Red Hat Linux Fedora 9, x86_64.
>   Tempus fugit et ad augusta per angusta.
>
>                      Nil desparare (Gauss),
>
>                      Joseph Roy D. North
>                      Le        Roi Du Nord
>                      3220 Duval Road, Apt. 1110
>                      Austin, TX 78759-3524, USA

Cheers,

Michael

> Scientia est Potentia!
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: problem installing polymake.

2008-07-10 Thread mabshoff

On Jul 10, 4:51 am, Thierry Dumont <[EMAIL PROTECTED]> wrote:
> Hello,

Hi Thierry,

> I'm trying to install polymake in Sage (3.0.3), on 2 systems:
> -Ubuntu server 8.03 (source locally compiled version)
> -Debian Etch (binary package),
>
> and I do not succeed to install polymake:
>
> this a problem with cddlib:
>

this is a known limitation of some optional spkgs that hard code
version numbers of certain core Sage spkgs in their spkg-install. I
have told various people how to fix this once and for all, but they
have not listened to my advice. I can fix them for you in the next
couple days since with the current mechanism in place polymake will
then be broken with any Sage install prior to 3.0.3.

Cheers,

Michael


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



[sage-support] Re: RuntimeError: no available port

2008-07-09 Thread mabshoff



On Jul 9, 7:58 am, kex <[EMAIL PROTECTED]> wrote:
> I also tried:
> ./sage
> notebook(port=8101)
> tried also some other numbers 9000 7999 8500...80 50.. still the
> same error

Hi,

you should check your firewall settings. It looks like you are
blocking all traffic, so moving the port is unlikely to fix it. The
likelyhood that 50 consecutive ports in that range are taken is null
on a personal box.

Cheers,

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



[sage-support] Re: C/ Fortran/ .... code generation ?

2008-07-05 Thread mabshoff



On Jul 5, 3:02 am, Harald Schilly <[EMAIL PROTECTED]> wrote:
> On Jul 5, 9:16 am, Thierry Dumont <[EMAIL PROTECTED]> wrote:
>
> >   Hello,
>
> > My question is: is there / will there  be some tool for code generation
> > in Sage ?

It has been discussed of doing something like that recently at Sage
Dev1.

> Hi, I understand what you want to do, but as far as I understand, this
> is only needed, because of the performance? There are already tools
> ins Sage to create near native C code out of python (called cython,
> but you need to know what to do) and you can optimize symbolic
> expressions for fast evaluation. Others might give you more details on
> that. In the end, Sage tries to be as good as C/Fortran, but not by
> working in two different "worlds".

Nope, I think Harald misunderstood you. The goal is to specify say
some finite element and then have logic to produce C or Fortran code
that can be dumped to file and then copy and pasted into someones C or
Fortran code without the need to depend on Sage. I have seen similar
code in Matlab and Maple and had the pleasure to debug autogenerated
code, so I can certainly understand why one would prefer to delegate
such a tedious job of creating that code to a CAS :)

> H

Cheers,

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



[sage-support] Re: graphviz installation problem

2008-07-05 Thread mabshoff

On Jul 5, 3:54 am, iSAGE <[EMAIL PROTECTED]> wrote:

Hi,

> Sorry, a little correction:
> I issued the command sage -i graphviz-2.16.1.p0 which gave errors, but
> nauty could be installed without trouble.

Yep, I would only install one spkg at a time.

> On Jul 5, 11:33 am, iSAGE <[EMAIL PROTECTED]> wrote:
>
> > I get the following errors while trying to install graphviz.
> > I am using ubuntu 8.04 and sage-3.0.2-ubuntu32-intel-i686-Linux
> > I issued the command sage -i nauty-24b7 -i graphviz-2.16.1.p0
>
> > This is the first time I have tried to install any package, so I am
> > unsure if I am doing anything wrong, but nauty installed without any
> > errors or warnings. One thing that is not clear to me is: are the
> > optional packages not pre-compiled?
>
> > Thank you for help.
>
> > Bhalchandra Thatte
> > Alfréd Rényi Institute of Mathematics
> > Hungarian Academy of Sciences
>
> > - error messages ---
>
> > In file included from gdft.c:107:
> > /usr/local/sage-3.0.2-ubuntu32-intel-i686-Linux/local/include/
> > ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or
> > directory

The freetype headers are missing. On ubuntu 8.04 they seem to be in
freetype-devel-0-2.0.3-10, so you might want to check your package
manager to install them. Installing the headers might cause additional
software to be installed.

Cheers,

Michael


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



[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-03 Thread mabshoff

On Jul 3, 3:30 pm, Daryl Hammond <[EMAIL PROTECTED]> wrote:

Hi Daryl,

> David, I have both install logs available.  I have edited them "down"
> to about 3,600 lines and 280 KB each.  I hesitate to post that much
> data here.

you should not send the logs themselves to the list, but if possible
post links to them in case you have some web space somewhere. Editing
them "down" seems also to be a bad idea since you might have removed
relevant information. But by now I do not think that gmp is at fault
any more. Having looked into the change log for 3.0.2 I do not see
anything obvious which could be at fault here. We now have doctest
+timeit patches by Nick Alexander and it might be possible to compare
3.0.1 and 3.0.2 and see if anything pops up..

> -Daryl

Cheers,

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



[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-02 Thread mabshoff



On Jul 2, 7:09 pm, "Alec Mihailovs" <[EMAIL PROTECTED]> wrote:
> From: "Daryl Hammond" <[EMAIL PROTECTED]>

Hi Alec,

> > SAGE Version 3.0, Release Date: 2008-04-23
> > array size:       1000
> > number of primes: 664580
> > Elapsed seconds:  70.93
>
> That seems to be quite slow anyway.

It is about two orders of magnitude and it looks like your Maple code
is actually compiled. In case I am reading your code right could you
tell us what the runtime of an interpreted version of your code would
be like? I would guess that with Cython one could get similar timings,
but overall this is not relevant to the slowdown observed ;)

> For example, for my Maple program ES2,
> seehttp://www.mapleprimes.com/blog/alec/the-eratosthenes-sieve,
>
> time(ES2(10^7));
>                                 0.702
>
> Also, the number of primes given by your program is 1 more than it should
> be,
>
> ArrayNumElems(ES2(10^7));
>                                 664579
> Alec Mihailovs

Cheers,

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



[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-02 Thread mabshoff

On Jul 2, 4:11 pm, Daryl Hammond <[EMAIL PROTECTED]> wrote:

Hi Daryl,

> I recently did a clean install of Fedora 9 (formerly running Fedora 8)
> and then
> installed sage-3.0.3 from source (formerly running sage-3.0).  After
> running
> "sage -testall" I ran a couple of my own programs.
>
> I was surprised to see one of the programs (sieve of Erasthenes) run
> 70% longer.
> I installed sage-3.0 from source and verified that sage-3.0.3 was
> indeed taking
> 70% longer to run the sieve program than sage-3.0 did.
>
> To narrow down the problem, I installed sage-3.0.1 and sage-3.0.2,
> both from
> source.  I then determined the performance problem was introduced
> going from
> sage-3.0.1 to sage-3.0.2.
>
> The following doc shows my system; output from the sieve progam under
> sage-3.0, sage-3.0.1, sage-3.0.2, and sage-3.0.3; and source for the
> sieve
> program.
>
> The system has a single user, no load, no swapping, and the
> performance monitor
> indicates that the CPU (2.8 GHz P4) is pegged during the entire
> elapsed time.

We have had a speed regression with GMP in Sage 3.0.1->3.0.2, so that
might be part of it. We intent to fix that for Sage 3.0.4.

Could you measure the individual sections of your code, i.e. counting
phase vs. assigning "0" to non-prime cases so that we can get an idea
if anything specific slowed down?



> -Daryl Hammond

Cheers,

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



[sage-support] Re: Update SAGE: sws files lost!

2008-06-29 Thread mabshoff

On Jun 29, 12:52 pm, Rolandb <[EMAIL PROTECTED]> wrote:

Hi,

> A huge dissatisfier for the third time ..
>
> I update VMARE (to version 2.04) and thereafter SAGE (from 3.0 to
> 3.0.3).
>
> This is the third time I lost all my notebook files (sws) ...
>
> How can this be avoided!! Please help, because many days of work are
> now 'lost'.


What exactly did you do? The sws files are stored inside the VMWare
image, so if you overwrite that with a new image the old files will be
lost.

> Thanks in advance.  Roland

Cheers,

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



<    1   2   3   4   5   6   7   8   9   >