Re: [sage-combinat-devel] Alphabet and Words
I propose to create a class UnionAlphabet which heritates from UnionCombinatorialClass and Alphabet. Do you agree ? Yes! 2) The _str_ method of words is pretty bad in a lot of situations. I agree! Up to now, I was using the WordOptions(identifier='') method which could be better. It could be more automatic. Especially in my case where the labels of my intervals are words (but there is also the example of the Rauzy graph). Do you have any idea for this ? I propose to build a _str_ method of any words inside Words. I imagine something that looks like this {{{ sage: W1 = Words(alphabet=abc, str=standard) sage: print str(W2(abbaca)) word: abbaca sage: W2 = Words(alphabet=abc, str=minimalist) sage: print str(W2(abbaca)) abbaca sage: W3 = Words(alphabet=abc, str=sequence) sage: print str(W3(abbaca)) a, b, b, a, c, a }}} I don't think I like this proposition. The print option of an element is not really a property of the parent. The latter is especially nice when your alphabet looks like A = {'ab', 'ac', 'be'} This is the current default behavior (comma are added when there is a letter using more than one character): sage: A = Alphabet(['ab','ac','be']) sage: W = Words(A) sage: W(['ab','ab','be','ac']) word: ab,ab,be,ac What do you think ? Cheers, Vincent I think that the problem is that str and repr are currently the same : sage: w = Word('abccdef') sage: str(w) 'word: abccdef' sage: repr(w) 'word: abccdef' str(w) should not include the identifier : sage: str(w) 'abccdef' sage: print w abccdef This would solve the problem for labels of (rauzy) graphs...and probably more. I will create the ticket soon, if you don't do it before me. Cheers, Sébastien -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
[sage-combinat-devel] trouble installing sage-combinat
Hi, Jeff Ferreira, who is a student here at Davis, has trouble installing the sage-combinat patches. For me everything works with sage-4.2, but for him it hangs. Does anyone have the same problem or know what the problem might be? Thanks, Anne -- Anne, I was running sage 4.2.1, so I took your advice and (using OS X Time Machine) returned to sage 4.2. With sage 4.2 installed I did a ./sage -combinat install which hung at Updating modification times for the documentation... sage -docbuild --update-mtimes reference html sphinx-build -b html -d /Applications/sage/devel/sage/doc/output/doctrees/en/reference /Applications/sage/devel/sage/doc/en/reference /Applications/sage/devel/sage/doc/output/html/en/reference The install hangs at a different spot with sage 4.2.1... Jeff -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
Re: [sage-combinat-devel] trouble installing sage-combinat
Hi Anne, On Tue, Dec 15, 2009 at 3:06 PM, Anne Schilling a...@math.ucdavis.edu wrote: SNIP The install hangs at a different spot with sage 4.2.1... This might be related to this recent thread [1] and an older thread [2]. I think a fix is at ticket #7473 [3]. [1] http://groups.google.com/group/sage-devel/browse_thread/thread/d2037e34475bc2a9 [2] http://groups.google.com/group/sage-devel/browse_thread/thread/11f432ca0302189e [3] http://trac.sagemath.org/sage_trac/ticket/7473 -- Regards Minh Van Nguyen -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
Re: [sage-combinat-devel] trouble installing sage-combinat
Hi Minh, Thanks! I knew about the problem with sage 4.2.1 (and had the same problem). That's why I suggested to downgrade to sage 4.2 (where I did not have the problem). But apparently there was still a problem. Perhaps it is best just to wait for sage 4.3!? Anne Minh Nguyen wrote: Hi Anne, On Tue, Dec 15, 2009 at 3:06 PM, Anne Schilling a...@math.ucdavis.edu wrote: SNIP The install hangs at a different spot with sage 4.2.1... This might be related to this recent thread [1] and an older thread [2]. I think a fix is at ticket #7473 [3]. [1] http://groups.google.com/group/sage-devel/browse_thread/thread/d2037e34475bc2a9 [2] http://groups.google.com/group/sage-devel/browse_thread/thread/11f432ca0302189e [3] http://trac.sagemath.org/sage_trac/ticket/7473 -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
Re: [sage-combinat-devel] trouble installing sage-combinat
Hi Anne, On Tue, Dec 15, 2009 at 6:01 PM, Anne Schilling a...@math.ucdavis.edu wrote: SNIP That's why I suggested to downgrade to sage 4.2 (where I did not have the problem). But apparently there was still a problem. I think the hanging problem goes as far back as Sage 4.2. John Palmieri experienced the problem on OS X 10.6 as reported here [1]. Perhaps it is best just to wait for sage 4.3!? I think that's a viable option for now. Sage 4.3.rc0 could be used for development purposes, plus it integrates heaps of code from the sage-combinat team. [1] http://groups.google.com/group/sage-devel/browse_thread/thread/433ec95cba086551 -- Regards Minh Van Nguyen -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
Re: [sage-devel] Broken symbolic link local/lib/python2.6/python-2.6
2009/12/13 Dr. David Kirkby david.kir...@onetel.net: I've had some error messages whilst trying to create a binary distribution of Sage on Solaris. cp is complaining about broken link. So I decided to build Sage on linux and see if the link is broken there too, which it is. kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ ls -l python2.6 lrwxrwxrwx 1 kirkby kirkby 9 2009-12-13 11:23 python2.6 - python2.6 kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ file python2.6 python2.6: broken symbolic link to `python2.6' I think we should remove local/lib/python2.6/python2.6 Comments? We need to figure out what creates that file and get rid of it. Presumably it is some line in the spkg-install for the python spkg. William Dave -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please help - where the hell should these files go?
On Mon, Dec 14, 2009 at 07:24:46AM +, Dr. David Kirkby wrote: These shell scripts need to be available very early on in the Sage build - before any C code is run, so they can't be in a compressed .spkg file, as bzip2 needs to be built before they can be used. ... Can William or someone else tell me where the scripts should go? I have a vague recollection of somebody suggesting the prereq package (which I think is only tarred). That seemed like a sensible option. Best, Alex -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please help - where the hell should these files go?
On Mon, Dec 14, 2009 at 07:30:43AM +, Martin Albrecht wrote: How about the prereq SPKG, that would seem the right place? Cheers, Martin OK, I'll try to read the whole thread before hitting reply the next time. Sorry about the noise. -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please check if this computes seconds since Epoch
On Sun, Dec 13, 2009 at 11:01 PM, Peter Jeremy peterjer...@acm.org wrote: On 2009-Dec-13 16:27:41 +, Dr. David Kirkby david.kir...@onetel.net wrote: If you have a system with the GNU version of date, then date -u +%s will give the seconds since the Epoch. Unfortunately, it only works with GNU date, and so will not work on Solaris, HP-UX or no doubt many other Unix systems. FWIW, '%s' _does_ work with FreeBSD. It works with OS X also. For every system I am able to check this on, the following script gives exactly the same output as the GNU date command, but in a more portable manner. It works on FreeBSD/amd64 and FreeBSD/i386. It probably needs some more rigorous checking than it works today. Where did you find this particular algorithm - it's somewhat simpler than the one I use. # $5 = seconds (0-59) Whilst we're being pedantic, this should be (0..60) to allow for leap seconds. On 2009-Dec-13 17:05:25 +, Dr. David Kirkby david.kir...@onetel.net wrote: The code takes leap years into account, and is said to work until 2100, in which case, we will all be dead. (or 2034 unless unix time is changed to a 64-bit number). A few comments: - The 32-bit Unix epoch rolls over in 2038. - This also depends on the type expr(1) uses for integer math. - I wouldn't bet on everyone currently working on Sage being dead in 2100: If you're in your early 20's now, you'll be less that 115 then - which is not impossible today and will only become more common in future (assuming advances in medical science continue and aren't offset by a worsening environment). Check out the latest addition here http://sagemath.org/library-stories.html in the upper right. It is from someone who is very interested in contributing to Sage... and he is 12 years old! William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please help - where the hell should these files go?
Martin Albrecht wrote: One option I believe will work is to put the scripts in $SAGE_ROOT/spkg/base/ then update $SAGE_ROOT/spkg/install so it copies the scripts to $SAGE_LOCAL/bin. The only change needed to the $SAGE_ROOT/spkg/install script is from cp base/sage-* $SAGE_LOCAL/bin/ to cp base/sage-* base/testcc.sh base/testcxx.sh $SAGE_LOCAL/bin/ i.e. this patch http://trac.sagemath.org/sage_trac/attachment/ticket/7505/install.patch How about the prereq SPKG, that would seem the right place? Cheers, Martin I'm not so sure prereq is the right place. For a start, one could potentially want to use the scripts in 'prereq' to test for a specific compiler. But more to the point, if you look at prereq, it really does not have anything like this. It could be added to the tar file, but it would be quite easy to make a mistake in updating that tar file, as you would need to copy the files first to $SAGE_LOCAL/bin, then create the tarfile. In contrast, putting them in spkg/base seems less problematic to me. Dave -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Broken symbolic link local/lib/python2.6/python-2.6
William Stein wrote: 2009/12/13 Dr. David Kirkby david.kir...@onetel.net: I've had some error messages whilst trying to create a binary distribution of Sage on Solaris. cp is complaining about broken link. So I decided to build Sage on linux and see if the link is broken there too, which it is. kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ ls -l python2.6 lrwxrwxrwx 1 kirkby kirkby 9 2009-12-13 11:23 python2.6 - python2.6 kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ file python2.6 python2.6: broken symbolic link to `python2.6' I think we should remove local/lib/python2.6/python2.6 Comments? We need to figure out what creates that file and get rid of it. Presumably it is some line in the spkg-install for the python spkg. William It does not appear to be created in spkg-install. I looked over that spkg-install, and can't see it. Perhaps you can. There several directories deleted, then a link made, but I can't see this incorrect link being made. I think it must be the python distribution, which by the way is a couple of versions out of date. But there are so many patches to python in Sage, I was a bit reluctant to attempt an update of the python .spkg This is also a rather annoying hard-link created in python - the only hard link in the whole of Sage. Someone (forget who) found the line in the python distribution which does that, but I was a bit reluctant to start patching python. Perhaps I should, as that hard link creates issues on Solaris. It would apear POSIX is not explicit about how hard links are copied, which would be a good reason for replacing this with a symbolic link. But I am not too happy about attempting to upgrade a package I know little about, and don't understand fully. Dave -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Broken symbolic link local/lib/python2.6/python-2.6
On Mon, Dec 14, 2009 at 1:17 AM, Dr. David Kirkby david.kir...@onetel.net wrote: William Stein wrote: 2009/12/13 Dr. David Kirkby david.kir...@onetel.net: I've had some error messages whilst trying to create a binary distribution of Sage on Solaris. cp is complaining about broken link. So I decided to build Sage on linux and see if the link is broken there too, which it is. kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ ls -l python2.6 lrwxrwxrwx 1 kirkby kirkby 9 2009-12-13 11:23 python2.6 - python2.6 kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ file python2.6 python2.6: broken symbolic link to `python2.6' I think we should remove local/lib/python2.6/python2.6 Comments? We need to figure out what creates that file and get rid of it. Presumably it is some line in the spkg-install for the python spkg. William It does not appear to be created in spkg-install. I looked over that spkg-install, and can't see it. Perhaps you can. There several directories deleted, then a link made, but I can't see this incorrect link being made. I think it must be the python distribution, which by the way is a couple of versions out of date. But there are so many patches to python in Sage, I was a bit reluctant to attempt an update of the python .spkg This is also a rather annoying hard-link created in python - the only hard link in the whole of Sage. Someone (forget who) found the line in the python distribution which does that, but I was a bit reluctant to start patching python. Perhaps I should, as that hard link creates issues on Solaris. It would apear POSIX is not explicit about how hard links are copied, which would be a good reason for replacing this with a symbolic link. But I am not too happy about attempting to upgrade a package I know little about, and don't understand fully. If there is exactly one hard link, why not just delete it and make the equivalent symlink? It seems like patching Python is overkill. William -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Broken symbolic link local/lib/python2.6/python-2.6
William Stein wrote: On Mon, Dec 14, 2009 at 1:17 AM, Dr. David Kirkby david.kir...@onetel.net wrote: William Stein wrote: 2009/12/13 Dr. David Kirkby david.kir...@onetel.net: I've had some error messages whilst trying to create a binary distribution of Sage on Solaris. cp is complaining about broken link. So I decided to build Sage on linux and see if the link is broken there too, which it is. kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ ls -l python2.6 lrwxrwxrwx 1 kirkby kirkby 9 2009-12-13 11:23 python2.6 - python2.6 kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ file python2.6 python2.6: broken symbolic link to `python2.6' I think we should remove local/lib/python2.6/python2.6 Comments? We need to figure out what creates that file and get rid of it. Presumably it is some line in the spkg-install for the python spkg. William It does not appear to be created in spkg-install. I looked over that spkg-install, and can't see it. Perhaps you can. There several directories deleted, then a link made, but I can't see this incorrect link being made. I think it must be the python distribution, which by the way is a couple of versions out of date. But there are so many patches to python in Sage, I was a bit reluctant to attempt an update of the python .spkg This is also a rather annoying hard-link created in python - the only hard link in the whole of Sage. Someone (forget who) found the line in the python distribution which does that, but I was a bit reluctant to start patching python. Perhaps I should, as that hard link creates issues on Solaris. It would apear POSIX is not explicit about how hard links are copied, which would be a good reason for replacing this with a symbolic link. But I am not too happy about attempting to upgrade a package I know little about, and don't understand fully. If there is exactly one hard link, why not just delete it and make the equivalent symlink? It seems like patching Python is overkill. William OK, if it seems sensible to you, I'll 1) Delete this broken link in spkg-install 2) Delete the hard link in spkg-install 3) Create a soft link in spkg-install. Does that seem reasonable? If so, I'll do that. The other option is someone look at updating python to 2.6.4, as its only a bug-fix release, with no new features. I've not looked to see if addresses this specific issues - I could not find the readme which shows the changes from 2.6.2 (in Sage) to 2.6.4 (the latest release). Dave. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Broken symbolic link local/lib/python2.6/python-2.6
Dr. David Kirkby wrote: William Stein wrote: William OK, if it seems sensible to you, I'll 1) Delete this broken link in spkg-install 2) Delete the hard link in spkg-install 3) Create a soft link in spkg-install. Does that seem reasonable? If so, I'll do that. BTW, there are two options here. 1) My preference would be to delete and add the links, checking if they have been deleted and created, and if not exit, telling someone to get spkg-instal fixed. That would avoid unnecessary clutter building up in spkg-install if it is no longer needed. (I suspect there are a few things there, which do not to be there any longer, but just get left there, cluttering up spkg-install). 2) However, another option would be to use 'rm -f' and so the links only get deleted if they exist. That would be more bullet proof in the short term, but runs the risk of leaving unnecessary junk in spgk-install. The other option is someone look at updating python to 2.6.4, as its only a bug-fix release, with no new features. I've not looked to see if addresses this specific issues - I could not find the readme which shows the changes from 2.6.2 (in Sage) to 2.6.4 (the latest release). Dave. Dave -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: tutorial on Python functional programming for mathematicians
With respect to some of this discussion, see also the following sage- support request: http://groups.google.com/group/sage-support/browse_thread/thread/9e6475494f85cd53 - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] the attack of the (really) long doctests
2009/12/14 Alex Ghitza aghi...@gmail.com: OK, the first patch, dealing with the Bernoulli numbers tests in arith.py, is up at http://trac.sagemath.org/sage_trac/ticket/7678 I have made some comments there, and would welcome a second opinion! John -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Request for test of installing R packages
Dear sage-devel, It's time to fix our R stuff. I have some suspicions on some issues, so I would appreciate if people on a wide variety of machines could try the following and reply to this thread. sage: r.install_packages('aaMI') # hopefully a happy result sage: r.console() install.packages('abind') # you'll be asked to pick a mirror using a Tcl/Tk thingie # hopefully a happy result I have already done OSX 10.5 on Macintel, where it works fine, as well as on sage.math (some kind of Linux, I guess), where it doesn't for some reason (see #4959 for details), though only for the second package which seems to require something unusual. Reports would help a lot with figuring out what is going on with #4959 and #5246. Please note that these packages don't depend on anything else, so the problems from #6532 or #2198 should not occur. Thanks, - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Request for test of installing R packages
kcrisman wrote: Dear sage-devel, It's time to fix our R stuff. I have some suspicions on some issues, so I would appreciate if people on a wide variety of machines could try the following and reply to this thread. sage: r.install_packages('aaMI') # hopefully a happy result sage: r.console() install.packages('abind') # you'll be asked to pick a mirror using a Tcl/Tk thingie # hopefully a happy result I have already done OSX 10.5 on Macintel, where it works fine, as well as on sage.math (some kind of Linux, I guess), where it doesn't for some reason (see #4959 for details), though only for the second package which seems to require something unusual. Reports would help a lot with figuring out what is going on with #4959 and #5246. Please note that these packages don't depend on anything else, so the problems from #6532 or #2198 should not occur. This is on x86 64-bit Ubuntu Karmic, sage 4.3.rc0. Thanks, Jason % sage -- | Sage Version 4.3.rc0, Release Date: 2009-12-10 | | Type notebook() for the GUI, and license() for information.| -- ** ** * Warning: this is a prerelease version, and it may be unstable. * ** ** sage: r.install_packages('aaMI') 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+214minor)pagefaults 0swaps R version 2.9.2 (2009-08-24) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. options(repos=http://cran.r-project.org/;); install.packages(aaMI) trying URL 'http://cran.r-project.org/src/contrib/aaMI_1.0-1.tar.gz' Content type 'application/x-gzip' length 3487 bytes opened URL == downloaded 3487 bytes * Installing *source* package ‘aaMI’ ... ** R ** preparing package for lazy loading Error in if (file.info(codeFile)[size] == file.info(loaderFile)[size]) warning(package seems to be using lazy loading already) else { : missing value where TRUE/FALSE needed ERROR: lazy loading failed for package ‘aaMI’ * Removing ‘/home/grout/sage-4.3.rc0/local/lib/R/library/aaMI’ The downloaded packages are in ‘/tmp/RtmpxzBKKg/downloaded_packages’ Updating HTML index of packages in '.Library' Warning messages: 1: In install.packages(aaMI) : installation of package 'aaMI' had non-zero exit status 2: In file.create(f.tg) : cannot create file '/dev/shm/sage-4.3.rc0/local/lib/R/doc/html/packages.html', reason 'No such file or directory' 3: In tools:::unix.packages.html(.Library) : cannot create HTML package index Please restart Sage or restart the R interface (via r.restart()) in order to use 'aaMI'. sage: Exiting SAGE (CPU time 0m0.03s, Wall time 0m20.52s). % sage -- | Sage Version 4.3.rc0, Release Date: 2009-12-10 | | Type notebook() for the GUI, and license() for information.| -- ** ** * Warning: this is a prerelease version, and it may be unstable. * ** ** sage: r.console() R version 2.9.2 (2009-08-24) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. install.packages('abind') --- Please select a CRAN mirror for use in this session --- CRAN mirror 1: Argentina (Buenos Aires) 2:
Re: [sage-devel] Request for test of installing R packages
2009/12/14 kcrisman kcris...@gmail.com: Dear sage-devel, It's time to fix our R stuff. I have some suspicions on some issues, so I would appreciate if people on a wide variety of machines could try the following and reply to this thread. sage: r.install_packages('aaMI') # hopefully a happy result sage: r.console() install.packages('abind') # you'll be asked to pick a mirror using a Tcl/Tk thingie # hopefully a happy result I have already done OSX 10.5 on Macintel, where it works fine, as well as on sage.math (some kind of Linux, I guess), where it doesn't for some reason (see #4959 for details), though only for the second package which seems to require something unusual. Reports would help a lot with figuring out what is going on with #4959 and #5246. Please note that these packages don't depend on anything else, so the problems from #6532 or #2198 should not occur. This worked ok for me both on 64-bit ubuntu (the dialog for choosing a mirror appeared in the command-line window) and on 32-bit Suse (where it popped up a separate window which took me a few minutes to notice, but which worked). I could not test R afterwards since I have never used it. The only thing which did not work as it apparently should is that after the first r.install_packages('aaMI') it says that r.restart() should work, but it gives an error message (sage0 not found). Quitting Sage and then restarting is ok though. John Thanks, - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] install_package('glpk') installs... glpk 4-9 !!
Hello everybody !! I just typed in Sage install_package('glpk') and saw Sage downloading a file called glpk - 4.9 ( which is yet to be released ;-) ) Attempting to download it. http://www.sagemath.org//packages/optional/glpk-4.9.spkg -- glpk-4.9.spkg This package does not appear on http://sagemath.org/packages/optional/ but the download process is going on without failures Two solutions : 1) could we release glpk - 4.9 ( there is bound to be a wealth of new updates in this one XD 2) could we remove it from the repository, hoping this enough will fix this bug ? Thank youuu ! :-) Nathann -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Notebook for iphone and android
Maybe this link is helpful? http://www.ibm.com/vrm/newsletter_10731_6525_143112_email_DYN_8IN/q140151440 Jaap -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Please check if this computes seconds since Epoch
Jason Grout wrote: Dr. David Kirkby wrote: If you have a system with the GNU version of date, then date -u +%s will give the seconds since the Epoch. Unfortunately, it only works with GNU date, and so will not work on Solaris, HP-UX or no doubt many other Unix systems. [...] Could a few people check it on their systems. x86 64-bit Ubuntu Karmic: % sh unixtime.sh date -u +%s 1260813444 1260813444 Looks good to me. Same here on Fedora 12 x86_64: $ sh unixtime.sh date -u +%s 1260814075 1260814075 Jaap -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Request for test of installing R packages
I could not test R afterwards since I have never used it. That's ok - just trying to see one thing at a time. The only thing which did not work as it apparently should is that after the first r.install_packages('aaMI') it says that r.restart() should work, but it gives an error message (sage0 not found). Quitting Sage and then restarting is ok though. I've noticed this in the past as well, not sure what to do about it. Thanks for the report! - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Request for test of installing R packages
sage: r.install_packages('aaMI') R version 2.9.2 (2009-08-24) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. options(repos=http://cran.r-project.org/;); install.packages(aaMI) trying URL 'http://cran.r-project.org/src/contrib/aaMI_1.0-1.tar.gz' Content type 'application/x-gzip' length 3487 bytes opened URL == downloaded 3487 bytes * Installing *source* package ‘aaMI’ ... ** R ** preparing package for lazy loading Error in if (file.info(codeFile)[size] == file.info(loaderFile) [size]) warning(package seems to be using lazy loading already) else { : missing value where TRUE/FALSE needed ERROR: lazy loading failed for package ‘aaMI’ * Removing ‘/usr/local/sage-4.2/local/lib/R/library/aaMI’ The downloaded packages are in ‘/tmp/Rtmpr0HuZc/downloaded_packages’ Updating HTML index of packages in '.Library' Warning messages: 1: In install.packages(aaMI) : installation of package 'aaMI' had non-zero exit status 2: In file.create(f.tg) : cannot create file '/home/davidp/download/sage-4.2/local/lib/R/doc/ html/packages.html', reason 'No such file or directory' 3: In tools:::unix.packages.html(.Library) : cannot create HTML package index real0m11.704s user0m7.979s sys 0m0.148s Please restart Sage or restart the R interface (via r.restart()) in order to use 'aaMI'. sage: sage: sage: r.restart() Error: object 'sage0' not found sage: r.restart() Error: object 'sage1' not found sage: r.console() R version 2.9.2 (2009-08-24) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. install.packages('abind') --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://cran.fhcrc.org/src/contrib/abind_1.1-0.tar.gz' Content type 'application/x-gzip' length 10280 bytes (10 Kb) opened URL == downloaded 10 Kb * Installing *source* package ‘abind’ ... ** R ** preparing package for lazy loading Error in if (file.info(codeFile)[size] == file.info(loaderFile) [size]) warning(package seems to be using lazy loading already) else { : missing value where TRUE/FALSE needed ERROR: lazy loading failed for package ‘abind’ * Removing ‘/usr/local/sage-4.2/local/lib/R/library/abind’ The downloaded packages are in ‘/tmp/RtmpSImocY/downloaded_packages’ Updating HTML index of packages in '.Library' Warning messages: 1: In install.packages(abind) : installation of package 'abind' had non-zero exit status 2: In file.create(f.tg) : cannot create file '/home/davidp/download/sage-4.2/local/lib/R/doc/ html/packages.html', reason 'No such file or directory' 3: In tools:::unix.packages.html(.Library) : cannot create HTML package index (I chose USA WA from the Tcl/Tk interface.) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Request for test of installing R packages
Thanks. What kind of computer did you try this on? - kcrisman On Dec 14, 2:35 pm, davidp dav...@reed.edu wrote: sage: r.install_packages('aaMI') R version 2.9.2 (2009-08-24) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. options(repos=http://cran.r-project.org/;); install.packages(aaMI) trying URL 'http://cran.r-project.org/src/contrib/aaMI_1.0-1.tar.gz' Content type 'application/x-gzip' length 3487 bytes opened URL == downloaded 3487 bytes * Installing *source* package ‘aaMI’ ... ** R ** preparing package for lazy loading Error in if (file.info(codeFile)[size] == file.info(loaderFile) [size]) warning(package seems to be using lazy loading already) else { : missing value where TRUE/FALSE needed ERROR: lazy loading failed for package ‘aaMI’ * Removing ‘/usr/local/sage-4.2/local/lib/R/library/aaMI’ The downloaded packages are in ‘/tmp/Rtmpr0HuZc/downloaded_packages’ Updating HTML index of packages in '.Library' Warning messages: 1: In install.packages(aaMI) : installation of package 'aaMI' had non-zero exit status 2: In file.create(f.tg) : cannot create file '/home/davidp/download/sage-4.2/local/lib/R/doc/ html/packages.html', reason 'No such file or directory' 3: In tools:::unix.packages.html(.Library) : cannot create HTML package index real 0m11.704s user 0m7.979s sys 0m0.148s Please restart Sage or restart the R interface (via r.restart()) in order to use 'aaMI'. sage: sage: sage: r.restart() Error: object 'sage0' not found sage: r.restart() Error: object 'sage1' not found sage: r.console() R version 2.9.2 (2009-08-24) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. install.packages('abind') --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://cran.fhcrc.org/src/contrib/abind_1.1-0.tar.gz' Content type 'application/x-gzip' length 10280 bytes (10 Kb) opened URL == downloaded 10 Kb * Installing *source* package ‘abind’ ... ** R ** preparing package for lazy loading Error in if (file.info(codeFile)[size] == file.info(loaderFile) [size]) warning(package seems to be using lazy loading already) else { : missing value where TRUE/FALSE needed ERROR: lazy loading failed for package ‘abind’ * Removing ‘/usr/local/sage-4.2/local/lib/R/library/abind’ The downloaded packages are in ‘/tmp/RtmpSImocY/downloaded_packages’ Updating HTML index of packages in '.Library' Warning messages: 1: In install.packages(abind) : installation of package 'abind' had non-zero exit status 2: In file.create(f.tg) : cannot create file '/home/davidp/download/sage-4.2/local/lib/R/doc/ html/packages.html', reason 'No such file or directory' 3: In tools:::unix.packages.html(.Library) : cannot create HTML package index (I chose USA WA from the Tcl/Tk interface.) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] the attack of the (really) long doctests
On Dec 14, 2009, at 7:03 AM, John Cremona wrote: 2009/12/14 Alex Ghitza aghi...@gmail.com: OK, the first patch, dealing with the Bernoulli numbers tests in arith.py, is up at http://trac.sagemath.org/sage_trac/ticket/7678 I have made some comments there, and would welcome a second opinion! Looks good to me too. - Robert -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Build problem with sage 4.3
When trying to build sage 4.3 on a 64 bit Redhat system, the first error that I get is: Failed to find the necessary bits to build these modules: bsddb185 dl imageop sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Question: there are many setup.py files. It would be nice if the error indicated which one! Victor -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please help - where the hell should these files go?
On Dec 14, 2009, at 1:09 AM, Dr. David Kirkby wrote: Martin Albrecht wrote: One option I believe will work is to put the scripts in $SAGE_ROOT/spkg/base/ then update $SAGE_ROOT/spkg/install so it copies the scripts to $SAGE_LOCAL/bin. The only change needed to the $SAGE_ROOT/spkg/ install script is from cp base/sage-* $SAGE_LOCAL/bin/ to cp base/sage-* base/testcc.sh base/testcxx.sh $SAGE_LOCAL/bin/ i.e. this patch http://trac.sagemath.org/sage_trac/attachment/ticket/7505/install.patch How about the prereq SPKG, that would seem the right place? Cheers, Martin I'm not so sure prereq is the right place. For a start, one could potentially want to use the scripts in 'prereq' to test for a specific compiler. But more to the point, if you look at prereq, it really does not have anything like this. It could be added to the tar file, but it would be quite easy to make a mistake in updating that tar file, as you would need to copy the files first to $SAGE_LOCAL/bin, then create the tarfile. In contrast, putting them in spkg/base seems less problematic to me. I could see putting this in spkg/base, but if there are many more things like this, then it might make more sense to have a new bootstrap spkg, or at least directory. It seems like spkg/base should be as sparse and simple as possible. BTW, what is stdint.h_Solaris9 doing in that directory? - Robert -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Request for test of installing R packages
On Tue, 15 Dec 2009 06:23:30 John Cremona wrote: 2009/12/14 kcrisman kcris...@gmail.com: Dear sage-devel, It's time to fix our R stuff. I have some suspicions on some issues, so I would appreciate if people on a wide variety of machines could try the following and reply to this thread. sage: r.install_packages('aaMI') # hopefully a happy result sage: r.console() install.packages('abind') # you'll be asked to pick a mirror using a Tcl/Tk thingie # hopefully a happy result I have already done OSX 10.5 on Macintel, where it works fine, as well as on sage.math (some kind of Linux, I guess), where it doesn't for some reason (see #4959 for details), though only for the second package which seems to require something unusual. Reports would help a lot with figuring out what is going on with #4959 and #5246. Please note that these packages don't depend on anything else, so the problems from #6532 or #2198 should not occur. This worked ok for me both on 64-bit ubuntu (the dialog for choosing a mirror appeared in the command-line window) and on 32-bit Suse (where it popped up a separate window which took me a few minutes to notice, but which worked). I could not test R afterwards since I have never used it. The only thing which did not work as it apparently should is that after the first r.install_packages('aaMI') it says that r.restart() should work, but it gives an error message (sage0 not found). Quitting Sage and then restarting is ok though. Same results in sage-4.2.1 on my gentoo x86 box. It worked but r.restart() give the same error message. Francois -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please check if this computes seconds since Epoch
On a 64-bit ubuntu system I had to include the .sh like this: j...@selmer%date -u +%s ./unixtime.sh 1260823644 1260823644 since: j...@selmer%date -u +%s ./unixtime 1260823676 -bash: ./unixtime: No such file or directory My $SHELL is /bin/bash but your script uses /bin/sh which here is j...@selmer%ls -l /bin/sh lrwxrwxrwx 1 root root 4 2009-06-25 11:41 /bin/sh - dash dash? John 2009/12/13 Dr. David Kirkby david.kir...@onetel.net: If you have a system with the GNU version of date, then date -u +%s will give the seconds since the Epoch. Unfortunately, it only works with GNU date, and so will not work on Solaris, HP-UX or no doubt many other Unix systems. The following script should compute this is a portable manner. Here's a few examples On sage.math, where date accepts +%s kir...@sage:~$ date -u +%s ./unixtime 1260720556 1260720556 On an HP-UX system, where date does *not* accept +%s bash-2.04$ uname -a HP-UX hpbox B.11.11 U 9000/785 2016698240 unlimited-user license bash-2.04$ ./unixtime date -u +%s 1260720771 date: bad format character - s On an OpenSolaris system, where date does *not* accept +%s bash-3.2$ ./unixtime date -u +%s 1260720823 %s On an IBM server running AIX 6.1, where date does accept +%s $ uname -a AIX client1 1 6 00C6B7C04C00 $ ./unixtime date -u +%s 1260721013 1260721013 For every system I am able to check this on, the following script gives exactly the same output as the GNU date command, but in a more portable manner. Could a few people check it on their systems. If it does work, I'd propose it is used in place of the GNUism introduced in http://trac.sagemath.org/sage_trac/ticket/6744 Currently the file .BUILDSTART created by #6744 is not actually used anywhere in Sage, but clearly the intension is to use it at some point, in which case it will be found not to work on some systems. Dave --- #!/bin/sh # Compute seconds since the Epoch. # Call 'date'. Note that # %Y = year including century # %j = day number (1-365) # %H = hour (0-23) # %M = minute (0-59) # %S = seconds (0-59) if type env /dev/null 21 ; then set -- `env LC_ALL=C LC_TIME=C LANG=C date -u '+%Y %j %H %M %S'` else set -- `date -u '+%Y %j %H %M %S'` fi # $1 = year including century # $2 = day number (1-365) # $3 = hour (0-23) # $4 = minute (0-59) # $5 = seconds (0-59) if [ $? -ne 0 ] || [ $# -lt 5 ] ; then TIME=Error computing seconds since the Epoch fi DAYS=`expr 365 \* \( $1 - 1970 \) + \( $1 - 1969 \) / 4 + $2 - 1` TIME=`expr $5 + 60 \* \( $4 + 60 \* \( $3 + 24 \* $DAYS \) \)` echo $TIME -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: randomized testing (and bugs?) in groups/perm_gps/partn_ref/
On Sun, Dec 13, 2009 at 5:30 PM, Robert Miller rlmills...@gmail.com wrote: ... Regarding the output you saw printed, it is quite likely that the keyboard interrupt caused this, since (as you can see) the handling of keyboardinterrupt errors in partn_ref needs some work. I am verifying that example now. This is an interesting example -- it turns out *not* to be a bug. The matrix printed takes about 725 seconds, but when you apply the permutation printed, you get an isomorphic matrix which takes 5000 seconds. I suppose this is further support for removing these tests, since it is just too hard to predict the runtime. -- Robert L. Miller http://www.rlmiller.org/ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Build problem with sage 4.3
More data. I downloaded the Python-2.6.4 source from python.org and tried to build it. I get the same sort of errors mentioning bsddb185 and sunaudiodev, so this appears to be a python problem. Does anyone know how to resolve this? Note that I do not have permission to change system files, so that anything involving sudo is out. Victor On Dec 14, 2:49 pm, VictorMiller victorsmil...@gmail.com wrote: When trying to build sage 4.3 on a 64 bit Redhat system, the first error that I get is: Failed to find the necessary bits to build these modules: bsddb185 dl imageop sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Question: there are many setup.py files. It would be nice if the error indicated which one! Victor -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Build problem with sage 4.3
The following forum post: http://forums.fedoraforum.org/showthread.php?t=234146 makes it sound like that error message might just be warning, but its hard to tell. -Marshall On Dec 14, 3:22 pm, VictorMiller victorsmil...@gmail.com wrote: More data. I downloaded the Python-2.6.4 source from python.org and tried to build it. I get the same sort of errors mentioning bsddb185 and sunaudiodev, so this appears to be a python problem. Does anyone know how to resolve this? Note that I do not have permission to change system files, so that anything involving sudo is out. Victor On Dec 14, 2:49 pm, VictorMiller victorsmil...@gmail.com wrote: When trying to build sage 4.3 on a 64 bit Redhat system, the first error that I get is: Failed to find the necessary bits to build these modules: bsddb185 dl imageop sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Question: there are many setup.py files. It would be nice if the error indicated which one! Victor -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Build problem with sage 4.3
Thanks, indeed it does appear to be a warning. Now I have to go back to the install.log for sage and see what are REALLY errors. On Dec 14, 4:34 pm, mhampton hampto...@gmail.com wrote: The following forum post: http://forums.fedoraforum.org/showthread.php?t=234146 makes it sound like that error message might just be warning, but its hard to tell. -Marshall On Dec 14, 3:22 pm, VictorMiller victorsmil...@gmail.com wrote: More data. I downloaded the Python-2.6.4 source from python.org and tried to build it. I get the same sort of errors mentioning bsddb185 and sunaudiodev, so this appears to be a python problem. Does anyone know how to resolve this? Note that I do not have permission to change system files, so that anything involving sudo is out. Victor On Dec 14, 2:49 pm, VictorMiller victorsmil...@gmail.com wrote: When trying to build sage 4.3 on a 64 bit Redhat system, the first error that I get is: Failed to find the necessary bits to build these modules: bsddb185 dl imageop sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Question: there are many setup.py files. It would be nice if the error indicated which one! Victor -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Build problem with sage 4.3
This is the last error that's in the sage install.log, before it quits: 'import site' failed; use -v for traceback Traceback (most recent call last): File string, line 1, in ? File /east/u/victor/sage-4.3.rc0/local/lib/python/hashlib.py, line 136, in ? md5 = __get_builtin_constructor('md5') File /east/u/victor/sage-4.3.rc0/local/lib/python/hashlib.py, line 63, in __get_builtin_constructor import _md5 ImportError: No module named _md5 -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please check if this computes seconds since Epoch
John Cremona wrote: On a 64-bit ubuntu system I had to include the .sh like this: j...@selmer%date -u +%s ./unixtime.sh 1260823644 1260823644 since: j...@selmer%date -u +%s ./unixtime 1260823676 -bash: ./unixtime: No such file or directory My $SHELL is /bin/bash but your script uses /bin/sh which here is j...@selmer%ls -l /bin/sh lrwxrwxrwx 1 root root 4 2009-06-25 11:41 /bin/sh - dash dash? Thank you for that John, The code will actually go into the script $SAGE_ROOT/spkg/install which has at the top of it: #!/usr/bin/env bash echo `date -u +%s` .BUILDSTART So my code will actually be executed with 'bash'. I want to get rid of the GNU-specific option to the date command. I guess I should have put #!/usr/bin/env bash in the script I posted, but I tend only to write scripts that make use of things supported by a minimal /bin/sh, rather than rely on any bash-specific features. I must admit I'm puzzled it needed the .sh on the end. Are you sure you had the execute permission on the version without the .sh ? I'm still puzzled though I must admit, why it says No such file or directory, since the file clearly exists. I suppose I have never used the 'dash' shell, so don't know how it behaves. bash is considered a perquisite for Sage, though personally I tend to write thing that work with other shells. 'dash' seems pretty unique in not executing code without the .sh extension. The shells on Solaris, HP-UX, Linux, OS X and AIX all work without the .sh. So far, anyone that has posted the output and compared it with $ date +%s appears to give the same result, so I believe this will give us portability without compromising accuracy. Dave John 2009/12/13 Dr. David Kirkby david.kir...@onetel.net: If you have a system with the GNU version of date, then date -u +%s will give the seconds since the Epoch. Unfortunately, it only works with GNU date, and so will not work on Solaris, HP-UX or no doubt many other Unix systems. The following script should compute this is a portable manner. Here's a few examples On sage.math, where date accepts +%s kir...@sage:~$ date -u +%s ./unixtime 1260720556 1260720556 On an HP-UX system, where date does *not* accept +%s bash-2.04$ uname -a HP-UX hpbox B.11.11 U 9000/785 2016698240 unlimited-user license bash-2.04$ ./unixtime date -u +%s 1260720771 date: bad format character - s On an OpenSolaris system, where date does *not* accept +%s bash-3.2$ ./unixtime date -u +%s 1260720823 %s On an IBM server running AIX 6.1, where date does accept +%s $ uname -a AIX client1 1 6 00C6B7C04C00 $ ./unixtime date -u +%s 1260721013 1260721013 For every system I am able to check this on, the following script gives exactly the same output as the GNU date command, but in a more portable manner. Could a few people check it on their systems. If it does work, I'd propose it is used in place of the GNUism introduced in http://trac.sagemath.org/sage_trac/ticket/6744 Currently the file .BUILDSTART created by #6744 is not actually used anywhere in Sage, but clearly the intension is to use it at some point, in which case it will be found not to work on some systems. Dave --- #!/bin/sh # Compute seconds since the Epoch. # Call 'date'. Note that # %Y = year including century # %j = day number (1-365) # %H = hour (0-23) # %M = minute (0-59) # %S = seconds (0-59) if type env /dev/null 21 ; then set -- `env LC_ALL=C LC_TIME=C LANG=C date -u '+%Y %j %H %M %S'` else set -- `date -u '+%Y %j %H %M %S'` fi # $1 = year including century # $2 = day number (1-365) # $3 = hour (0-23) # $4 = minute (0-59) # $5 = seconds (0-59) if [ $? -ne 0 ] || [ $# -lt 5 ] ; then TIME=Error computing seconds since the Epoch fi DAYS=`expr 365 \* \( $1 - 1970 \) + \( $1 - 1969 \) / 4 + $2 - 1` TIME=`expr $5 + 60 \* \( $4 + 60 \* \( $3 + 24 \* $DAYS \) \)` echo $TIME -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: randomized testing (and bugs?) in groups/perm_gps/partn_ref/
On Mon, Dec 14, 2009 at 12:43:16PM -0800, Robert Miller wrote: This is an interesting example -- it turns out *not* to be a bug. The matrix printed takes about 725 seconds, but when you apply the permutation printed, you get an isomorphic matrix which takes 5000 seconds. I suppose this is further support for removing these tests, since it is just too hard to predict the runtime. Since I know nothing about the algorithm, I couldn't tell whether the large differences in runtime between different runs was normal or a sign of trouble. The question that I was asking myself while waiting for the tests to end was this: how do I give you a good bug report? If the computation ends and the checks don't work out, then the testing code outputs the matrix and permutation, so I just have to send you that. But if I am suspecting that the computation is stuck, or maybe it's just unnecessarily long, what can I do to find out what input it was working on so I can pass it along? Maybe trapping Ctrl-C and having the testing code say something like: Computation interrupted while working on matrix = permutation = Then I could send that to you to check. (Or if I got myself better informed, check it myself.) Also, when we'll have a battery of randomized tests running 24/7 on some machine hunting for bugs, putting in a timeout for these tests and reporting the input when this timeout is exceeded might help. (Looking on the bright side, your code has been tested quite extensively so far by everybody running Sage's doctests, and we seem to not have found any bugs yet, so that's quite something!) Best, Alex -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please help - where the hell should these files go?
Robert Bradshaw wrote: On Dec 14, 2009, at 1:09 AM, Dr. David Kirkby wrote: I'm not so sure prereq is the right place. For a start, one could potentially want to use the scripts in 'prereq' to test for a specific compiler. But more to the point, if you look at prereq, it really does not have anything like this. It could be added to the tar file, but it would be quite easy to make a mistake in updating that tar file, as you would need to copy the files first to $SAGE_LOCAL/bin, then create the tarfile. In contrast, putting them in spkg/base seems less problematic to me. I could see putting this in spkg/base, but if there are many more things like this, then it might make more sense to have a new bootstrap spkg, or at least directory. I don't see myself creating more like this, so I think creating a new directory would not be necessary. It seems like spkg/base should be as sparse and simple as possible. Fair enough. BTW, what is stdint.h_Solaris9 doing in that directory? No idea - it is not something I added. I know there is one bit in Sage, which does copy some sort of header file for Solaris 9 only. But since Sage is supported only on Solaris 10 and later, it seems a bit pointless. Whilst I think it would be a good idea to get Sage to build with Solaris =8, I'd personally rather sort out the issues that exist *properly*, rather than adding bits of header file. As such, I would suggest this is removed. - Robert Thank you Robert. Do the following seem ok to you (or anyone else for that matter)? 1) Add testcc.sh and testcxx.sh to spkg/base 2) Remove spkg/base stdint.h_Solaris9 3) Add to spkg/install the code to copy spkg/base/testcc.sh and spkg/base/testcxx.sh to $SAGE_LOCAL/bin - pretty trivial addition to a pre-existing 'cp' command. 4) Add to spkg/install the portable version of the code I have for computing seconds since the Epoch? (It just happens to need to go into the same file as the code for copying testcc.sh and testcxx.sh). Dave -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Please check if this computes seconds since Epoch
2009/12/14 Dr. David Kirkby david.kir...@onetel.net: John Cremona wrote: On a 64-bit ubuntu system I had to include the .sh like this: j...@selmer%date -u +%s ./unixtime.sh 1260823644 1260823644 since: j...@selmer%date -u +%s ./unixtime 1260823676 -bash: ./unixtime: No such file or directory My $SHELL is /bin/bash but your script uses /bin/sh which here is j...@selmer%ls -l /bin/sh lrwxrwxrwx 1 root root 4 2009-06-25 11:41 /bin/sh - dash dash? Thank you for that John, The code will actually go into the script $SAGE_ROOT/spkg/install which has at the top of it: #!/usr/bin/env bash echo `date -u +%s` .BUILDSTART So my code will actually be executed with 'bash'. I want to get rid of the GNU-specific option to the date command. I guess I should have put #!/usr/bin/env bash in the script I posted, but I tend only to write scripts that make use of things supported by a minimal /bin/sh, rather than rely on any bash-specific features. I must admit I'm puzzled it needed the .sh on the end. Are you sure you had the execute permission on the version without the .sh ? Yes, definitely. (If not, even ./unixtime.sh would have failed.) I'm still puzzled though I must admit, why it says No such file or directory, since the file clearly exists. I suppose I have never used the 'dash' shell, so don't know how it behaves. Nor me. But someone will try to build Sage with it one day! John bash is considered a perquisite for Sage, though personally I tend to write thing that work with other shells. 'dash' seems pretty unique in not executing code without the .sh extension. The shells on Solaris, HP-UX, Linux, OS X and AIX all work without the .sh. So far, anyone that has posted the output and compared it with $ date +%s appears to give the same result, so I believe this will give us portability without compromising accuracy. Dave John 2009/12/13 Dr. David Kirkby david.kir...@onetel.net: If you have a system with the GNU version of date, then date -u +%s will give the seconds since the Epoch. Unfortunately, it only works with GNU date, and so will not work on Solaris, HP-UX or no doubt many other Unix systems. The following script should compute this is a portable manner. Here's a few examples On sage.math, where date accepts +%s kir...@sage:~$ date -u +%s ./unixtime 1260720556 1260720556 On an HP-UX system, where date does *not* accept +%s bash-2.04$ uname -a HP-UX hpbox B.11.11 U 9000/785 2016698240 unlimited-user license bash-2.04$ ./unixtime date -u +%s 1260720771 date: bad format character - s On an OpenSolaris system, where date does *not* accept +%s bash-3.2$ ./unixtime date -u +%s 1260720823 %s On an IBM server running AIX 6.1, where date does accept +%s $ uname -a AIX client1 1 6 00C6B7C04C00 $ ./unixtime date -u +%s 1260721013 1260721013 For every system I am able to check this on, the following script gives exactly the same output as the GNU date command, but in a more portable manner. Could a few people check it on their systems. If it does work, I'd propose it is used in place of the GNUism introduced in http://trac.sagemath.org/sage_trac/ticket/6744 Currently the file .BUILDSTART created by #6744 is not actually used anywhere in Sage, but clearly the intension is to use it at some point, in which case it will be found not to work on some systems. Dave --- #!/bin/sh # Compute seconds since the Epoch. # Call 'date'. Note that # %Y = year including century # %j = day number (1-365) # %H = hour (0-23) # %M = minute (0-59) # %S = seconds (0-59) if type env /dev/null 21 ; then set -- `env LC_ALL=C LC_TIME=C LANG=C date -u '+%Y %j %H %M %S'` else set -- `date -u '+%Y %j %H %M %S'` fi # $1 = year including century # $2 = day number (1-365) # $3 = hour (0-23) # $4 = minute (0-59) # $5 = seconds (0-59) if [ $? -ne 0 ] || [ $# -lt 5 ] ; then TIME=Error computing seconds since the Epoch fi DAYS=`expr 365 \* \( $1 - 1970 \) + \( $1 - 1969 \) / 4 + $2 - 1` TIME=`expr $5 + 60 \* \( $4 + 60 \* \( $3 + 24 \* $DAYS \) \)` echo $TIME -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at
[sage-devel] Re: tutorial on Python functional programming for mathematicians
mhampton wrote: If you convert to numpy matrices, then Sage is pretty competitive with matlab. We still have some room for improvement in making it easy though - despite Jason Grout's improvements, a matrix over RDF is missing some methods I'd like, such as the singular value decomposition. As an example, to extend one of Minh's examples to get the smallest singular value of a bunch of matrices you'd have to do something like: sage: rand_row = lambda n: [randint(1, 10) for i in xrange(n)] sage: rand_mat = lambda nrows, ncols: [rand_row(ncols) for i in xrange (nrows)] sage: rows = [randint(1, 10) for i in xrange(10)] sage: cols = [randint(1, 10) for i in xrange(10)] sage: M = map(rand_mat, rows, cols) sage: M = map(matrix, M) sage: from numpy.linalg import svd sage: smallest_singular_values = lambda x: min(svd(x.numpy())[1]) sage: ssvM = map(smallest_singular_values,M) Or perhaps I'm missing something and that import isn't necessary. Use .SVD(): sage: a=random_matrix(RDF,4) sage: a [-0.0589149680447 -0.171553538689 0.0504191493106 -0.728358759815] [ 0.939727693257 -0.367536042534 -0.721360348176 0.0692413755066] [ -0.265450259774 -0.0414843551839 0.329102195484 -0.152151468706] [ 0.166692127509 -0.107846656469 -0.964097402323 -0.752787313591] sage: a.SVD() ( [ 0.136357448911 0.618194289876 0.67734122822 -0.374768363984] [ 0.678366688256 -0.550596271759 0.457486597867 0.165433958308] [-0.204023508917 0.263478231509 0.295912033247 0.895203718664] [ 0.692531364055 0.495236092193 -0.494318664329 0.175472450502], [ 1.590466103720.00.00.0] [ 0.0 1.052460858250.00.0] [ 0.00.0 0.4550981935190.0] [ 0.00.00.0 0.064329905844], [ 0.502396175818 -0.514242277172 0.503316286102 -0.479401375714] [-0.213107477417 0.0303771634211 -0.534627925294 -0.81721197526] [-0.765363106349 0.0357282483633 0.611065745739-0.198850351] [-0.341178254043 -0.85636183975 -0.295709911949 0.250594186611] ) sage: What apparently is missing is that matrix/matrix_double_dense.pyx has not been converted to rest yet, so the SVD function does not show up in the reference manual. Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Long time to clone
This is in sage 4.2.1 (obtained from upgrading from 4.1.1) after doing sage -clone trac128 I get [...] real0m51.392s user0m46.849s sys 0m3.354s After cloning, if you change any Sage library files and want to rebuild the html version of the reference manual, use the command sage -docbuild reference html (after running 'sage -b'). Note: if *before* cloning, you have changed any Sage library files without rebuilding the reference manual, then after cloning, you will need to touch those files again if you want the changes to be incorporated into the reference manual. Updating modification times for the documentation... sage -docbuild --update-mtimes reference html [...] which has now already taken about 15 minutes (!) and has not finished yet. Cloning has cost considerable time before, but this is ridiculous. I do not even care about the documentation for this clone. Is this something that occurs more often and needs fixing or do I just have a crippled install? (I now see why it takes so long for tickets to be reviewed :-) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: tutorial on Python functional programming for mathematicians
Jason Grout wrote: Use .SVD(): I should mention that .SVD just calls numpy/scipy for the actual computation. Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Long time to clone
Hi Nils, On Tue, Dec 15, 2009 at 11:31 AM, Nils Bruin nbr...@sfu.ca wrote: SNIP Is this something that occurs more often and needs fixing or do I just have a crippled install? Sage 4.2.1 is known to take a very long time when you do cloning. A lot of people have experienced that. See this sage-devel thread [1]. Ticket #7473 [2] contains a fix. It has already been merged in Sage 4.3.rc0 so the fix should be available with Sage 4.3. [1] http://groups.google.com/group/sage-devel/browse_thread/thread/11f432ca0302189e [2] http://trac.sagemath.org/sage_trac/ticket/7473 -- Regards Minh Van Nguyen -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: tutorial on Python functional programming for mathematicians
Thanks for pointing that out. I was looking for svd, lower-case, and missed it. -Marshall On Dec 14, 6:33 pm, Jason Grout jason-s...@creativetrax.com wrote: Jason Grout wrote: Use .SVD(): I should mention that .SVD just calls numpy/scipy for the actual computation. Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: Build problem with sage 4.3
On Mon, Dec 14, 2009 at 1:48 PM, VictorMiller victorsmil...@gmail.com wrote: This is the last error that's in the sage install.log, before it quits: Victor, Why don't you try installing this spkg: http://www.sagemath.org/packages/optional/openssl-0.9.8d.p1.spkg then continue the build by typing make. ./sage -i openssl-0.9.8d.p1 'import site' failed; use -v for traceback Traceback (most recent call last): File string, line 1, in ? File /east/u/victor/sage-4.3.rc0/local/lib/python/hashlib.py, line 136, in ? md5 = __get_builtin_constructor('md5') File /east/u/victor/sage-4.3.rc0/local/lib/python/hashlib.py, line 63, in __get_builtin_constructor import _md5 ImportError: No module named _md5 -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] startup errors
Hi I run Ubuntu jaunty 9.04, and sage 4.2. I'm sure I haven't seen this before, and don't know when it started -- perhaps due to some other upgrade on the system. It's just warnings, but perhaps worth reporting. 0 j...@muizenberg:~$sage -notebook -- | Sage Version 4.2, Release Date: 2009-10-24 | | Type notebook() for the GUI, and license() for information.| -- Please wait while the Sage Notebook server starts... ... The notebook files are stored in: sage_notebook.sagenb ** ** * Open your web browser to http://localhost:8000 * ** ** /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os, md5, sys /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.labelsep is deprecated. Update your matplotlibrc to use legend.labelspacing instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.pad is deprecated. Update your matplotlibrc to use legend.borderpad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/rcsetup.py:117: UserWarning: rcParams key numerix is obsolete and has no effect; please delete it from your matplotlibrc file warnings.warn('rcParams key numerix is obsolete and has no effect;\n' /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.axespad is deprecated. Update your matplotlibrc to use legend.borderaxespad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.handletextsep is deprecated. Update your matplotlibrc to use legend.handletextpad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.handlelen is deprecated. Update your matplotlibrc to use legend.handlelength instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) 2009-12-15 08:41:23+0200 [-] Log opened. 2009-12-15 08:41:23+0200 [-] twistd 8.2.0 (/usr/local/src/sage-4.2/local/bin/python 2.6.2) starting up. 2009-12-15 08:41:23+0200 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2009-12-15 08:41:23+0200 [-] twisted.web2.channel.http.HTTPFactory starting on 8000 2009-12-15 08:41:23+0200 [-] Starting factory twisted.web2.channel.http.HTTPFactory instance at 0x5de7488 regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] startup errors
Hello, On Tue, Dec 15, 2009 at 1:44 PM, Jan Groenewald j...@aims.ac.za wrote: 0 j...@muizenberg:~$sage -notebook /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os, md5, sys This is fixed in newer Sage releases. /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.labelsep is deprecated. Update your matplotlibrc to use legend.labelspacing instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.pad is deprecated. Update your matplotlibrc to use legend.borderpad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/rcsetup.py:117: UserWarning: rcParams key numerix is obsolete and has no effect; I believe these are issues in your ~/.matplotlibrc file. --Mike -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] startup errors
Hi, Perhaps people reading the sage-notebook mailing list would be interested in this thread. -- Regards Minh Van Nguyen On Tue, Dec 15, 2009 at 5:44 PM, Jan Groenewald j...@aims.ac.za wrote: Hi I run Ubuntu jaunty 9.04, and sage 4.2. I'm sure I haven't seen this before, and don't know when it started -- perhaps due to some other upgrade on the system. It's just warnings, but perhaps worth reporting. 0 j...@muizenberg:~$sage -notebook -- | Sage Version 4.2, Release Date: 2009-10-24 | | Type notebook() for the GUI, and license() for information.| -- Please wait while the Sage Notebook server starts... ... The notebook files are stored in: sage_notebook.sagenb ** ** * Open your web browser to http://localhost:8000 * ** ** /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os, md5, sys /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.labelsep is deprecated. Update your matplotlibrc to use legend.labelspacing instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.pad is deprecated. Update your matplotlibrc to use legend.borderpad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/rcsetup.py:117: UserWarning: rcParams key numerix is obsolete and has no effect; please delete it from your matplotlibrc file warnings.warn('rcParams key numerix is obsolete and has no effect;\n' /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.axespad is deprecated. Update your matplotlibrc to use legend.borderaxespad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.handletextsep is deprecated. Update your matplotlibrc to use legend.handletextpad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.handlelen is deprecated. Update your matplotlibrc to use legend.handlelength instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) 2009-12-15 08:41:23+0200 [-] Log opened. 2009-12-15 08:41:23+0200 [-] twistd 8.2.0 (/usr/local/src/sage-4.2/local/bin/python 2.6.2) starting up. 2009-12-15 08:41:23+0200 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2009-12-15 08:41:23+0200 [-] twisted.web2.channel.http.HTTPFactory starting on 8000 2009-12-15 08:41:23+0200 [-] Starting factory twisted.web2.channel.http.HTTPFactory instance at 0x5de7488 regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: startup errors
Mike Hansen wrote: Hello, On Tue, Dec 15, 2009 at 1:44 PM, Jan Groenewald j...@aims.ac.za wrote: 0 j...@muizenberg:~$sage -notebook /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os, md5, sys This is fixed in newer Sage releases. /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.labelsep is deprecated. Update your matplotlibrc to use legend.labelspacing instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.pad is deprecated. Update your matplotlibrc to use legend.borderpad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/rcsetup.py:117: UserWarning: rcParams key numerix is obsolete and has no effect; I believe these are issues in your ~/.matplotlibrc file. Yes. Or .sage/matplotlibrc. If you haven't explicitly changed any settings, then it should be safe to just delete .sage/matplotlibrc. The problem is that the matplotlibrc is using settings from an old version of matplotlib. We now use just the defaults, so it is fine to not have the file. Jason -- Jason Grout -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] startup errors
Hi /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os, md5, sys /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.labelsep is deprecated. Update your matplotlibrc to use legend.labelspacing instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.pad is deprecated. Update your matplotlibrc to use legend.borderpad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/rcsetup.py:117: UserWarning: rcParams key numerix is obsolete and has no effect; please delete it from your matplotlibrc file warnings.warn('rcParams key numerix is obsolete and has no effect;\n' /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.axespad is deprecated. Update your matplotlibrc to use legend.borderaxespad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.handletextsep is deprecated. Update your matplotlibrc to use legend.handletextpad instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) /usr/local/src/sage-4.2/local/lib/python2.6/site-packages/matplotlib/__init__.py:681: UserWarning: legend.handlelen is deprecated. Update your matplotlibrc to use legend.handlelength instead. warnings.warn('%s is deprecated. Update your matplotlibrc to use %s instead.'% (key, _deprecated_ignore_map[key])) fixed now: 0 j...@muizenberg:~$rm .sage/matplotlibrc 0 j...@muizenberg:~$sage -- | Sage Version 4.2, Release Date: 2009-10-24 | | Type notebook() for the GUI, and license() for information.| -- Loading Sage library. Current Mercurial branch is: AIMS-autosave-patch sage: regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] MathJax: the next version of jsmath
If you want to see a preview of the MathJax, next version of jsmath, which Davide has been working on for a while, go to: http://www.mathjax.com/?page_id=13 They (the consortium of people that are sponsoring the development) are still working out licensing terms---hopefully terms that will be compatible with inclusion in Sage. They know our requirements (compatible with GPL version 2 or later), and they are keeping those in mind as they work on a licensing agreement. Thanks, Jason -- Jason Grout -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org