[sage-support] Re: accessing sage notebook with android phone
I am noufal a research scholar in mathematics from India. I have downloaded sage from the net and tried to install in my PC but it shows a warning message ¨ This sage install was built on a machine that supports instructions that are not available on this computer. Sage will likely fail with illegal instruction errors! the following processor flags were on the build machine but are not available on this computer. My laptop acer4710 the processsor attached to this is intel dual core T2080 1.73GHz the architecture supports SSE3 but it asks about SSSE3 a modified form of SSE3 can i change this how can i overcome this problem. will you please help me On Wed, Aug 5, 2009 at 12:03 AM, William Stein wrote: > > > On Tue, Aug 4, 2009 at 6:54 AM, Dan Christensen wrote: > >> >> Rado writes: >> >> > Iphone has the same problem that its onscreen keyboard has no tab key >> >> The android does allow you to enter a tab (via Alt-Q), but it just inserts >> a >> tab. >> >> Dan >> > > I think the idea of adding a "complete" button or link or something > somewhere is a very good, since it's useful for the iphone/android, but > would also be useful in other situations. > > William > > > > > -- Noufal.A Research Scholar Department of Mathematics University of Kerala Thiruvananthapuram ph: +919447327154 +919895413300 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: accessing sage notebook with android phone
Hi Noufal, On Wed, Aug 5, 2009 at 7:55 PM, noufal asharaf wrote: > I am noufal a research scholar in mathematics from India. I have downloaded > sage from the net and tried to install in my PC but it shows a warning > message ¨ This sage install was built on a machine that supports > instructions that are not available on this computer. Sage will likely fail > with illegal instruction errors! the following processor flags were on the > build machine but are not available on this computer. My laptop acer4710 the > processsor attached to this is intel dual core T2080 1.73GHz the > architecture supports SSE3 but it asks about SSSE3 a modified form of SSE3 > can i change this how can i overcome this problem. will you please help me I don't know what your operating system is (is it Windows, Linux, Mac OS X, etc?) but my guess is that you have downloaded a binary version of Sage. I have not come across people using Windows or Mac OS X who reported such problems with Sage. So my guess is that you're using a Linux distribution. But which distribution of Linux? If you're using Ubuntu, then, yes, people have reported such problems with Sage binaries for Ubuntu. In that case, some people have had success in using a Debian binary of Sage under Ubuntu, so you might want to try using a Debian binary of Sage under Ubuntu. Another option is to compile Sage from source. Having said that, it's difficult to diagnose the technical issues you're having without knowing the operating system you are using. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: accessing sage notebook with android phone
I am using mandriva2008 spring version I think you can help me to correct the difficulty. Thanks a lot for a genuine and fast reply. On Wed, Aug 5, 2009 at 3:40 PM, Minh Nguyen wrote: > > Hi Noufal, > > On Wed, Aug 5, 2009 at 7:55 PM, noufal asharaf > wrote: > > I am noufal a research scholar in mathematics from India. I have > downloaded > > sage from the net and tried to install in my PC but it shows a warning > > message ¨ This sage install was built on a machine that supports > > instructions that are not available on this computer. Sage will likely > fail > > with illegal instruction errors! the following processor flags were on > the > > build machine but are not available on this computer. My laptop acer4710 > the > > processsor attached to this is intel dual core T2080 1.73GHz the > > architecture supports SSE3 but it asks about SSSE3 a modified form of > SSE3 > > can i change this how can i overcome this problem. will you please help > me > > I don't know what your operating system is (is it Windows, Linux, Mac > OS X, etc?) but my guess is that you have downloaded a binary version > of Sage. I have not come across people using Windows or Mac OS X who > reported such problems with Sage. So my guess is that you're using a > Linux distribution. But which distribution of Linux? If you're using > Ubuntu, then, yes, people have reported such problems with Sage > binaries for Ubuntu. In that case, some people have had success in > using a Debian binary of Sage under Ubuntu, so you might want to try > using a Debian binary of Sage under Ubuntu. Another option is to > compile Sage from source. Having said that, it's difficult to diagnose > the technical issues you're having without knowing the operating > system you are using. > > -- > Regards > Minh Van Nguyen > > > > -- Noufal.A Research Scholar Department of Mathematics University of Kerala Thiruvananthapuram ph: +919447327154 +919895413300 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: request for help
I am using aceraspire 4710 laptop. Processor is pentium T2080 dual core. 1GB RAM with 160GB Hard disk. I have tried sage4.1 to install in Mandriva 2008.1 spring version in KDE desktop. I have downloaded a binary version of sage from the sage website, one which is suitable for Mandriva. but during the installation process a warning message is obtained. which says ¨This sage install was built on a machine that supports instructions that are not available on this computer. Sage will likely fail with illegal instuction errors! the following processor flags were on the build machine but are not on this computer. The missing flag is SSSE3. what can i do to overcome this difficulty. please help me. On Mon, Aug 3, 2009 at 6:29 PM, Dr. David Kirkby wrote: > > noufal wrote: > > i have tried the binary version of sage 4.1 in mandriva 2008 > > version but it is not possible to install please help me > > > I'm unlikely personally to be able to help you, but I would suggest you > give as much information as possible. Like your computer, CPU, memory, > exact operating system. > > And of course, people need to know what the installation problems is. > Without further information, I doubt anyone can help you. > > Dave > > > > -- Noufal.A Research Scholar Department of Mathematics University of Kerala Thiruvananthapuram ph: +919447327154 +919895413300 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: accessing sage notebook with android phone
I am using ACER ASPIRE 4710 laptop. The processor is pentium T2080 dual core. RAM 1GB and 160GB hard disk. I have downloaded a binary version of sage 4.1 which is suitable for mandriva and tried to install in Mandriva 2008.1 spring version in KDE desktop. But during installation a warning message that says This sage was built on a machine that supports instructions that are not available on this computer. Sage will likely fail with illegal instruction errors! the following processor flags were on the build machine but are not available on this computer. The missing processor flag is ssse3. How can i tackle this difficulty please help me. On Wed, Aug 5, 2009 at 3:40 PM, Minh Nguyen wrote: > > Hi Noufal, > > On Wed, Aug 5, 2009 at 7:55 PM, noufal asharaf > wrote: > > I am noufal a research scholar in mathematics from India. I have > downloaded > > sage from the net and tried to install in my PC but it shows a warning > > message ¨ This sage install was built on a machine that supports > > instructions that are not available on this computer. Sage will likely > fail > > with illegal instruction errors! the following processor flags were on > the > > build machine but are not available on this computer. My laptop acer4710 > the > > processsor attached to this is intel dual core T2080 1.73GHz the > > architecture supports SSE3 but it asks about SSSE3 a modified form of > SSE3 > > can i change this how can i overcome this problem. will you please help > me > > I don't know what your operating system is (is it Windows, Linux, Mac > OS X, etc?) but my guess is that you have downloaded a binary version > of Sage. I have not come across people using Windows or Mac OS X who > reported such problems with Sage. So my guess is that you're using a > Linux distribution. But which distribution of Linux? If you're using > Ubuntu, then, yes, people have reported such problems with Sage > binaries for Ubuntu. In that case, some people have had success in > using a Debian binary of Sage under Ubuntu, so you might want to try > using a Debian binary of Sage under Ubuntu. Another option is to > compile Sage from source. Having said that, it's difficult to diagnose > the technical issues you're having without knowing the operating > system you are using. > > -- > Regards > Minh Van Nguyen > > > > -- Noufal.A Research Scholar Department of Mathematics University of Kerala Thiruvananthapuram ph: +919447327154 +919895413300 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: request for help
On Wed, 5 Aug 2009 17:26:31 +0530 noufal asharaf wrote: > I am using aceraspire 4710 laptop. Processor is pentium T2080 dual > core. 1GB RAM with 160GB Hard disk. > I have tried sage4.1 to install in Mandriva 2008.1 spring version in > KDE desktop. I have downloaded a binary version of sage from > the sage website, one which is suitable for Mandriva. but during > the installation process a warning message is obtained. which says > ¨This sage install was built on a machine that supports instructions > that are not available on this computer. Sage will likely fail with > illegal instuction errors! the following processor flags were on the > build machine but are not on this computer. The missing flag is > SSSE3. what can i do to overcome this difficulty. please help me. You should be able to get away with rebuilding the two components of Sage that are likely to have these "illegal instructions", namely mpir and atlas. Try the following: - Go to the directory you installed Sage in - Type ./sage -f mpir-1.2.p4 - Wait till MPIR is compiled & installed, then type ./sage -f atlas-3.8.3.p5 If you haven't already remove the file that keeps the flags for the binary you downloaded: rm local/lib/sage-flags.txt Sage should now start without problems. Cheers, Burcin --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: accessing sage notebook with android phone
> I am noufal a research scholar in mathematics from India. I have > downloaded sage from the net and installed in my PC but it shows a warning > message when we tried to access the notebook by typing notebook(). My laptop > Aceraspire4710 the processsor attached to this is intel pentium dual core > T2080 1.73GHz how can i overcome this problem. will you please help me > > > > > > > > > > > On Wed, Aug 5, 2009 at 12:03 AM, William Stein wrote: > >> >> >> On Tue, Aug 4, 2009 at 6:54 AM, Dan Christensen wrote: >> >>> >>> Rado writes: >>> >>> > Iphone has the same problem that its onscreen keyboard has no tab key >>> >>> The android does allow you to enter a tab (via Alt-Q), but it just >>> inserts a >>> tab. >>> >>> Dan >>> >> >> I think the idea of adding a "complete" button or link or something >> somewhere is a very good, since it's useful for the iphone/android, but >> would also be useful in other situations. >> >> William >> >> >> >> >> > > > -- > Noufal.A > Research Scholar > Department of Mathematics > University of Kerala > Thiruvananthapuram > ph: +919447327154 > +919895413300 > -- Noufal.A Research Scholar Department of Mathematics University of Kerala Thiruvananthapuram ph: +919447327154 +919895413300 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] question about using Sage with Pydev
Hi, I've been trying to get Sage to work with Eclipse/Pydev. From what I've been able to find online, I've done the following. -importing "$SAGE_ROOT/devel/sage-main/" to the project>properties>external source folders -running either "sage -sh" or "source local/bin/sage-env" from $SAGE_ROOT -entering the following code at the start of my python file import sys import os os.environ.__setitem__('SAGE_ROOT', '/home/ggdhines/sage-4.1-linux- Ubuntu_9.04-i686-Linux') os.environ.__setitem__('PATH', os.environ.__getitem__('SAGE_ROOT') + ':' + os.environ.__getitem__('PATH')) os.environ.__setitem__('LD_LIBRARY_PATH', os.environ.__getitem__ ('SAGE_ROOT')+'/local/lib') from sage.all import * However, when I try running the program from inside Eclipse, I get the following error: ImportError: No module named twisted.persisted.styles If I comment out that import line, I just get an error for the next import statement (so its not anything specific about twisted). Any ideas? thanks, Greg --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: question about using Sage with Pydev
Quick addition - I only get this error when trying to run this program from inside Eclipse. When I run it using python on the command prompt, it seems to work. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Sage and medical imaging (i.e. pynifti)
Will it be possible to incorporate access to NIfTI and ANALYZE files in SAGE through PyNIfTI (http://niftilib.sourceforge.net/pynifti/)? SAGE (with NumPy and SciPy) could then be a powerful environment for medical image analysis (much like MATLAB ...). (i) How should one proceed to get the functionality of - sage: import nifti { without problems with $SAGE_HOME/local/lib/python2.6/site-packages/ nifti/_clib.so, 2): Symbol not found: _Xznzclose }? (ii) Will pynifti be considered for inclusion in say Sage 4.2 ? Regards Arvid Lundervold University of Bergen --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage and medical imaging (i.e. pynifti)
On Aug 5, 8:36 pm, Arvid wrote: > Will it be possible to incorporate access to NIfTI and ANALYZE files > in SAGE through PyNIfTI (http://niftilib.sourceforge.net/pynifti/)? Hi, I can't access the sourceforge website right now, but it is "easy" to install additional python packages in sage. They don't need to be included or packaged. Just go into the "sage environment" with "sage - sh" and install the package there. Background: Sage has it's own python and you have to install it there, not system wide python installation. Your actual problem seems to be that additional C/C++ software is missing, it can be installed in the same way. And, I don't think this will be included in sage, soon. The general process is, to first create an experimental or optional package, that can be downloaded and installed. Once many users need it and after a voting it is included as a standard package. H --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Singular timeout?
I was asking SAGE to do a calculation that I knew was probably laborious -- I had a plane curve (over Q) and I wanted its genus. I defined it with C=Curve(equation_in_two_variables) and then typed C.genus() after a while (I was in the notebook) I just got the mysterious error message: delaybeforesend: 0 when I expanded it, at the end there was a lot of stuff, but the relevant line was pexpect.TIMEOUT: Timeout exceeded in read_nonblocking(). command: /u/victor/sage/local/bin/Singular So, there are two questions: a) is it possible to give a more informative error message. It seems obvious that singular just took too long in getting back to sage. b) is it possible to give a longer timeout (if I really want the answer)? Victor --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Singular timeout?
On Wed, Aug 5, 2009 at 1:09 PM, VictorMiller wrote: > > I was asking SAGE to do a calculation that I knew was probably > laborious -- I had a plane curve (over Q) and I wanted its genus. I > defined it with C=Curve(equation_in_two_variables) and then typed > > C.genus() > > after a while (I was in the notebook) I just got the mysterious error > message: > > delaybeforesend: 0 > > when I expanded it, at the end there was a lot of stuff, but the > relevant line was > > pexpect.TIMEOUT: Timeout exceeded in read_nonblocking(). > > command: /u/victor/sage/local/bin/Singular > > So, there are two questions: > > a) is it possible to give a more informative error message. It seems > obvious that singular just took > too long in getting back to sage. This is not obvious to me. That is really weird. Sage should wait forever for any subprocess to return. The time limit on reading is purposely disabled. Weird. Maybe the subprocess really crashed and the error message is just wrong?Or maybe something is screwy with pexpect. Can you post code? Has anybody else seen anything similar? William > b) is it possible to give a longer timeout (if I really want the > answer)? > > Victor > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Singular timeout?
Okay, Here's some code (in case anyone is interested, this was related to a problem that appeared on the math-fun mailing list): def ECurve(n,k): vars = ['a%d_%d'%(n,i) for i in range(k)] v = R.gens() F = FractionField(K) S. = F[] f = (x^n-1)//(x-1) g = x^k + sum([v[i]*x^i for i in range(k)]) c = (f%g).coefficients() return R.ideal([z.numerator() for z in c[1:]).groebner_basis() def Curve1(n,k) I = ECurve(n,k) if len(I) == 0: return I R = I[0].parent() II = R.ideal(I) J = II.elimination_ideal(R.gen()[:-2]) S. = QQ[] phi = R.hom((k-2)*[S(0)] + [b1,b2]) return Curve(phi(J.gens()[0])) C = Curve1(9,3) print C.genus() On Aug 5, 4:12 pm, William Stein wrote: > On Wed, Aug 5, 2009 at 1:09 PM, VictorMiller wrote: > > > > > > > I was asking SAGE to do a calculation that I knew was probably > > laborious -- I had a plane curve (over Q) and I wanted its genus. I > > defined it with C=Curve(equation_in_two_variables) and then typed > > > C.genus() > > > after a while (I was in the notebook) I just got the mysterious error > > message: > > > delaybeforesend: 0 > > > when I expanded it, at the end there was a lot of stuff, but the > > relevant line was > > > pexpect.TIMEOUT: Timeout exceeded in read_nonblocking(). > > > > command: /u/victor/sage/local/bin/Singular > > > So, there are two questions: > > > a) is it possible to give a more informative error message. It seems > > obvious that singular just took > > too long in getting back to sage. > > This is not obvious to me. That is really weird. Sage should wait forever > for any subprocess to return. The time limit on reading is purposely > disabled. Weird. Maybe the subprocess really crashed and the error > message is just wrong? Or maybe something is screwy with pexpect. Can > you post code? Has anybody else seen anything similar? > > William > > > b) is it possible to give a longer timeout (if I really want the > > answer)? > > > Victor > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Singular timeout?
I had a small typo in the last code. The line that said F = FractionField(K) should have read F = FractionField(R) also after the line that starts with "vars = " should be the line R = PolynomialRing(Rationals(),k,vars) On Aug 5, 4:59 pm, VictorMiller wrote: > Okay, Here's some code (in case anyone is interested, this was related > to a problem that appeared on the math-fun mailing list): > > def ECurve(n,k): > vars = ['a%d_%d'%(n,i) for i in range(k)] > v = R.gens() > F = FractionField(K) > S. = F[] > f = (x^n-1)//(x-1) > g = x^k + sum([v[i]*x^i for i in range(k)]) > c = (f%g).coefficients() > return R.ideal([z.numerator() for z in c[1:]).groebner_basis() > def Curve1(n,k) > I = ECurve(n,k) > if len(I) == 0: > return I > R = I[0].parent() > II = R.ideal(I) > J = II.elimination_ideal(R.gen()[:-2]) > S. = QQ[] > phi = R.hom((k-2)*[S(0)] + [b1,b2]) > return Curve(phi(J.gens()[0])) > > C = Curve1(9,3) > > print C.genus() > > On Aug 5, 4:12 pm, William Stein wrote: > > > On Wed, Aug 5, 2009 at 1:09 PM, VictorMiller wrote: > > > > I was asking SAGE to do a calculation that I knew was probably > > > laborious -- I had a plane curve (over Q) and I wanted its genus. I > > > defined it with C=Curve(equation_in_two_variables) and then typed > > > > C.genus() > > > > after a while (I was in the notebook) I just got the mysterious error > > > message: > > > > delaybeforesend: 0 > > > > when I expanded it, at the end there was a lot of stuff, but the > > > relevant line was > > > > pexpect.TIMEOUT: Timeout exceeded in read_nonblocking(). > > > > > > command: /u/victor/sage/local/bin/Singular > > > > So, there are two questions: > > > > a) is it possible to give a more informative error message. It seems > > > obvious that singular just took > > > too long in getting back to sage. > > > This is not obvious to me. That is really weird. Sage should wait forever > > for any subprocess to return. The time limit on reading is purposely > > disabled. Weird. Maybe the subprocess really crashed and the error > > message is just wrong? Or maybe something is screwy with pexpect. Can > > you post code? Has anybody else seen anything similar? > > > William > > > > b) is it possible to give a longer timeout (if I really want the > > > answer)? > > > > Victor > > > -- > > William Stein > > Associate Professor of Mathematics > > University of Washingtonhttp://wstein.org > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Singular timeout?
Another small oops. The offending example should be C = Curve1(9,4) On Aug 5, 5:02 pm, VictorMiller wrote: > I had a small typo in the last code. The line that said > > F = FractionField(K) > > should have read > > F = FractionField(R) > > also after the line that starts with "vars = " should be the line > > R = PolynomialRing(Rationals(),k,vars) > > On Aug 5, 4:59 pm, VictorMiller wrote: > > > Okay, Here's some code (in case anyone is interested, this was related > > to a problem that appeared on the math-fun mailing list): > > > def ECurve(n,k): > > vars = ['a%d_%d'%(n,i) for i in range(k)] > > v = R.gens() > > F = FractionField(K) > > S. = F[] > > f = (x^n-1)//(x-1) > > g = x^k + sum([v[i]*x^i for i in range(k)]) > > c = (f%g).coefficients() > > return R.ideal([z.numerator() for z in c[1:]).groebner_basis() > > def Curve1(n,k) > > I = ECurve(n,k) > > if len(I) == 0: > > return I > > R = I[0].parent() > > II = R.ideal(I) > > J = II.elimination_ideal(R.gen()[:-2]) > > S. = QQ[] > > phi = R.hom((k-2)*[S(0)] + [b1,b2]) > > return Curve(phi(J.gens()[0])) > > > C = Curve1(9,3) > > > print C.genus() > > > On Aug 5, 4:12 pm, William Stein wrote: > > > > On Wed, Aug 5, 2009 at 1:09 PM, VictorMiller > > > wrote: > > > > > I was asking SAGE to do a calculation that I knew was probably > > > > laborious -- I had a plane curve (over Q) and I wanted its genus. I > > > > defined it with C=Curve(equation_in_two_variables) and then typed > > > > > C.genus() > > > > > after a while (I was in the notebook) I just got the mysterious error > > > > message: > > > > > delaybeforesend: 0 > > > > > when I expanded it, at the end there was a lot of stuff, but the > > > > relevant line was > > > > > pexpect.TIMEOUT: Timeout exceeded in read_nonblocking(). > > > > > > > > command: /u/victor/sage/local/bin/Singular > > > > > So, there are two questions: > > > > > a) is it possible to give a more informative error message. It seems > > > > obvious that singular just took > > > > too long in getting back to sage. > > > > This is not obvious to me. That is really weird. Sage should wait > > > forever > > > for any subprocess to return. The time limit on reading is purposely > > > disabled. Weird. Maybe the subprocess really crashed and the error > > > message is just wrong? Or maybe something is screwy with pexpect. Can > > > you post code? Has anybody else seen anything similar? > > > > William > > > > > b) is it possible to give a longer timeout (if I really want the > > > > answer)? > > > > > Victor > > > > -- > > > William Stein > > > Associate Professor of Mathematics > > > University of Washingtonhttp://wstein.org > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Singular timeout?
It seems that what I posted about must have been caused by some other error (memory leak?). When I tried to do the same calculation again in the same worksheet, I got a different error about recursion depth being exceeded. So I quit the worksheet and started it over again. This time the calculation completed. Victor On Aug 5, 5:02 pm, VictorMiller wrote: > I had a small typo in the last code. The line that said > > F = FractionField(K) > > should have read > > F = FractionField(R) > > also after the line that starts with "vars = " should be the line > > R = PolynomialRing(Rationals(),k,vars) > > On Aug 5, 4:59 pm, VictorMiller wrote: > > > Okay, Here's some code (in case anyone is interested, this was related > > to a problem that appeared on the math-fun mailing list): > > > def ECurve(n,k): > > vars = ['a%d_%d'%(n,i) for i in range(k)] > > v = R.gens() > > F = FractionField(K) > > S. = F[] > > f = (x^n-1)//(x-1) > > g = x^k + sum([v[i]*x^i for i in range(k)]) > > c = (f%g).coefficients() > > return R.ideal([z.numerator() for z in c[1:]).groebner_basis() > > def Curve1(n,k) > > I = ECurve(n,k) > > if len(I) == 0: > > return I > > R = I[0].parent() > > II = R.ideal(I) > > J = II.elimination_ideal(R.gen()[:-2]) > > S. = QQ[] > > phi = R.hom((k-2)*[S(0)] + [b1,b2]) > > return Curve(phi(J.gens()[0])) > > > C = Curve1(9,3) > > > print C.genus() > > > On Aug 5, 4:12 pm, William Stein wrote: > > > > On Wed, Aug 5, 2009 at 1:09 PM, VictorMiller > > > wrote: > > > > > I was asking SAGE to do a calculation that I knew was probably > > > > laborious -- I had a plane curve (over Q) and I wanted its genus. I > > > > defined it with C=Curve(equation_in_two_variables) and then typed > > > > > C.genus() > > > > > after a while (I was in the notebook) I just got the mysterious error > > > > message: > > > > > delaybeforesend: 0 > > > > > when I expanded it, at the end there was a lot of stuff, but the > > > > relevant line was > > > > > pexpect.TIMEOUT: Timeout exceeded in read_nonblocking(). > > > > > > > > command: /u/victor/sage/local/bin/Singular > > > > > So, there are two questions: > > > > > a) is it possible to give a more informative error message. It seems > > > > obvious that singular just took > > > > too long in getting back to sage. > > > > This is not obvious to me. That is really weird. Sage should wait > > > forever > > > for any subprocess to return. The time limit on reading is purposely > > > disabled. Weird. Maybe the subprocess really crashed and the error > > > message is just wrong? Or maybe something is screwy with pexpect. Can > > > you post code? Has anybody else seen anything similar? > > > > William > > > > > b) is it possible to give a longer timeout (if I really want the > > > > answer)? > > > > > Victor > > > > -- > > > William Stein > > > Associate Professor of Mathematics > > > University of Washingtonhttp://wstein.org > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage and medical imaging (i.e. pynifti)
I gave this a shot but it seems its not trivial to install. 1) I installed pymvpa with: pymvpa-0.4.2: sage -python setup.py build_ext 2) I installed the nifti c libraries with: nifticlib-1.1.0: make all 2b) then I copied everything in the bin, lib, and include directories into the corresponding SAGE_LOCAL places. 3) Then I tried to install pynifti but had trouble. Going into a sage shell: pynifti-0.20090303.1: sage -sh building with: pynifti-0.20090303.1: python setup.py build and installing with: pynifti-0.20090303.1: python setup.py install seems to go OK but when I try to test I get an error: pynifti-0.20090303.1: sage -python Python 2.6.2 (r262:71600, Jul 16 2009, 10:01:32) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import nifti Traceback (most recent call last): File "", line 1, in File "nifti/__init__.py", line 21, in from nifti.image import NiftiImage, MemMappedNiftiImage File "nifti/image.py", line 27, in import nifti.clib as ncl ImportError: No module named clib ...I'm not sure how to proceed. This looks like a nice opportunity for Sage to become more relevant in biomedical imaging. -Marshall Hampton On Aug 5, 1:46 pm, Harald Schilly wrote: > On Aug 5, 8:36 pm, Arvid wrote: > > > Will it be possible to incorporate access to NIfTI and ANALYZE files > > in SAGE through PyNIfTI (http://niftilib.sourceforge.net/pynifti/)? > > Hi, I can't access the sourceforge website right now, but it is "easy" > to install additional python packages in sage. They don't need to be > included or packaged. Just go into the "sage environment" with "sage - > sh" and install the package there. Background: Sage has it's own > python and you have to install it there, not system wide python > installation. > Your actual problem seems to be that additional C/C++ software is > missing, it can be installed in the same way. > And, I don't think this will be included in sage, soon. The general > process is, to first create an experimental or optional package, that > can be downloaded and installed. Once many users need it and after a > voting it is included as a standard package. > > H --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage and medical imaging (i.e. pynifti)
On Wed, Aug 5, 2009 at 8:09 PM, Marshall Hampton wrote: > > I gave this a shot but it seems its not trivial to install. > > 1) I installed pymvpa with: > > pymvpa-0.4.2: sage -python setup.py build_ext > > 2) I installed the nifti c libraries with: > > nifticlib-1.1.0: make all > > 2b) then I copied everything in the bin, lib, and include directories > into the corresponding SAGE_LOCAL places. > > 3) Then I tried to install pynifti but had trouble. Going into a sage > shell: > > pynifti-0.20090303.1: sage -sh > > building with: > > pynifti-0.20090303.1: python setup.py build > > and installing with: > > pynifti-0.20090303.1: python setup.py install > > seems to go OK but when I try to test I get an error: > > pynifti-0.20090303.1: sage -python > Python 2.6.2 (r262:71600, Jul 16 2009, 10:01:32) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import nifti > Traceback (most recent call last): > File "", line 1, in > File "nifti/__init__.py", line 21, in >from nifti.image import NiftiImage, MemMappedNiftiImage > File "nifti/image.py", line 27, in >import nifti.clib as ncl > ImportError: No module named clib > > ...I'm not sure how to proceed. I recommend emailing the developers of pynifti and see if they care about getting it to install into Sage.If so, obviously they could install Sage and try the above, but with their added knowledge of pynifti, they might succeed... -- William > > > This looks like a nice opportunity for Sage to become more relevant in > biomedical imaging. > > -Marshall Hampton > > On Aug 5, 1:46 pm, Harald Schilly wrote: > > On Aug 5, 8:36 pm, Arvid wrote: > > > > > Will it be possible to incorporate access to NIfTI and ANALYZE files > > > in SAGE through PyNIfTI (http://niftilib.sourceforge.net/pynifti/)? > > > > Hi, I can't access the sourceforge website right now, but it is "easy" > > to install additional python packages in sage. They don't need to be > > included or packaged. Just go into the "sage environment" with "sage - > > sh" and install the package there. Background: Sage has it's own > > python and you have to install it there, not system wide python > > installation. > > Your actual problem seems to be that additional C/C++ software is > > missing, it can be installed in the same way. > > And, I don't think this will be included in sage, soon. The general > > process is, to first create an experimental or optional package, that > > can be downloaded and installed. Once many users need it and after a > > voting it is included as a standard package. > > > > H > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: accessing sage notebook with android phone
As Minh, mentioned, you could try a different binary, or just compile from source. Compiling from source isn't too hard, and has the advantage that upgrading to newer versions is faster. It should take roughly 1 hour or so to compile. source for sage-4.1: http://www.sagemath.org/src/sage-4.1.tar (you might want to use a mirror) source installation guide: http://www.sagemath.org/doc/installation/source.html -M. Hampton On Aug 5, 7:07 am, noufal asharaf wrote: > I am using ACER ASPIRE 4710 laptop. The processor is pentium T2080 dual > core. RAM 1GB and 160GB hard disk. I have downloaded a binary > version of sage 4.1 which is suitable for mandriva and tried to install > in Mandriva 2008.1 spring version in KDE desktop. But during installation a > warning message that says This sage was built on a machine that supports > instructions that are not available on this computer. Sage will likely fail > with illegal instruction errors! the following processor flags were on the > build machine but are not available on this computer. The missing processor > flag is ssse3. How can i tackle this difficulty please help me. > > > > On Wed, Aug 5, 2009 at 3:40 PM, Minh Nguyen wrote: > > > Hi Noufal, > > > On Wed, Aug 5, 2009 at 7:55 PM, noufal asharaf > > wrote: > > > I am noufal a research scholar in mathematics from India. I have > > downloaded > > > sage from the net and tried to install in my PC but it shows a warning > > > message ¨ This sage install was built on a machine that supports > > > instructions that are not available on this computer. Sage will likely > > fail > > > with illegal instruction errors! the following processor flags were on > > the > > > build machine but are not available on this computer. My laptop acer4710 > > the > > > processsor attached to this is intel dual core T2080 1.73GHz the > > > architecture supports SSE3 but it asks about SSSE3 a modified form of > > SSE3 > > > can i change this how can i overcome this problem. will you please help > > me > > > I don't know what your operating system is (is it Windows, Linux, Mac > > OS X, etc?) but my guess is that you have downloaded a binary version > > of Sage. I have not come across people using Windows or Mac OS X who > > reported such problems with Sage. So my guess is that you're using a > > Linux distribution. But which distribution of Linux? If you're using > > Ubuntu, then, yes, people have reported such problems with Sage > > binaries for Ubuntu. In that case, some people have had success in > > using a Debian binary of Sage under Ubuntu, so you might want to try > > using a Debian binary of Sage under Ubuntu. Another option is to > > compile Sage from source. Having said that, it's difficult to diagnose > > the technical issues you're having without knowing the operating > > system you are using. > > > -- > > Regards > > Minh Van Nguyen > > -- > Noufal.A > Research Scholar > Department of Mathematics > University of Kerala > Thiruvananthapuram > ph: +919447327154 > +919895413300 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage and medical imaging (i.e. pynifti)
Maybe this was some sort of path issue I don't understand, but when I tried things again it seemed to work, i.e. if I go into my SAGE_ROOT folder and use either sage or the sage python, the "import nifti" works. So what I described above seems to be sufficient, and this could be made into an spkg. I will give that a try tomorrow if I can find the time. -Marshall Hampton On Aug 5, 10:12 pm, William Stein wrote: > On Wed, Aug 5, 2009 at 8:09 PM, Marshall Hampton wrote: > > > > > > > I gave this a shot but it seems its not trivial to install. > > > 1) I installed pymvpa with: > > > pymvpa-0.4.2: sage -python setup.py build_ext > > > 2) I installed the nifti c libraries with: > > > nifticlib-1.1.0: make all > > > 2b) then I copied everything in the bin, lib, and include directories > > into the corresponding SAGE_LOCAL places. > > > 3) Then I tried to install pynifti but had trouble. Going into a sage > > shell: > > > pynifti-0.20090303.1: sage -sh > > > building with: > > > pynifti-0.20090303.1: python setup.py build > > > and installing with: > > > pynifti-0.20090303.1: python setup.py install > > > seems to go OK but when I try to test I get an error: > > > pynifti-0.20090303.1: sage -python > > Python 2.6.2 (r262:71600, Jul 16 2009, 10:01:32) > > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import nifti > > Traceback (most recent call last): > > File "", line 1, in > > File "nifti/__init__.py", line 21, in > >from nifti.image import NiftiImage, MemMappedNiftiImage > > File "nifti/image.py", line 27, in > >import nifti.clib as ncl > > ImportError: No module named clib > > > ...I'm not sure how to proceed. > > I recommend emailing the developers of pynifti and see if they care about > getting it to install into Sage.If so, obviously they could install Sage > and try the above, but with their added knowledge of pynifti, they might > succeed... > > -- William > > > > > > > This looks like a nice opportunity for Sage to become more relevant in > > biomedical imaging. > > > -Marshall Hampton > > > On Aug 5, 1:46 pm, Harald Schilly wrote: > > > On Aug 5, 8:36 pm, Arvid wrote: > > > > > Will it be possible to incorporate access to NIfTI and ANALYZE files > > > > in SAGE through PyNIfTI (http://niftilib.sourceforge.net/pynifti/)? > > > > Hi, I can't access the sourceforge website right now, but it is "easy" > > > to install additional python packages in sage. They don't need to be > > > included or packaged. Just go into the "sage environment" with "sage - > > > sh" and install the package there. Background: Sage has it's own > > > python and you have to install it there, not system wide python > > > installation. > > > Your actual problem seems to be that additional C/C++ software is > > > missing, it can be installed in the same way. > > > And, I don't think this will be included in sage, soon. The general > > > process is, to first create an experimental or optional package, that > > > can be downloaded and installed. Once many users need it and after a > > > voting it is included as a standard package. > > > > H > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---