[sage-support] Re: How set UTF8 on the sage Notebook published page automatically?
On Feb 8, 8:01 pm, Dan Drake wrote: > On Sun, 08 Feb 2009 at 06:47PM -0800, NoSyu wrote: > > Thanks to reply my post. > > > Actually, in firefox it works well. > > > But as you know, Windows IE is popular Web browser. Therefore I can't > > say 'You should use firefox to see this comments' to all users. > > I am painfully aware of how popular IE is! Well, I tested the worksheet and with Safari on OSX I also had to manually select UTF-8 to see the comments correctly, so it isn't only IE :) Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: interact input box problem
I'm able to reproduce this on sagenb.org on a Mac with FF3. On Sun, Feb 8, 2009 at 11:00 PM, kcrisman wrote: > > Dear Support, > > On sagenb.org, try making an interact with an input box explicitly > defined, e.g. > > @interact > def plotfunction(f=input_box(x^2)): >P=plot(f,0,1) >show(P) > > It works fine in the sense that whatever you type in does what it > should. But what's up with how the input box appears? It's even > worse on my box (PPC OSX.4) - the initial input does not show up *at > all* in the box, though again the plot is fine and once you type > something in it behaves normally. > > Any suggestions as to what I'm doing wrong would be appreciated. Or > is it still fallout from TinyMCE or something like that? > > Thanks, > - kcrisman > > > --~--~-~--~~~---~--~~ 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: How set UTF8 on the sage Notebook published page automatically?
Thanks to fix this problem. Have a nice day~^^ On 2월9일, 오후1시01분, Dan Drake wrote: > On Sun, 08 Feb 2009 at 06:47PM -0800, NoSyu wrote: > > Thanks to reply my post. > > > Actually, in firefox it works well. > > > But as you know, Windows IE is popular Web browser. Therefore I can't > > say 'You should use firefox to see this comments' to all users. > > I am painfully aware of how popular IE is! > > > I suggests that the meta html code is added to all notebook page like > > this > > > > > This is a great idea, and I'm surprised that the notebook server doesn't > do this already. This sort of issue is already known: > >http://trac.sagemath.org/sage_trac/ticket/1477 > > ...but maybe I could get a quick patch in that would fix this. I've made > a new ticket for your suggestion: > > http://trac.sagemath.org/sage_trac/ticket/5211 > > Dan > > -- > --- Dan Drake > - KAIST Department of Mathematical Sciences > --- http://mathsci.kaist.ac.kr/~drake > > signature.asc > < 1K보기다운로드 --~--~-~--~~~---~--~~ 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: How set UTF8 on the sage Notebook published page automatically?
On Sun, 08 Feb 2009 at 06:47PM -0800, NoSyu wrote: > Thanks to reply my post. > > Actually, in firefox it works well. > > But as you know, Windows IE is popular Web browser. Therefore I can't > say 'You should use firefox to see this comments' to all users. I am painfully aware of how popular IE is! > I suggests that the meta html code is added to all notebook page like > this > > This is a great idea, and I'm surprised that the notebook server doesn't do this already. This sort of issue is already known: http://trac.sagemath.org/sage_trac/ticket/1477 ...but maybe I could get a quick patch in that would fix this. I've made a new ticket for your suggestion: http://trac.sagemath.org/sage_trac/ticket/5211 Dan -- --- Dan Drake - KAIST Department of Mathematical Sciences --- http://mathsci.kaist.ac.kr/~drake signature.asc Description: Digital signature
[sage-support] interact input box problem
Dear Support, On sagenb.org, try making an interact with an input box explicitly defined, e.g. @interact def plotfunction(f=input_box(x^2)): P=plot(f,0,1) show(P) It works fine in the sense that whatever you type in does what it should. But what's up with how the input box appears? It's even worse on my box (PPC OSX.4) - the initial input does not show up *at all* in the box, though again the plot is fine and once you type something in it behaves normally. Any suggestions as to what I'm doing wrong would be appreciated. Or is it still fallout from TinyMCE or something like that? Thanks, - kcrisman --~--~-~--~~~---~--~~ 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: How set UTF8 on the sage Notebook published page automatically?
Thanks to reply my post. Actually, in firefox it works well. But as you know, Windows IE is popular Web browser. Therefore I can't say 'You should use firefox to see this comments' to all users. I think there is no the meta html code to say about page. http://www.sagenb.org/home/pub/220/ I wrote comments in Korean at that page. But I can't read this comment on the IE7, because IE7 don't know about encoding. So it set EUC-KR, because this machine OS is Windows XP Korea. I suggests that the meta html code is added to all notebook page like this Then Web browser know this page's encoding is UTF-8. - 누구나가 다, 자기 옆에서 눈물을 흘리며 신음하는 불행한 사람들에 비해 자기가 훨씬 더 불행하다고 생각하지요. 이게 바로 우리 가련한 인간들의 오만 중의 하나입니다. - LE COMTE DE MONTECRISTO Nickname : NoSyu School of Information & Communication Engineering, SungKyunKwan University blog : http://nosyu.pe.kr On 2월9일, 오전11시05분, Dan Drake wrote: > Hello, > > > > On Fri, 06 Feb 2009 at 06:27AM -0800, NoSyu wrote: > > Hello~ > > > I test the sage on the sage Notebook homepage. > > >http://www.sagenb.org > > > So I wrote the code and comments and published it. > > >http://www.sagenb.org/home/pub/209/ > > > I'm Korean and I want to show my code to my friends. So I wrote the > > comments in Korean. Sage support UTF-8, So I can see the comments. > > > But there is one problem. Web browser's default encoding is EUC-KR not > > UTF-8. In EUC-KR encoding, I can't read the comments cause it's > > broken. So everytime my friends change the encoding manually. Does any > > other solution about this problems? > > I suspect that this is a browser problem, and not something that can be > fixed in the Sage notebook. I'm using Firefox, and it seems to > automatically switch encodings for me; when I visithttp://www.kaist.ac.kr/, > it's in euc-kr and I can read everything. When > I visithttp://www.google.co.kr/, it's UTF-8 and Firefox automatically > detects this and switches. > > Since you are Korean, I am guessing that you are using Internet > Explorer. Try using Firefox and see if that helps:http://www.mozilla.or.kr/ko/ > > Dan > > -- > --- Dan Drake > - KAIST Department of Mathematical Sciences > --- http://mathsci.kaist.ac.kr/~drake > > signature.asc > < 1K보기다운로드 --~--~-~--~~~---~--~~ 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: How set UTF8 on the sage Notebook published page automatically?
Hello, On Fri, 06 Feb 2009 at 06:27AM -0800, NoSyu wrote: > Hello~ > > I test the sage on the sage Notebook homepage. > > http://www.sagenb.org > > So I wrote the code and comments and published it. > > http://www.sagenb.org/home/pub/209/ > > I'm Korean and I want to show my code to my friends. So I wrote the > comments in Korean. Sage support UTF-8, So I can see the comments. > > But there is one problem. Web browser's default encoding is EUC-KR not > UTF-8. In EUC-KR encoding, I can't read the comments cause it's > broken. So everytime my friends change the encoding manually. Does any > other solution about this problems? I suspect that this is a browser problem, and not something that can be fixed in the Sage notebook. I'm using Firefox, and it seems to automatically switch encodings for me; when I visit http://www.kaist.ac.kr/, it's in euc-kr and I can read everything. When I visit http://www.google.co.kr/, it's UTF-8 and Firefox automatically detects this and switches. Since you are Korean, I am guessing that you are using Internet Explorer. Try using Firefox and see if that helps: http://www.mozilla.or.kr/ko/ Dan -- --- Dan Drake - KAIST Department of Mathematical Sciences --- http://mathsci.kaist.ac.kr/~drake signature.asc Description: Digital signature
[sage-support] Re: Sagetex issues
On Fri, 06 Feb 2009 at 09:16AM -0600, Jason Grout wrote: > That said, Dan, what do you think of using the shell-escape option to > run Sage directly? I agree with Harald's idea -- if you have lengthy computations in your document and fix a misspelling, it would be annoying to wait while Sage recomputes everything. Also, I think many TeX distributions disable shell-escape by default, and we would have to get users to re-enable it. Also, the shell escape stuff wouldn't work with my current plan for "SageTeX remote", which would use the Sage API to access a remote copy of Sage. Also, I think each shell escape call invokes a new command, which would make it impossible/very difficult to maintain state. Right now, you can repeatedly refer to an existing Sage variable throughout your document; if each shell escape was a blank slate, that would be tedious to type, and increase the running time even more. Dan -- --- Dan Drake - KAIST Department of Mathematical Sciences --- http://mathsci.kaist.ac.kr/~drake signature.asc Description: Digital signature
[sage-support] Re: Conjugates
On Sun, Feb 8, 2009 at 12:24 PM, shreevatsa wrote: > > Hello, > > A friend of mine wanted to know all the conjugates of a particular > algebraic number, and I was trying to figure out the right way of > finding them with Sage. Sorry if this is too trivial a question. > > This is what I tried: > >sage: t = sqrt(2-sqrt(2)) + i*sqrt(sqrt(2)-1) Since you're lucky and all conjugates are expressible in terms of radicals, the following easily gives all 8: sage: t = sqrt(2-sqrt(2)) + i*sqrt(sqrt(2)-1) sage: f = t.minpoly(); f x^8 - 12*x^6 + 6*x^4 - 12*x^2 + 1 sage: solve(SR(f)==0,x) [x == -sqrt(2*2^(1/4)*sqrt(2*sqrt(2) + 3) + 2*sqrt(2) + 3), x == sqrt(2*2^(1/4)*sqrt(2*sqrt(2) + 3) + 2*sqrt(2) + 3), x == -sqrt(-2*2^(1/4)*sqrt(2*sqrt(2) + 3) + 2*sqrt(2) + 3), x == sqrt(-2*2^(1/4)*sqrt(2*sqrt(2) + 3) + 2*sqrt(2) + 3), x == -sqrt(2*2^(1/4)*sqrt(3 - 2*sqrt(2))*I - 2*sqrt(2) + 3), x == sqrt(2*2^(1/4)*sqrt(3 - 2*sqrt(2))*I - 2*sqrt(2) + 3), x == -sqrt(-2*2^(1/4)*sqrt(3 - 2*sqrt(2))*I - 2*sqrt(2) + 3), x == sqrt(-2*2^(1/4)*sqrt(3 - 2*sqrt(2))*I - 2*sqrt(2) + 3)] >sage: p = t.minpoly(); p >x^8 - 12*x^6 + 6*x^4 - 12*x^2 + 1 >sage: K. = NumberField(p) >sage: a.galois_conjugates(K) >[a, -a, a^7 - 12*a^5 + 6*a^3 - 12*a, -a^7 + 12*a^5 - 6*a^3 + 12*a] > > I copied this result into a text editor to replace 'a' with 'x', then > did > >sage: ts = [q(t).exp_simplify() for q in [x, -x, x^7 - 12*x^5 + > 6*x^3 - 12*x, -x^7 + 12*x^5 - 6*x^3 + 12*x]]; ts >[sqrt(sqrt(2) - 1)*I + sqrt(2 - sqrt(2)), > -sqrt(sqrt(2) - 1)*I - sqrt(2 - sqrt(2)), > sqrt(sqrt(2) - 1)*I - sqrt(2 - sqrt(2)), > sqrt(2 - sqrt(2)) - sqrt(sqrt(2) - 1)*I] > > which are indeed conjugates, so it's good. But what about the other 4 > roots? I guess the problem is that NumberField(p) is not big enough to > contain all the conjugates. Trying > >sage: a.galois_conjugates(CC) > > does give all 8 conjugates, but in decimal numbers, not in terms of > radicals, while one can get all 8 by using: > >sage: a.galois_conjugates(QQ[t,i]) >[a^7 + (-12)*a^5 + 6*a^3 + (-12)*a, > (-1/8*I - 3/8)*a^7 + (11/8*I + 35/8)*a^5 + (5/8*I - 5/8)*a^3 + > (17/8*I + 21/8)*a, > (1/8*I - 3/8)*a^7 + (-11/8*I + 35/8)*a^5 + (-5/8*I - 5/8)*a^3 + > (-17/8*I + 21/8)*a, > (-1)*a, > a, > (-1/8*I + 3/8)*a^7 + (11/8*I - 35/8)*a^5 + (5/8*I + 5/8)*a^3 + > (17/8*I - 21/8)*a, > (1/8*I + 3/8)*a^7 + (-11/8*I - 35/8)*a^5 + (-5/8*I + 5/8)*a^3 + > (-17/8*I - 21/8)*a, > (-1)*a^7 + 12*a^5 + (-6)*a^3 + 12*a] > > after which replacing the 'a's with 'x' and pasting it back as above > gives all the conjugates: > >sage: ts = [q(t).exp_simplify() for q in (--replaced expression, > snipped--) ]; ts > >[sqrt(sqrt(2) - 1)*I - sqrt(2 - sqrt(2)), > (-sqrt(2) - 1)*sqrt(sqrt(2) - 1) + (-sqrt(2) - 1)*sqrt(2 - sqrt > (2)), > sqrt(sqrt(2) - 1)*(sqrt(2) + 1) + (-sqrt(2) - 1)*sqrt(2 - sqrt > (2)), > -sqrt(sqrt(2) - 1)*I - sqrt(2 - sqrt(2)), > sqrt(sqrt(2) - 1)*I + sqrt(2 - sqrt(2)), > sqrt(2 - sqrt(2))*(sqrt(2) + 1) + (-sqrt(2) - 1)*sqrt(sqrt(2) - > 1), > sqrt(sqrt(2) - 1)*(sqrt(2) + 1) + sqrt(2 - sqrt(2))*(sqrt(2) + > 1), > sqrt(2 - sqrt(2)) - sqrt(sqrt(2) - 1)*I] > > So Sage completely helped with the question, which is great. :-) > > My question is whether there is a better way to do this. In > particular: > > 1. Is there a way to avoid manually replacing 'a' with 'x' as above? > 2. Here, K=NumberField(p) was not a big enough field, but K[i] was. Is > it possible to automatically choose an appropriately big field? [I > tried a.galois_conjugates(K.galois_closure('a1')) as in the > documentation, but wasn't sure how to interpret the result.] > 3. It seems that while p.roots() returns an empty list and > p.complex_roots() returns the roots in decimals, > >sage: (x^8 - 12*x^6 + 6*x^4 - 12*x^2 + 1).roots() > > does find all roots, in terms of radicals. So might it be possible to > write a conjugates() function in cases where the polynomial *can* be > solved with radicals? > > > -- 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] Conjugates
Hello, A friend of mine wanted to know all the conjugates of a particular algebraic number, and I was trying to figure out the right way of finding them with Sage. Sorry if this is too trivial a question. This is what I tried: sage: t = sqrt(2-sqrt(2)) + i*sqrt(sqrt(2)-1) sage: p = t.minpoly(); p x^8 - 12*x^6 + 6*x^4 - 12*x^2 + 1 sage: K. = NumberField(p) sage: a.galois_conjugates(K) [a, -a, a^7 - 12*a^5 + 6*a^3 - 12*a, -a^7 + 12*a^5 - 6*a^3 + 12*a] I copied this result into a text editor to replace 'a' with 'x', then did sage: ts = [q(t).exp_simplify() for q in [x, -x, x^7 - 12*x^5 + 6*x^3 - 12*x, -x^7 + 12*x^5 - 6*x^3 + 12*x]]; ts [sqrt(sqrt(2) - 1)*I + sqrt(2 - sqrt(2)), -sqrt(sqrt(2) - 1)*I - sqrt(2 - sqrt(2)), sqrt(sqrt(2) - 1)*I - sqrt(2 - sqrt(2)), sqrt(2 - sqrt(2)) - sqrt(sqrt(2) - 1)*I] which are indeed conjugates, so it's good. But what about the other 4 roots? I guess the problem is that NumberField(p) is not big enough to contain all the conjugates. Trying sage: a.galois_conjugates(CC) does give all 8 conjugates, but in decimal numbers, not in terms of radicals, while one can get all 8 by using: sage: a.galois_conjugates(QQ[t,i]) [a^7 + (-12)*a^5 + 6*a^3 + (-12)*a, (-1/8*I - 3/8)*a^7 + (11/8*I + 35/8)*a^5 + (5/8*I - 5/8)*a^3 + (17/8*I + 21/8)*a, (1/8*I - 3/8)*a^7 + (-11/8*I + 35/8)*a^5 + (-5/8*I - 5/8)*a^3 + (-17/8*I + 21/8)*a, (-1)*a, a, (-1/8*I + 3/8)*a^7 + (11/8*I - 35/8)*a^5 + (5/8*I + 5/8)*a^3 + (17/8*I - 21/8)*a, (1/8*I + 3/8)*a^7 + (-11/8*I - 35/8)*a^5 + (-5/8*I + 5/8)*a^3 + (-17/8*I - 21/8)*a, (-1)*a^7 + 12*a^5 + (-6)*a^3 + 12*a] after which replacing the 'a's with 'x' and pasting it back as above gives all the conjugates: sage: ts = [q(t).exp_simplify() for q in (--replaced expression, snipped--) ]; ts [sqrt(sqrt(2) - 1)*I - sqrt(2 - sqrt(2)), (-sqrt(2) - 1)*sqrt(sqrt(2) - 1) + (-sqrt(2) - 1)*sqrt(2 - sqrt (2)), sqrt(sqrt(2) - 1)*(sqrt(2) + 1) + (-sqrt(2) - 1)*sqrt(2 - sqrt (2)), -sqrt(sqrt(2) - 1)*I - sqrt(2 - sqrt(2)), sqrt(sqrt(2) - 1)*I + sqrt(2 - sqrt(2)), sqrt(2 - sqrt(2))*(sqrt(2) + 1) + (-sqrt(2) - 1)*sqrt(sqrt(2) - 1), sqrt(sqrt(2) - 1)*(sqrt(2) + 1) + sqrt(2 - sqrt(2))*(sqrt(2) + 1), sqrt(2 - sqrt(2)) - sqrt(sqrt(2) - 1)*I] So Sage completely helped with the question, which is great. :-) My question is whether there is a better way to do this. In particular: 1. Is there a way to avoid manually replacing 'a' with 'x' as above? 2. Here, K=NumberField(p) was not a big enough field, but K[i] was. Is it possible to automatically choose an appropriately big field? [I tried a.galois_conjugates(K.galois_closure('a1')) as in the documentation, but wasn't sure how to interpret the result.] 3. It seems that while p.roots() returns an empty list and p.complex_roots() returns the roots in decimals, sage: (x^8 - 12*x^6 + 6*x^4 - 12*x^2 + 1).roots() does find all roots, in terms of radicals. So might it be possible to write a conjugates() function in cases where the polynomial *can* be solved with radicals? --~--~-~--~~~---~--~~ 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: error when computing Groebner basis
Thank you very much! I applied this and no more error. For the moment at least. It's been computing for 2 hours and I still don;t get any answer. I guess it's normal, the computations are enough large. Is there a possiblity to make it verbose? I mean, to have a feedback from it, to know that it's not blocked and hanging somewhere. Adela On 8 Feb, 17:00, Martin Albrecht wrote: > > sage: I.groebner_basis() > > Try: > > I.groebner_basis(faugere=False,linear_algebra_in_last_block=False) > > This disables M4RI (which runs out of memory). If that still fails, you're out > of luck and your computer can't handle the computation you're throwing at it. > > Martin > > -- > name: Martin Albrecht > _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 > _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF > _www:http://www.informatik.uni-bremen.de/~malb > _jab: martinralbre...@jabber.ccc.de --~--~-~--~~~---~--~~ 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: trouble with modular forms in SAGE
Thank you, again. I'll use SAGE on sage.org. With my best compliments for your extraordinarly good job with SAGE; best regards, Beppe - Messaggio Originale - Da: William Stein Data: Venerdi', Febbraio 6, 2009 8:32 pm Oggetto: [sage-support] Re: trouble with modular forms in SAGE A: sage-support@googlegroups.com > > On Fri, Feb 6, 2009 at 9:37 AM, giuseppe.molteni1 > wrote: > > > > Dear William, > > I thank you for your very prompt replay! > > Actually ther is a missprint in my post: the my group > > is Gamma0(15), not Gamma0(11), so the first line of > > my code was > > > > SAGE: chi=DirichletGroup(15,QQ).1 > > > > so that the dimension of the eigenforms space is 4. > > I have just tried the code on the public notebook server > > without any crash: as you suggest me the origin of my > > problem is evidently in my binary (I'm using windows > > with VMware Player). In next days I will download a > > different version. > > Thank you again, > > Beppe > > Unfortunately, there is no different version to download. > > We're currently working on making it so the sage vmware player will > work even on older computers that don't have sse3 > instructions. I hope > this happens soon. In the meantime, please feel free to > use sagenb.org > as much as you want. > > William > > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How to compute half-weight coefficients?
Thank you for your help! On Feb 3, 4:25 pm, William Stein wrote: > On Tue, Feb 3, 2009 at 2:24 PM, Kim wrote: > > > Thank you for telling me about this function. What do I need to put > > for the chi parameter to compute a weight 5/2, level 4*13 form? It > > seems 4*13 needs to be divisible by 16 > > You'll need to compute forms of level 16*13. Forms of level 4*13 are > a linear subspace of forms of level 16*13. > > -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: error when computing Groebner basis
> sage: I.groebner_basis() Try: I.groebner_basis(faugere=False,linear_algebra_in_last_block=False) This disables M4RI (which runs out of memory). If that still fails, you're out of luck and your computer can't handle the computation you're throwing at it. Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF _www: http://www.informatik.uni-bremen.de/~malb _jab: martinralbre...@jabber.ccc.de --~--~-~--~~~---~--~~ 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: Fwd: error installing gnuplot
On Sun, Feb 8, 2009 at 12:21 AM, mabshoff wrote: > > > > On Feb 8, 12:13 am, William Stein wrote: > > > >> I hope the following is helpful. >> >> The only reason for an end user to install the gnuplot package is of >> they can't install it any other way. Sage doesn't do any binary >> linking at all to gnuplot. As long as a gnuplot command is installed >> and in their path, things should work. The user does have some >> gnuplot installed, evidently, but it's probably not setup to run by >> typing "gnuplot" in Terminal. They probably need to make a script >> called "gnuplot" in their PATH and put something like this in it: >> >> -- >> #!/bin/sh >> path/to/gnuplot $@ >> - > > Before Nick Alexander has an aneurysm :) - this should be > > > #!/bin/sh > path/to/gnuplot "$@" > Oh crap. Somebody should open a trac ticket to fix my brain!! And make it a blocker. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Fwd: error installing gnuplot
On Feb 8, 12:13 am, William Stein wrote: > I hope the following is helpful. > > The only reason for an end user to install the gnuplot package is of > they can't install it any other way. Sage doesn't do any binary > linking at all to gnuplot. As long as a gnuplot command is installed > and in their path, things should work. The user does have some > gnuplot installed, evidently, but it's probably not setup to run by > typing "gnuplot" in Terminal. They probably need to make a script > called "gnuplot" in their PATH and put something like this in it: > > -- > #!/bin/sh > path/to/gnuplot $@ > - Before Nick Alexander has an aneurysm :) - this should be #!/bin/sh path/to/gnuplot "$@" > where /path/to/gnuplot is the path to their gnuplot install. > > William Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Errors in make test run on fresh sage install.
On Feb 8, 12:11 am, goodolde...@comcast.net wrote: > Hello Michael Hi Earl, > I'm running Bash shell. Ok. > Tried a couple more times to make this work and while doing so noticed > something interesting. When I installed this thing I placed it into a > "/home/earl" user directory however I ran the make as root as it would > not run as normal user. I just tried a couple of different cycles of > running root and then user and am getting much different result. > > as root it looks like this below > > linux-gqpn:/home/earl/programs/sage-3.2.3 # ./sage -t devel/sage/sage/ > rings/finite_field_ntl_gf2e.pyx > sage -t "devel/sage/sage/rings/finite_field_ntl_gf2e.pyx" > ** > File "/home/earl/programs/sage-3.2.3/devel/sage/sage/rings/ > finite_field_ntl_gf2e.pyx", line 171: > sage: k.modulus() > Expected: > x^17 + x^16 + x^15 + x^10 + x^8 + x^6 + x^4 + x^3 + x^2 + x + 1 > Got: > x^17 + x^3 + 1 > ** > 1 items had failures: Ok, the above test is (a) already fixed in Sage 3.3 AFAWK and (b) does not involve communication with Maxima via pexpect. The debugging suggestion I posted was only relevant for the tests that timed out. > I noticed from your example that the identified paths are followed by > $ which indicated your running all this as normal user. Have I munged > my directory permissions? No, if you do not set certain env variables tests create tmp files in $SAGE_ROOT/tmp, so if the user running the test does not have write permission there the test will fail to run. So either run the tests as root if you used that to build Sage or alternatively set SAGE_TESTDIR to some place where you have write access (IIRC the directoy needs to exist), i.e. export SAGE_TESTDIR=$HOME/tmp There are known problem with the second approach we haven't fixed yet - see http://trac.sagemath.org/sage_trac/ticket/5155 > Regards > > Earl Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: attach works in command line but not in notebook
OK, this is now trac ticket #5206. -M. Hampton On Feb 8, 4:09 am, ricardomayerb wrote: > Thanks, Adrian, Marshall. > > I can confirm that it has something to do with carriage return. I can > summarize things this way: > > --> using quotes around the path didn't solve the problem > > --> changing the file extension of the file to .sage DOES solve the > problem (great!!! thanks Marshall!) > > --> my file was located in a Windows partition (\media\disk > \blabla...). I tried a "Hello World" program (with .py extension) from > there and it didn't work either. I copied the file over to my linux > partition and still didn't work... but if I write it from scratch > while in linux, then it worked, so IMHO it can in fact be related to > how windows and linux editors treat \n and \r differently > > --> the funny thing is that attach has no problem whatsoever when > invoked from the sage command line ... it was only when invoked inside > a notebook that I ran into trouble > > thanks again and best wishes, > > Ricardo > > On Feb 7, 10:20 pm, adrian wrote: > > > I am sorry, I read it wrong; you are indeed giving the full path. > > Something I was thinking is that it could be related to what happens, > > in addition to what others have commented is: > > > 1) The error is "Syntax error" not "File not found", so maybe the > > quotes arround the path would work. > > > 2) The file is in /media/... Does it work with other files in other > > directories? With .sage files? > > > 3) Can you attach a file in ~/.sage? > > > Well, I hope this is fixed. Or just changing the extension, as > > Marshal suggested, should work. This would explain the Syntax Error. > > > -Adrian. > > > On Feb 7, 6:37 am, ricardomayerb wrote: > > > > Thank you, Adrian. > > > > But I think I gave the full path when I used the command: > > > > attach /media/disk/thesiswork/thesis2009/sage/src/sympy_files/ > > > thesis_sympy_2009.py > > > > but it did not worked in notebook mode (but happens to work perfectly > > > in command-line mode, I just tried it) > > > > Maybe the way to go, for now, is your suggestion of invoking sage with > > > this -notebook directory option > > > > Best, > > > R > > > > On Feb 6, 3:52 pm, adrian wrote: > > > > > You need to give the full path if you are in the notebook. > > > > If you strongly need to not to give the full path you could run the > > > > command > > > > $mkdir (where your files are)/sagenotebook > > > > $sage -notebook directory="Where your files are/sagenotebook" > > > > > The disadvantage is that this will create another server, and you > > > > won't be able to see the worksheets you had in .sage/notebook > > > > > this was the discussion > > > > inhttp://groups.google.com/group/sage-support/browse_thread/thread/3779... > > > > > This kind of behaviour is the reason for the ticket > > > > inhttp://trac.sagemath.org/sage_trac/ticket/5169 > > > > > Hope this helps > > > > > -Adrian. > > > > > On Feb 6, 10:40 am, ricardomayerb wrote: > > > > > > Dear all, > > > > > > I'm trying to attach a python script. I'm probably doing somethign > > > > > wrong, but the weird thing is that what I do works for the command > > > > > line but not from the notebook. Let me show you. > > > > > > This works: > > > > > -- > > > > > | Sage Version 3.2.3, Release Date: 2009-01-05 | > > > > > | Type notebook() for the GUI, and license() for information. | > > > > > -- > > > > > sage: os.getcwd() > > > > > '/home/ricardo/sage-3.2.2' > > > > > sage: os.chdir('/media/disk/thesiswork/thesis2009/sage/src/ > > > > > sympy_files') > > > > > sage: os.getcwd > > > > > () > > > > > '/media/disk/thesiswork/thesis2009/sage/src/sympy_files' > > > > > sage: attach thesis_sympy_2009.py > > > > > > So no problem there. > > > > > > but this doesn't: > > > > > > sage: notebook() > > > > > The notebook files are stored in: /home/ricardo/.sage//sage_notebook > > > > > > os.chdir('/media/disk/thesiswork/thesis2009/sage/src/sympy_files') > > > > > > attach thesis_sympy_2009.py > > > > > --->Error attaching /home/ricardo/.sage/thesis_sympy_2009.py -- file > > > > > not > > > > > found > > > > > > os.getcwd() > > > > > --->'/home/ricardo/.sage/sage_notebook/worksheets/admin/4/cells/3' > > > > > > ...so obviously os.chdir didn't change the dir where the notebook > > > > > looks for files (mybe is not supposed to...). Thus, I tried using an > > > > > absolute path instead: > > > > > > attach /media/disk/thesiswork/thesis2009/sage/src/sympy_files/ > > > > > thesis_sympy_2009.py > > > > > ---> Syntax Error: > > > > > attach > > > > > /media/disk/thesiswork/thesis2009/sage/src/sympy_files/ > > > > > thesis_sympy_2009\ > > > > > .py > > > > > > how could I use absolute paths with attach inside a notebook? Is there > > > > > a workaround? > > > > > > I also tried setting the variable DIR
[sage-support] Re: Fwd: error installing gnuplot
On Sun, Feb 8, 2009 at 12:01 AM, mabshoff wrote: > > > > On Feb 7, 11:53 pm, mhampton wrote: >> I thought sage-support might be a better spot for this. I helped >> Patrick install gnuplot once, but he is trying again because it was >> slightly unhappy about some aqua support issue that he thinks he has >> fixed. He is using gnuplot for some legacy-code reasons. > > The one error log excerpt below is useless. Without install.log there > is nothing one can do. > > We should really change the error message, especially the word > "relevant" in > > "explaining the problem and send the relevant part of" > > since more and more new Sage users have little understanding what part > of the log is required to debug the problem. We also need to stop > asking people to send the log to the list since I am not looking > forward to the next person sending out a multi MB uncompressed > install.log :p > > Overall it looks like some kind of problem related to X, but I would > not be surprised if macports and/or Fink is involved here. I hope the following is helpful. The only reason for an end user to install the gnuplot package is of they can't install it any other way. Sage doesn't do any binary linking at all to gnuplot. As long as a gnuplot command is installed and in their path, things should work. The user does have some gnuplot installed, evidently, but it's probably not setup to run by typing "gnuplot" in Terminal. They probably need to make a script called "gnuplot" in their PATH and put something like this in it: -- #!/bin/sh path/to/gnuplot $@ - where /path/to/gnuplot is the path to their gnuplot install. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Errors in make test run on fresh sage install.
Hello Michael I'm running Bash shell. Tried a couple more times to make this work and while doing so noticed something interesting. When I installed this thing I placed it into a "/home/earl" user directory however I ran the make as root as it would not run as normal user. I just tried a couple of different cycles of running root and then user and am getting much different result. as root it looks like this below linux-gqpn:/home/earl/programs/sage-3.2.3 # ./sage -t devel/sage/sage/ rings/finite_field_ntl_gf2e.pyx sage -t "devel/sage/sage/rings/finite_field_ntl_gf2e.pyx" ** File "/home/earl/programs/sage-3.2.3/devel/sage/sage/rings/ finite_field_ntl_gf2e.pyx", line 171: sage: k.modulus() Expected: x^17 + x^16 + x^15 + x^10 + x^8 + x^6 + x^4 + x^3 + x^2 + x + 1 Got: x^17 + x^3 + 1 ** 1 items had failures: 1 of 10 in __main__.example_2 ***Test Failed*** 1 failures. For whitespace errors, see the file /home/earl/programs/sage-3.2.3/ tmp/.doctest_finite_field_ntl_gf2e.py [4.4 s] exit code: 1024 -- The following tests failed: sage -t "devel/sage/sage/rings/finite_field_ntl_gf2e.pyx" Total time for all tests: 4.4 seconds as user earl looks like this e...@linux-gqpn:~/programs/sage-3.2.3$ ./sage -t devel/sage/sage/rings/ finite_field_nlt_gf2e.pyx ERROR: File ./devel/sage/sage/rings/finite_field_nlt_gf2e.pyx is missing exit code: 1 -- The following tests failed: ./devel/sage/sage/rings/finite_field_nlt_gf2e.pyx Total time for all tests: 0.0 seconds I noticed from your example that the identified paths are followed by $ which indicated your running all this as normal user. Have I munged my directory permissions? Regards Earl On Feb 7, 10:52 pm, mabshoff wrote: > On Feb 7, 8:14 pm, goodolde...@comcast.net wrote: > > > Hi Michael > > Hi Earl, > > > I was able to execute each of the single tests however the export > > "export SAGE_PEXPECT_LOG=yes" did not allow files to be created in > > $home/.sage//pexpect_logs/. Any ideas would be great as I hunted > > around a bit and came up empty on fresh log files. > > What shell are you using? For csh or tcsh you have to use setenv. > > This works for me: > > mabsh...@sage:/scratch/mabshoff/sage-3.3.rc0$ export > SAGE_PEXPECT_LOG=yes > mabsh...@sage:/scratch/mabshoff/sage-3.3.rc0$ ./sage -t devel/doc/ > const/const.tex > sage -t "devel/doc/const/const.tex" > [15.3 s] > > -- > All tests passed! > > results in > > mabsh...@sage:/scratch/mabshoff/dot_sage/pexpect_logs$ pwd > /scratch/mabshoff/dot_sage/pexpect_logs > mabsh...@sage:/scratch/mabshoff/dot_sage/pexpect_logs$ ls -altr > total 1032 > drwx-- 8 mabshoff mabshoff 4096 2009-02-07 22:49 .. > drwxr-xr-x 2 mabshoff mabshoff 4096 2009-02-07 22:49 . > -rw-r--r-- 1 mabshoff mabshoff 34997 2009-02-07 22:49 > singular-31329-14103328-2.log > -rw-r--r-- 1 mabshoff mabshoff 70961 2009-02-07 22:49 > gap-31329-14105248-2.log > -rw-r--r-- 1 mabshoff mabshoff 904 2009-02-07 22:50 > pari-31329-73925648-2.log > -rw-r--r-- 1 mabshoff mabshoff 603 2009-02-07 22:50 > pari-31329-73925168-2.log > -rw-r--r-- 1 mabshoff mabshoff 544131 2009-02-07 22:50 > maxima-31329-27545184-2.log > -rw-r--r-- 1 mabshoff mabshoff 371018 2009-02-07 22:50 > maxima-31329-15330912-2.log > > > I guess this is one way to help open source. perform a few mechanical > > functions and unavailable hardware. > > Well, we can debug things properly and unlike commercial code you can > actually talk to the people who write the code without having to have > the needed juice to get beyond the usual level 1/2/3 support. > > Cheers, > > Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Fwd: error installing gnuplot
On Feb 7, 11:53 pm, mhampton wrote: > I thought sage-support might be a better spot for this. I helped > Patrick install gnuplot once, but he is trying again because it was > slightly unhappy about some aqua support issue that he thinks he has > fixed. He is using gnuplot for some legacy-code reasons. The one error log excerpt below is useless. Without install.log there is nothing one can do. We should really change the error message, especially the word "relevant" in "explaining the problem and send the relevant part of" since more and more new Sage users have little understanding what part of the log is required to debug the problem. We also need to stop asking people to send the log to the list since I am not looking forward to the next person sending out a multi MB uncompressed install.log :p Overall it looks like some kind of problem related to X, but I would not be surprised if macports and/or Fink is involved here. > -Marshall Cheers, Michael > -- Forwarded message -- > From: "Patrick E. Dorey" > Date: Feb 7, 6:05 pm > Subject: error installing gnuplot > To: sage-devel > > Hi, > > I'm getting the following error when attempting to add gnuplot to > sage by typing > sage -i gnuplot-4.0.0 > when in /Applications/sage> : > > > gplt_x11.c:519: error: 'Class ' redeclared as different kind of > > symbol > > :0: error: previous declaration of 'Class ' was here > > make[3]: *** [gplt_x11.o] Error 1 > > make[2]: *** [all-recursive] Error 1 > > make[1]: *** [all-recursive] Error 1 > > make: *** [all] Error 2 > > Error building gnuplot > > > real 3m49.899s > > user 2m3.506s > > sys 0m55.682s > > sage: An error occurred while installing gnuplot-4.0.0 > > Please email sage-develhttp://groups.google.com/group/sage-devel > > explaining the problem and send the relevant part of > > of /Applications/sage/install.log. Describe your computer, operating > > system, etc. > > (These are the last few lines of install.log; I can send more if it > would help.) > > I'm using a mac powerbook G4 12", OSX 10.4.11; in case it is relevant > gcc -v returns among other things > > > gcc version 4.0.1 (Apple Computer, Inc. build 5370) > > Any suggestions as to how to fix this error, or how to avoid the > problem > by persuading sage to see my pre-exisitng gnuplot and aqua, would be > gratefully received. > > Best regards, > Patrick Dorey. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---