[sage-support] Color in html output and rounding matrices
Hello to everyone, I was trying to make some camputational tool for my students, to allow them to compute powers of matrices quickly. I made a tiny htm page with some text giving explanations, and the following code embedden in a one-cell script DEF=[[0.25,0.55,0.2],[0.35,0.15,0.1],[0.45,0.3,0.7]]; @interact def _(T=input_grid(3,3, default = DEF, label='Transition matrix $T=$', to_value=matrix), d=input_box(3, width=5, label="number of digits "), n=input_box(2,width=5,label="power of $T$, $n=$")): T = T.apply_map(RealField(d*log(10)/log(2))) M=T^n html('$T^n = \displaystyle %s$'%latex(M)) I happen to have a page which background is blue, so the standard output, in black is not very adapted... Anyone can tell how to change the output color of html(...) to white? And I have a second question : I would like to round the matrices ut to some desired precision. What I did here is not exactly that. I don'n know why M.round(3) didn't worked... I spent more time that I should have trying to figure out this... I someone could help, that would be very nice! Regards, JC -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: using cell server with moodle (problem with
I had the very same problem with Moodle2.0 My "solution" is not to wite an html document inside Moodle. Rather, what I do is write the .html file externally, with Kompozer, then in Moodle i upload that external file. I don'n know if this works if, for instance you want to tak profit of the structured "lessons" of Moodle, but at least the entire file works pretty well, it opens in the Moodle page itself. Regards, JC El miércoles, 13 de noviembre de 2013 19:28:23 UTC-5, mbuf...@gmail.com escribió: > > Yes the html editor in moodle escape < > i.e. > > if 1<2: > print 'hi' > > is converted automatically > if 1<2: print 'hi' > > however the code in written with one line, i.e. I am unable to insert > multi-lines using only > Moreover string enclosed with "" does nor work (single quote works) > > At the moment I use it just to initialise the cell with a simple > statement, and it works > but to initialize the cell with more complex code, I had to find another > solution. > > Regards >> Marc >> >> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: using cell server with moodle (problem with
Yes the html editor in moodle escape < i.e. if 1<2: print 'hi' is converted automatically if 1<2: print 'hi' however the code in written with one line, i.e. I am unable to insert multi-lines using only Moreover string enclosed with "" does nor work (single quote works) At the moment I use it just to initialise the cell with a simple statement, and it works but to initialize the cell with more complex code, I had to find another solution. Regards > Marc > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Factorial Carry Value in Python
0<= u_i <= l-i 2013/11/13 Juan Grados > Let be s between 1 and l!-1 an integer value then s can expressed uniquely > than: > > s = u1*(l-1)! + u2*(l-2)!+ ... ul*0 > > Is there any function to find the values u1, u2, ..., ul in SAGE or python? > > -- > - > MSc. Juan del Carmen Grados Vásquez > Laboratório Nacional de Computação Científica > Tel: +55 24 2233-6260 > (http://www.lncc.br/) > http://juaninf.blogspot.com > - > -- - MSc. Juan del Carmen Grados Vásquez Laboratório Nacional de Computação Científica Tel: +55 24 2233-6260 (http://www.lncc.br/) http://juaninf.blogspot.com - -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: using cell server with moodle (problem with
On 11/13/13 1:43 PM, Stefan van Zwam wrote: I'm running into the same problem with Wordpress. When I switch their TinyMCE editor between "Text" and "Visual" modes, it will add in those tags. My "solution" is to edit only in Text mode (the Sage boxes are invisible anyway in Visual mode, which is complicating things). See http://matroidunion.org/?p=301 . Incidentally, there seem to be some issues with the new "maximize" button that appeared today. Sometimes after clicking it, I have several maximize buttons in view. I noticed that and fixed it maybe 12 hours ago (it was a bug in how we were doing z-ordering). Does it still happen? Anyway, back to the topic. If moodle has a text-mode editor, then that might be your best bet. I agree. If you are using TinyMCE, TinyMCE will likely convert all < to < and all & to &, so you maybe be able to just use the divs and not worry about the script tags. Of course, inserting divs into TinyMCE might be a bit tricky. I just tried Jason's suggestion for only using the CDATA thing directly, but switching to Visual made TinyMCE eat up my entire code. When trying to preview, the closing tag ]]> was visible as a line of Sage code. It'd be nice if the cell server got an option to ignore the // bits… If we can figure out a way to not have those bits, that would be best, of course. Another issue I'm having is that Wordpress will convert empty lines into a pair. But that seems to be beyond the control of the Cell Server. I think we need a proper Wordpress plugin to get everything working flawlessly. Or a TinyMCE plugin. Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: using cell server with moodle (problem with
On 11/13/13 2:49 PM, mbuffa...@gmail.com wrote: I follow the suggestion of Jason and remove the script tag 1+2 and it works. By the way, in moodle the html editor has a raw mode. However as pointed by Stefan, as soon as I return to the visual mode, the editor add the [CDATA[ stuff around the script balise. As far as I understand, it seams to be the norm to protect the data from the browser. It would thus be interesting that the cell server got an option to ignore the // bit as suggest by Stefan. Finally using does not work with moodle Thanks for reporting back. Does this work? (i.e., does TinyMCE correctly escape the '<'? if 1<2: print 'hi' Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: which version of ipython for building a sagecell server
On 11/13/13 3:42 PM, mbuffa...@gmail.com wrote: I want to use the sage cellserver for online course with moodle. I presently use the sage*cell*.*sagemath*.org, but I want to use my own sagecell server at the university Those instructions are old (sorry for not noting it yet). I'm now running the cell server on CentOS 6.4, but we have some development versions running on cloud.sagemath.com (which is running Ubuntu 12.04). Here are the scripts I currently use for installing a virtual machine with sage and the cell server (not very well-documented, I'm afraid): https://github.com/sagemath/sagecell/tree/master/contrib/vm In particular, here is the part that installs the sage cell server and sage: https://github.com/sagemath/sagecell/blob/master/contrib/vm/install-sagecell-functions#L111 You can see at https://github.com/sagemath/sagecell/blob/master/contrib/vm/install-sagecell-functions#L131 that I use the 'sagecell' branch of my github repository for sage (https://github.com/jasongrout/sage/tree/sagecell) and at https://github.com/sagemath/sagecell/blob/master/contrib/vm/install-sagecell-functions#L181 you see I use the sagecell branch in my github clone of IPython (https://github.com/jasongrout/ipython/tree/sagecell). It's not really documented well right now. I'm happy to give pointers, though, and I'm more than happy to accept pull requests improving the documentation and install process. Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] which version of ipython for building a sagecell server
I want to use the sage cellserver for online course with moodle. I presently use the sage*cell*.*sagemath*.org, but I want to use my own sagecell server at the university I have try to compile the SAGE cellserver using the https://github.com/sagemath/sagecell I successfully compile SAGE 5.10.rc1 on my ubuntu box 12.04 I then patch sage using wget https://github.com/jasongrout/sage/commit/fdbe79ef7ed0ca0fa6c712c4c580ba34de1a1166.patch wget https://github.com/jasongrout/sage/commit/c1ad5805558b15694d783bbb5c77296f2d492b2e.patch patch --ignore-whitespace -p2 < fdbe79ef7ed0ca0fa6c712c4c580ba34de1a1166.patch patch --ignore-whitespace -p2 < c1ad5805558b15694d783bbb5c77296f2d492b2e.patch and install ipython with easy_install ipython and Install the latest sagecell spkg I have a running sage cell server, but it can only evaulate python, and not sage typing: plot(x^3) result to an error ERROR: Internal Python error in the inspect module. Below is the traceback from this internal error. ERROR - failed to write data to stream: ERROR: Internal Python error in the inspect module. Below is the traceback from this internal error. Error in sys.excepthook: Traceback (most recent call last): File "/home4/local/sage-5.10.rc1/local/lib/python2.7/site-packages/ipython-1.1.0-py2.7.egg/IPython/core/ultratb.py", line 1030, in __call__ . I have try to use sage 5.12, it compiles but does not work The question is: what version of sage, and what version of ipython do I need to compile a working sage cellserver on ubuntu 12.04 Thanks Marc -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Factorial Carry Value in Python
Let be s between 1 and l!-1 an integer value then s can expressed uniquely than: s = u1*(l-1)! + u2*(l-2)!+ ... ul*0 Is there any function to find the values u1, u2, ..., ul in SAGE or python? -- - MSc. Juan del Carmen Grados Vásquez Laboratório Nacional de Computação Científica Tel: +55 24 2233-6260 (http://www.lncc.br/) http://juaninf.blogspot.com - -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] which version of ipython for building a sagecell server
I want to use the sage cellserver for online course with moodle. I presently use the sage*cell*.*sagemath*.org, but I want to use my own sagecell server at the university I have try to compile the SAGE cellserver using the https://github.com/sagemath/sagecell I successfully compile SAGE 5.10.rc1 on my ubuntu box 12.04 I then patch sage using wget https://github.com/jasongrout/sage/commit/fdbe79ef7ed0ca0fa6c712c4c580ba34de1a1166.patch wget https://github.com/jasongrout/sage/commit/c1ad5805558b15694d783bbb5c77296f2d492b2e.patch patch --ignore-whitespace -p2 < fdbe79ef7ed0ca0fa6c712c4c580ba34de1a1166.patch patch --ignore-whitespace -p2 < c1ad5805558b15694d783bbb5c77296f2d492b2e.patch and install ipython with easy_install ipython and Install the latest sagecell spkg I have a running sage cell server, but it can only evaulate python, and not sage typing: plot(x^3) result to an error ERROR: Internal Python error in the inspect module. Below is the traceback from this internal error. ERROR - failed to write data to stream: ERROR: Internal Python error in the inspect module. Below is the traceback from this internal error. Error in sys.excepthook: Traceback (most recent call last): File "/home4/local/sage-5.10.rc1/local/lib/python2.7/site-packages/ipython-1.1.0-py2.7.egg/IPython/core/ultratb.py", line 1030, in __call__ . I have try to use sage 5.12, it compiles but does not work The question is: what version of sage, and what version of ipython do I need to compile a working sage cellserver on ubuntu 12.04 Thanks Marc -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: using cell server with moodle (problem with
I follow the suggestion of Jason and remove the script tag 1+2 and it works. By the way, in moodle the html editor has a raw mode. However as pointed by Stefan, as soon as I return to the visual mode, the editor add the [CDATA[ stuff around the script balise. As far as I understand, it seams to be the norm to protect the data from the browser. It would thus be interesting that the cell server got an option to ignore the // bit as suggest by Stefan. Finally using does not work with moodle Thanks, Marc -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: using cell server with moodle (problem with
I'm running into the same problem with Wordpress. When I switch their TinyMCE editor between "Text" and "Visual" modes, it will add in those tags. > > My "solution" is to edit only in Text mode (the Sage boxes are invisible anyway in Visual mode, which is complicating things). See http://matroidunion.org/?p=301 . Incidentally, there seem to be some issues with the new "maximize" button that appeared today. Sometimes after clicking it, I have several maximize buttons in view. Anyway, back to the topic. If moodle has a text-mode editor, then that might be your best bet. I just tried Jason's suggestion for only using the CDATA thing directly, but switching to Visual made TinyMCE eat up my entire code. When trying to preview, the closing tag ]]> was visible as a line of Sage code. It'd be nice if the cell server got an option to ignore the // bits… Another issue I'm having is that Wordpress will convert empty lines into a pair. But that seems to be beyond the control of the Cell Server. I think we need a proper Wordpress plugin to get everything working flawlessly. Cheers, Stefan. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Compilation of SAGE fails at "from sage.all import save"
Your build didn't fail in conway_polynomials, that one just fails because one of the dependencies was not built. Do a make distclean && make -j1 for a serial build, this will make it easier to diagnose what failed. On Wednesday, November 13, 2013 8:13:59 AM UTC-8, Kerem Eryilmaz wrote: > > Good tip. Here it is: > > kerem@linux-kerem:~/build/sage-5.12> ./sage -python > Python 2.7.5 (default, Nov 13 2013, 14:26:19) > [GCC 4.7.2 20130108 [gcc-4_7-branch revision 195012]] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from sage.all import save > Traceback (most recent call last): > File "", line 1, in > ImportError: cannot import name save > > > On Wednesday, November 13, 2013 5:01:02 PM UTC+1, Volker Braun wrote: >> >> Whats the output of >> >> cd sage-5.12 >> ./sage -python >> from sage.all import save >> >> >> On Wednesday, November 13, 2013 7:12:36 AM UTC-8, Kerem Eryilmaz wrote: >>> >>> No, I just used the -j8 parameter, removing which changes nothing. My >>> installation is not vanilla though, maybe I'll try it on a virtual machine >>> to make sure it is not some wear-and-tear of my system. >>> >>> BTW, this is the second time I am writing this, because my reply >>> vanished after I sent it. Maybe that's what's supposed to happen to replies >>> on google groups, I don't know. Just to make sure, I am sending this again. >>> >>> On Wednesday, November 13, 2013 3:56:25 PM UTC+1, Jeroen Demeyer wrote: On 2013-11-13 15:51, Kerem Eryilmaz wrote: > Has anybody seen this happen before? Not as far as I know. Can you think of anything that might be unusual with your setup (in particular, environment variables). >>> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Compilation of SAGE fails at "from sage.all import save"
Good tip. Here it is: kerem@linux-kerem:~/build/sage-5.12> ./sage -python Python 2.7.5 (default, Nov 13 2013, 14:26:19) [GCC 4.7.2 20130108 [gcc-4_7-branch revision 195012]] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from sage.all import save Traceback (most recent call last): File "", line 1, in ImportError: cannot import name save On Wednesday, November 13, 2013 5:01:02 PM UTC+1, Volker Braun wrote: > > Whats the output of > > cd sage-5.12 > ./sage -python > from sage.all import save > > > On Wednesday, November 13, 2013 7:12:36 AM UTC-8, Kerem Eryilmaz wrote: >> >> No, I just used the -j8 parameter, removing which changes nothing. My >> installation is not vanilla though, maybe I'll try it on a virtual machine >> to make sure it is not some wear-and-tear of my system. >> >> BTW, this is the second time I am writing this, because my reply vanished >> after I sent it. Maybe that's what's supposed to happen to replies on >> google groups, I don't know. Just to make sure, I am sending this again. >> >> On Wednesday, November 13, 2013 3:56:25 PM UTC+1, Jeroen Demeyer wrote: >>> >>> On 2013-11-13 15:51, Kerem Eryilmaz wrote: >>> > Has anybody seen this happen before? >>> Not as far as I know. Can you think of anything that might be unusual >>> with your setup (in particular, environment variables). >>> >> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Compilation of SAGE fails at "from sage.all import save"
Whats the output of cd sage-5.12 ./sage -python from sage.all import save On Wednesday, November 13, 2013 7:12:36 AM UTC-8, Kerem Eryilmaz wrote: > > No, I just used the -j8 parameter, removing which changes nothing. My > installation is not vanilla though, maybe I'll try it on a virtual machine > to make sure it is not some wear-and-tear of my system. > > BTW, this is the second time I am writing this, because my reply vanished > after I sent it. Maybe that's what's supposed to happen to replies on > google groups, I don't know. Just to make sure, I am sending this again. > > On Wednesday, November 13, 2013 3:56:25 PM UTC+1, Jeroen Demeyer wrote: >> >> On 2013-11-13 15:51, Kerem Eryilmaz wrote: >> > Has anybody seen this happen before? >> Not as far as I know. Can you think of anything that might be unusual >> with your setup (in particular, environment variables). >> > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Compilation of SAGE fails at "from sage.all import save"
No, I just used the -j8 parameter, removing which changes nothing. My installation is not vanilla though, maybe I'll try it on a virtual machine to make sure it is not some wear-and-tear of my system. BTW, this is the second time I am writing this, because my reply vanished after I sent it. Maybe that's what's supposed to happen to replies on google groups, I don't know. Just to make sure, I am sending this again. On Wednesday, November 13, 2013 3:56:25 PM UTC+1, Jeroen Demeyer wrote: > > On 2013-11-13 15:51, Kerem Eryilmaz wrote: > > Has anybody seen this happen before? > Not as far as I know. Can you think of anything that might be unusual > with your setup (in particular, environment variables). > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Compilation of SAGE fails at "from sage.all import save"
On 2013-11-13 15:51, Kerem Eryilmaz wrote: Has anybody seen this happen before? Not as far as I know. Can you think of anything that might be unusual with your setup (in particular, environment variables). -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Compilation of SAGE fails at "from sage.all import save"
I have recently decided to move my daily workflow to SAGE. I am on OpenSUSE 12.3, and trying to build SAGE 5.12 from source. However, the build stops at "conway_polynomials-0.4.p0" by throwing an import error as you can see from the logs below. I am new to SAGE, but based on what I have found online, I think the installation might be trying to use my local python installation which doesn't include SAGE. Any ideas or solutions? Has anybody seen this happen before? Here is the relevant log file: Found package conway_polynomials-0.4.p0 in spkg/standard/conway_polynomials-0.4.p0.spkg conway_polynomials-0.4.p0 Extracting package /home/kerem/build/sage-5.12/spkg/standard/conway_polynomials-0.4.p0.spkg -rw-r--r-- 1 kerem users 227128 Mar 15 2013 /home/kerem/build/sage-5.12/spkg/standard/conway_polynomials-0.4.p0.spkg Finished extraction Host system: Linux linux-kerem 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64 x86_64 x86_64 GNU/Linux C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.7/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp --disable-libssp --disable-libitm --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.7 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.7.2 20130108 [gcc-4_7-branch revision 195012] (SUSE Linux) Traceback (most recent call last): File "./spkg-install", line 4, in from sage.all import save ImportError: cannot import name save real0m0.012s user0m0.010s -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Compilation of SAGE dies at "from sage.all import save"
I have recently decided to move my daily workflow to SAGE. I am on OpenSUSE 12.3, and trying to build SAGE 5.12 from source. However, the build stops at "conway_polynomials-0.4.p0" complaining that there is no such module "sage.all". I am new to SAGE, but based on what I have found online, I think the installation might be trying to use my local python installation which doesn't include SAGE. Any ideas or solutions? Has anybody seen this happen before? Here is the relevant log file: Found package conway_polynomials-0.4.p0 in spkg/standard/conway_polynomials-0.4.p0.spkg conway_polynomials-0.4.p0 Extracting package /home/kerem/build/sage-5.12/spkg/standard/conway_polynomials-0.4.p0.spkg -rw-r--r-- 1 kerem users 227128 Mar 15 2013 /home/kerem/build/sage-5.12/spkg/standard/conway_polynomials-0.4.p0.spkg Finished extraction Host system: Linux linux-kerem 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64 x86_64 x86_64 GNU/Linux C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.7/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp --disable-libssp --disable-libitm --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.7 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.7.2 20130108 [gcc-4_7-branch revision 195012] (SUSE Linux) Traceback (most recent call last): File "./spkg-install", line 4, in from sage.all import save ImportError: cannot import name save real0m0.012s user0m0.010s -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] "No module named sage.all" while building sage
I have recently decided to move my daily workflow to SAGE. I am on OpenSUSE 12.3, and trying to build SAGE 5.12 from source. However, the build stops at "conway_polynomials-0.4.p0" complaining that there is no such module "sage.all". I am new to SAGE, but based on what I have found online, I think the installation might be trying to use my local python installation which doesn't include SAGE. Any ideas or solutions? Has anybody seen this happen before? Here is the relevant log file: Found package conway_polynomials-0.4.p0 in spkg/standard/conway_polynomials-0.4.p0.spkg conway_polynomials-0.4.p0 Extracting package /home/kerem/build/sage-5.12/spkg/standard/conway_polynomials-0.4.p0.spkg -rw-r--r-- 1 kerem users 227128 Mar 15 2013 /home/kerem/build/sage-5.12/spkg/standard/conway_polynomials-0.4.p0.spkg Finished extraction Host system: Linux linux-kerem 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64 x86_64 x86_64 GNU/Linux C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.7/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp --disable-libssp --disable-libitm --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.7 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.7.2 20130108 [gcc-4_7-branch revision 195012] (SUSE Linux) Traceback (most recent call last): File "./spkg-install", line 4, in from sage.all import save ImportError: cannot import name save real0m0.012s user0m0.010s -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.