[sage-support] Re: Sage on openSUSE 11.2
Hi, 2009/12/4 Nicolás Sirolli nmsiro...@gmail.com: Hello. I'm sorry to bother you (I'm not even certain if it's you I should be writing for this). Are you planning to upload an openSUSE rpm for the 11.2 version soon? Thanks in advance, Nicolás. We currently distribute binaries for openSUSE 11.1 because that version of openSUSE is the version that we have on the build farm. To distribute binaries for openSUSE 11.2 or any newer versions of openSUSE would require an upgrade of the relevant build machines on the build farm. I notice that openSUSE 11.2 was released on November 12th, 2009, which makes it rather new. It would be some time, say, another version or two of Sage, before the build farm is upgraded to contain openSUSE 11.2. There has been reports of problems building Sage on openSUSE 11.2. I think this is in part due to incompatible libreadline libraries. Sage distributes its own libreadline, but openSUSE's version of libreadline has been causing lots of problems for us. Now that openSUSE 11.2 is out, I'm not surprised that the libreadline problem has resurfaced for that version. Many people including myself don't have access to a machine running openSUSE 11.2 so we can't fix the problems with build failures on openSUSE 11.2. Like most open source projects, the Sage project often lacks relevant resources to fix bugs, implement enhancements, and getting Sage to build on as many platforms and CPU architectures as possible. -- Regards Minh Van Nguyen -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] install error with opensuse 11.2
Hi Rick, On Thu, Dec 3, 2009 at 10:18 AM, Rick Smegal rsme...@aardvarr.ca wrote: SNIP If I get an opportunity to dig into this and find a cure, I'll pass it along, otherwise, I hope this is of interest to someone. I have uploaded an updated readline package [1]. Here are the steps to build Sage 4.2.1 with this updated package: 1. Download a source tarball of Sage 4.2.1. Disregard this step if you have already downloaded this tarball. 2. Uncompress the tarball to a directory you have read and write permissions, e.g. your home directory. 3. Remove the readline package that comes with Sage 4.2.1. You can work through this step as follows. Say SAGE_ROOT is the root directory of the uncompressed Sage tarball. From a bash shell, do: cd SAGE_ROOT/spkg/standard rm -f readline-6.0.spkg 4. Download the updated readline package from this sage.math [1] directory. Then copy it over to the directory SAGE_ROOT/spkg/standard. 5. cd to SAGE_ROOT and issue make. This should start Sage's build process to compile Sage with the newer readline package. I make no guarantees that this updated package would work for you because I don't have access to any openSUSE 11.2 machine in order to test. However, please report any problems that you encounter while building Sage with this newer readline package. [1] http://sage.math.washington.edu/home/mvngu/release/spkg/standard/readline/readline-6.0.p0.spkg -- Regards Minh Van Nguyen -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] sagenb popup
FYI, just started getting this pop-up today on sagenb.com. Things are working fine once I get past this. It looks like jsMath failed to set up properly (error code -7). I will try to keep going, but it could get ugly. -d -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'
Dear Robert, I removed the maps *.lcd: no solution. I cleaned my registry: no solution I restarted my computer: no solution . I became angry and I saved all disk*.* files, I installed Sage for Windows again and replaced the new disk*.* files with the old files Guess what: problem solved! Maybe something for FAQ if people experience a SIGSEGV ERROR. Thanks for all your support. Roland On 3 dec, 05:45, Robert Bradshaw rober...@math.washington.edu wrote: On Dec 1, 2009, at 9:24 PM, dimpase wrote: well, you probably just need to remove some stale locks. That is, somewhere on the VM, there is a place where files indicating busy status of a particular volume, so-called locks, are stored. On Windows hosts, they have .lck extensions. So you need to remove the one that is causing you the trouble. However, a VM reboot should have taken care of it. (YMMV: It has been ages since I worked with VMware, so I might sound vague on this) In other words, are there any .lck files sitting around your virtual disks that you should delete, like a D:\Program Files\Sage\sage- vmware-4.1\disk.vmdk.lck? . That alone might solve the problem. - Robert -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: dense matrix over the ring
Thanks for your valuable response, and the problem is not printing the array, more well is to calculate it. Now another question is that sage seems only supports to calculate matrix of size 2047 x 2047. When I want to calculate matrix of 2048 x 2048, sage sends me a message of error allocating memory, and i require matrix of a minum size 3000 x 3000. What I can do in this case? If there's no solution to this, do you know another software that supports this sizes of matrix? Genaro Alfonso -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'
Glad you finally got this working. You should report this upstream to vmware as well, as it sounds like a bug in their emulator. - Robert P.S. Just in case, there is a download all option on the notebook that you might want to use :). On Dec 3, 2009, at 11:35 AM, Rolandb wrote: Dear Robert, I removed the maps *.lcd: no solution. I cleaned my registry: no solution I restarted my computer: no solution . I became angry and I saved all disk*.* files, I installed Sage for Windows again and replaced the new disk*.* files with the old files Guess what: problem solved! Maybe something for FAQ if people experience a SIGSEGV ERROR. Thanks for all your support. Roland On 3 dec, 05:45, Robert Bradshaw rober...@math.washington.edu wrote: On Dec 1, 2009, at 9:24 PM, dimpase wrote: well, you probably just need to remove some stale locks. That is, somewhere on the VM, there is a place where files indicating busy status of a particular volume, so-called locks, are stored. On Windows hosts, they have .lck extensions. So you need to remove the one that is causing you the trouble. However, a VM reboot should have taken care of it. (YMMV: It has been ages since I worked with VMware, so I might sound vague on this) In other words, are there any .lck files sitting around your virtual disks that you should delete, like a D:\Program Files\Sage\sage- vmware-4.1\disk.vmdk.lck? . That alone might solve the problem. - Robert -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: dense matrix over the ring
On Dec 3, 2009, at 12:07 PM, Gennaro Alphonse wrote: Thanks for your valuable response, and the problem is not printing the array, more well is to calculate it. Now another question is that sage seems only supports to calculate matrix of size 2047 x 2047. When I want to calculate matrix of 2048 x 2048, sage sends me a message of error allocating memory, and i require matrix of a minum size 3000 x 3000. What I can do in this case? If there's no solution to this, do you know another software that supports this sizes of matrix? People routinely use matrices larger than this in Sage. Works fine for me sage: m = matrix(ZZ, 3000, 3000) sage: m 3000 x 3000 dense matrix over Integer Ring The only limit that I know of for *dense* matrices is 4294967296 rows/ columns on 32-bit machines, (18446744073709551616 on 64-bit machines), and the memory constraints (which wouldn't let you have that many elements anyways). You're probably actually running out of memory. Did you check that? What exact command are you trying to run that fails? - Robert -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] large upload fails
I backed up my worksheets in a download_worksheets.zip file. The file is 63M large. Now I'm trying to upload it and the upload is failing. Is there any way of getting the zip file uploaded or installed (maybe I can just unzip it somewhere)? Tom -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] losing confidence in Sage notebooks
I have created a pretty large number of worksheets over the last year for courses in pattern recognition and image processing. Unfortunately, I keep having problems with sage versioning. For example, I had renamed worksheets to have a more consistent naming structure, but many of the new names actually have reverted suddenly. Within individual worksheets, I find that sometimes there are remnants of output left from previous expressions that have been deleted. I've also had problems with the notebook seemingly getting out of sync and text randomly appearing or disappearing occasionally. This is with up-to-date versions of Sage running on the latest Ubuntu 9.10, and recent versions of Firefox. I'm kind of losing trust in the Sage notebook and the Sage server. It seems like my notebooks are always at risk. I've dealt with buggy software before, but what's so frustrating about Sage is that there is nothing I can really do to back things up or version them. Even downloading all the notebooks as a zip file fails with some frequency and takes forever even if it works, and now I can't even upload the manual backups I created. Is there any light at the end of the tunnel? Are there any new facilities on the horizon for versioning and copying notebooks? One thing that would help a great deal is if notebooks were actually stored in a Mercurial repository and versioned using Mercurial. That way, I could pull/backup copies directly, synchronize Sage installations, and have a much more reliable record of the history of the collection of notebooks. Tom -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] large upload fails
On Dec 3, 2009, at 4:51 PM, tmbdev wrote: I backed up my worksheets in a download_worksheets.zip file. The file is 63M large. Now I'm trying to upload it and the upload is failing. Is there any way of getting the zip file uploaded or installed (maybe I can just unzip it somewhere)? You can unzip it like any other zip file. You can then upload them one by one, or zip a smaller number of them together and upload in several passes. - Robert -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] losing confidence in Sage notebooks
2009/12/3 tmb tmb...@gmail.com: I have created a pretty large number of worksheets over the last year for courses in pattern recognition and image processing. Unfortunately, I keep having problems with sage versioning. For example, I had renamed worksheets to have a more consistent naming structure, but many of the new names actually have reverted suddenly. Within individual worksheets, I find that sometimes there are remnants of output left from previous expressions that have been deleted. I've also had problems with the notebook seemingly getting out of sync and text randomly appearing or disappearing occasionally. This is with up-to-date versions of Sage running on the latest Ubuntu 9.10, and recent versions of Firefox. I'm kind of losing trust in the Sage notebook and the Sage server. It seems like my notebooks are always at risk. I've dealt with buggy software before, but what's so frustrating about Sage is that there is nothing I can really do to back things up or version them. Even downloading all the notebooks as a zip file fails with some frequency and takes forever even if it works, and now I can't even upload the manual backups I created. Is there any light at the end of the tunnel? Are there any new facilities on the horizon for versioning and copying notebooks? One thing that would help a great deal is if notebooks were actually stored in a Mercurial repository and versioned using Mercurial. That way, I could pull/backup copies directly, synchronize Sage installations, and have a much more reliable record of the history of the collection of notebooks. You can put the .sage/sage_notebook.sagenb/home/ directory under revision control. You should probably only hg add the worksheet.html and worksheet_conf.pickle files, and ignore everything else. -- William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] losing confidence in Sage notebooks
On Dec 3, 2009, at 5:18 PM, tmb wrote: I have created a pretty large number of worksheets over the last year for courses in pattern recognition and image processing. Unfortunately, I keep having problems with sage versioning. For example, I had renamed worksheets to have a more consistent naming structure, but many of the new names actually have reverted suddenly. Within individual worksheets, I find that sometimes there are remnants of output left from previous expressions that have been deleted. I've also had problems with the notebook seemingly getting out of sync and text randomly appearing or disappearing occasionally. This is with up-to-date versions of Sage running on the latest Ubuntu 9.10, and recent versions of Firefox. I'm kind of losing trust in the Sage notebook and the Sage server. It seems like my notebooks are always at risk. I've dealt with buggy software before, but what's so frustrating about Sage is that there is nothing I can really do to back things up or version them. One thing you could do is submit bug reports, especially with reproducible answers. Even downloading all the notebooks as a zip file fails with some frequency and takes forever even if it works, and now I can't even upload the manual backups I created. Is there any light at the end of the tunnel? I think so. The notebook was recently split out of the Sage library, which may have introduced new bugs, but is probably going to be worked on a lot more this next month as well. Throughout most of its history the notebook has been relatively stable (for me at least). Are there any new facilities on the horizon for versioning and copying notebooks? The notebook used to save snapshots very often, with the downside that the worksheet directories got huge. There's definitely the demand to put that in in some form or another. Other bugs may have been introduced with the switch of the notebook to a separate spkg rather than as part of the library itself. One thing that would help a great deal is if notebooks were actually stored in a Mercurial repository and versioned using Mercurial. That way, I could pull/backup copies directly, synchronize Sage installations, and have a much more reliable record of the history of the collection of notebooks. We've actually talked about doing this, it would probably not be too hard--the notebook is easily represented as a huge text file. I don't know if mercurial diffs would be any good at trying to merge notebook histories, but certainly for going back and forth. - Robert -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] large upload fails
2009/12/3 Robert Bradshaw rober...@math.washington.edu: On Dec 3, 2009, at 4:51 PM, tmbdev wrote: I backed up my worksheets in a download_worksheets.zip file. The file is 63M large. Now I'm trying to upload it and the upload is failing. Is there any way of getting the zip file uploaded or installed (maybe I can just unzip it somewhere)? What server are you uploading them into? sagenb.org? Your desktop? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: dense matrix over the ring
2009/12/3 Gennaro Alphonse gena...@gmail.com: Thanks for your valuable response, and the problem is not printing the array, more well is to calculate it. Now another question is that sage seems only supports to calculate matrix of size 2047 x 2047. When I want to calculate matrix of 2048 x 2048, sage sends me a message of error allocating memory, and i require matrix of a minum size 3000 x 3000. You have to change the virtual machine and *explicitly* allocate more memory to it. The default is 512MB (I think), so you'll want to increase that, perhaps by a lot. -- William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Memory problem?
Hi, I encounterd a memory problem. The file can be found on http://www.sagenb.org/home/rolandb/3/ ( http://:/home/pub/1204 ), and is also listed below. I use version 4.1, Windows. Although it seems a simple set of lines, after two/three minutes my hard disk starts to make a lot of noise and often I have to reboot the whole computer. Why? sage: R.A,B,C=QQ[] sage: slimme_formule=[(A^5, 5*A^4*B + 10*A^3*B^2 + 10*A^2*B^3 + 5*A*B^4 + B^5, C^5), (A^5, sage: B^5, A^4*C - A^3*B*C + A^2*B^2*C - A*B^3*C + B^4*C), (A^4 + 6*A^3*B + sage: 12*A^2*B^2 + 8*A*B^3, 2*A*B^3 + 3*B^4, A*C^3 + 3*B*C^3), (-A^4 + sage: 2*A^2*C^2, 4*A^2*B^2 + 4*A*B^3 + B^4, C^4), (A^4 + 4*A^3*B + 6*A^2*B^2, sage: 4*A*B^3 + B^4, C^4), (A^4, 4*A*B^3 + 3*B^4, A^2*C^2 - 2*A*B*C^2 + sage: 3*B^2*C^2), (A^4, A^3*C - A^2*B*C + A*B^2*C - B^3*C, B^4), (A^4, 2*A^3*B sage: + A^2*B^2 + 2*A*B*C^2 + B^2*C^2, C^4), (A^4, 2*A^2*C^2 - C^4, 4*A^2*B^2 sage: + 4*A*B^3 + B^4), (-A^4 + 2*A^3*B, 2*A*B^3 - B^4, A^3*C - 3*A^2*B*C + sage: 3*A*B^2*C - B^3*C), (A^2*B^2 + 2*A*B^3 + A^2*C^2 + 2*A*B*C^2, B^4, C^4), sage: (A^4 + 4*A^3*B + 4*A^2*B^2, -2*B^2*C^2 + C^4, B^4), (A^3, 9*A^2*B + sage: 6*A*B^2 + B^3, 4*A*C^2 + B*C^2), (A^3 + 3*A^2*B + 3*A*B^2, B^3, C^3), sage: (A^3, A*C^2 - 2*B*C^2, 3*A*B^2 + 2*B^3), (A^3, 3*A^2*B + 3*A*B^2 + B^3, sage: C^3), (A^3, B^3, A^2*C - A*B*C + B^2*C), (A^3 + 6*A^2*B + 9*A*B^2, B^3, sage: A*C^2 + 4*B*C^2), (A^3 + 3*A^2*B, 3*A*B^2 + B^3, C^3), (2*A^3 + 3*A^2*B, sage: 2*A*C^2 - B*C^2, B^3), (A^2, 2*A*B + B^2, C^2), (A^2, A*C - B*C, B^2), sage: (A^2 + 2*A*B, B^2, C^2)] sage: R.A,B,C=QQ[] sage: def minimaal(expr): ... uit=1 ... for w in (expr.subs(C=A+B)).factor(): ... mogelijk=[w[0],w[0].subs(A=C-B),w[0].subs(B=C-A)] ... keuze=map(lambda x: len(x.dict()),mogelijk) ... uit=uit*mogelijk[keuze.index(min(keuze))]^w[1] ... return uit ... sage: minimaal((A+B)^6*(2*A+B)^2*A^3*B^4).factor() (2*A + B)^2 * A^3 * B^4 * C^6 sage: def vulin(exp1,exp2): ... R.D,E,F=QQ[] ... return tuple(map(lambda x: minimaal(x.subs(A=D,B=E,C=F).subs (D=exp2[0],E=exp2[1],F=exp2[2])),exp1)) ... sage: R.A,B,C=QQ[] sage: exp1=(A^2, -A*C + B*C, B^2) sage: exp2=(A*B + A*C, B^2, C^2) sage: vulin(exp1,exp2) (A^4 + 4*A^3*B + 4*A^2*B^2, -2*B^2*C^2 + C^4, B^4) sage: def succes(ABC_trio): ... slim=False ... faktoren=list(prod(ABC_trio).subs(C=A+B).factor()) ... tel_fact=sum([w[1] for w in faktoren if w[0] not in [A,B,A +B]])-1 ... if tel_fact==-1: tel_fact=1 ... tel_ABC=sum([w[1] for w in faktoren if w[0] in [A,B,A+B]]) ... test=tel_fact+2*tel_ABC-(7/2)*(max(map(lambda x:x.degree (),ABC_trio))-1) ... if test6: slim=True ... return slim ... ... sage: print succes((A^4, A^3*B + 2*A^3*C + 3*B^3*C + 3*A*B*C^2 - 2*A*C^3, 3*A*B^3 + 3*B^4 - 3*A^2*B*C - B*C^3 + C^4)) sage: print succes((A,B,C)) True True sage: R.A,B,C=QQ[] sage: aantal=23 sage: groot_slim=[] sage: for exp1 in slimme_formule[:aantal]: ... for exp2 in slimme_formule[:aantal]: ... exp12=vulin(exp1,exp2) ... for exp3 in slimme_formule[:aantal]: ... nwerelatie=vulin(exp12,exp3) ... if succes(nwerelatie): ... gevonden=tuple(map(lambda x: slimme_formule.index (x),[exp1,exp2,exp3])) ... print gevonden, ... groot_slim.append(gevonden) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] matrix restrict only works with row vectors.
The following code breakes with ArithmeticError: subspace is not invariant under matrix since sage assumes that vectors are left vectors. However there is no restrict_right nor restrict_left methods. V=VectorSpace(QQ,3) W=V.subspace_with_basis([[0,1,0],[1,1,0]]) M=matrix(ZZ,3,3,[1,0,1,1,0,0,0,0,1]) show(W) show(M) show(M.restrict(W)) The fix is simple def restrict_right(W): return (W.transpose().restrict(W)).transpose() I guess the same assumptions are made for restrict_domain and restrict_codomain V=VectorSpace(QQ,3) W=V.subspace_with_basis([[0,1,0],[1,1,0]]) M=matrix(ZZ,3,3,[1,0,1,1,0,0,0,0,1]) show(W) show(M) show(M.restrict(W)) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: matrix restrict only works with row vectors.
Sorry; the function I wrote is wrong: def restrict_right(M,W): return (M.transpose().restrict(W)).transpose() On Dec 3, 11:23 pm, adrian nihilalienumcr...@gmail.com wrote: The following code breakes with ArithmeticError: subspace is not invariant under matrix since sage assumes that vectors are left vectors. However there is no restrict_right nor restrict_left methods. V=VectorSpace(QQ,3) W=V.subspace_with_basis([[0,1,0],[1,1,0]]) M=matrix(ZZ,3,3,[1,0,1,1,0,0,0,0,1]) show(W) show(M) show(M.restrict(W)) The fix is simple def restrict_right(W): return (W.transpose().restrict(W)).transpose() I guess the same assumptions are made for restrict_domain and restrict_codomain V=VectorSpace(QQ,3) W=V.subspace_with_basis([[0,1,0],[1,1,0]]) M=matrix(ZZ,3,3,[1,0,1,1,0,0,0,0,1]) show(W) show(M) show(M.restrict(W)) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org