[sage-support] My local sage now asks for a user name and password, what to do?
I have now installed sage for ubuntu (really Lubuntu ...) from the available repository deb http://ppa.launchpad.net/aims/sagemath/ubuntu raring main and my installation is uptodate. Now when starting sage, then saying notebook() it opens a window in the browser which asks for username and password!!! but no way to making such a user. What to do? Kjetil -- 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: error running make test on sage 5.4 on Lubuntu 12.10
just to say that exactly the same error occurred con the new sage 5.4.1 kjetil On Wed, Nov 14, 2012 at 8:41 AM, Kjetil brinchmann Halvorsen wrote: > Hola! > > This is Lubuntu 12.10, with all updates, on an HP Pavillion dv4-51621a > (with intel core i5, if that matter) > > make runs without problems. then: > > > kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4$ ./sage -t > "devel/sage/sage/schemes/elliptic_curves/ell_number_field.py" > sage -t "devel/sage/sage/schemes/elliptic_curves/ell_number_field.py" > > > ** > File > "/home/kjetil/sage/sage-5.4/devel/sage/sage/schemes/elliptic_curves/ell_number_field.py", > line 277: > sage: E.simon_two_descent() > Expected: > Traceback (most recent call last): > ... > RuntimeError: > *** at top-level: ans=bnfellrank(K,[0,0,1, > *** ^ > *** in function bnfellrank: ...eqtheta,rnfeq,bbnf];rang= > *** bnfell2descent_gen(b > *** ^ > *** in function bnfell2descent_gen: ...riv,r=nfsqrt(nf,norm(zc)) > *** [1];if(DEBUGLEVEL_el > *** ^ > *** array index (1) out of allowed range [none]. > An error occurred while running Simon's 2-descent program > Got: > Traceback (most recent call last): > File "/home/kjetil/sage/sage-5.4/local/bin/ncadoctest.py", line > 1231, in run_one_test > self.run_one_example(test, example, filename, compileflags) > File "/home/kjetil/sage/sage-5.4/local/bin/sagedoctest.py", line > 38, in run_one_example > OrigDocTestRunner.run_one_example(self, test, example, > filename, compileflags) > File "/home/kjetil/sage/sage-5.4/local/bin/ncadoctest.py", line > 1172, in run_one_example > compileflags, 1) in test.globs > File "", line 1, in > E.simon_two_descent()###line 277: > sage: E.simon_two_descent() > File > "/home/kjetil/sage/sage-5.4/local/lib/python/site-packages/sage/schemes/elliptic_curves/ell_number_field.py", > line 305, in simon_two_descent > maxprob=maxprob, limbigprime=limbigprime) > File > "/home/kjetil/sage/sage-5.4/local/lib/python/site-packages/sage/schemes/elliptic_curves/gp_simon.py", > line 102, in simon_two_descent > raise RuntimeError, "\n%s\nAn error occurred while running > Simon's 2-descent program"%s > RuntimeError: > *** at top-level: ans=bnfellrank(K,[0,0,1, > *** ^ > *** in function bnfellrank: > ...eqtheta,rnfeq,bbnf];rang=bnfell2descent_gen(b > *** > ^ > *** in function bnfell2descent_gen: > ...riv,r=nfsqrt(nf,norm(zc))[1];if(DEBUGLEVEL_el > *** > ^ > *** array index (1) out of allowed range [none]. > An error occurred while running Simon's 2-descent program > ** > 1 items had failures: >1 of 18 in __main__.example_3 > ***Test Failed*** 1 failures. > For whitespace errors, see the file > /home/kjetil/.sage//tmp/ell_number_field_26399.py > [41.3 s] > > -- > The following tests failed: > > > sage -t "devel/sage/sage/schemes/elliptic_curves/ell_number_field.py" > Total time for all tests: 41.4 seconds > kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4$ > kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4$ > kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4$ > > Kjetil > > > -- > "If you want a picture of the future - imagine a boot stamping on the > human face - forever." > > George Orwell (1984) -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] error running make test on sage 5.4 on Lubuntu 12.10
Hola! This is Lubuntu 12.10, with all updates, on an HP Pavillion dv4-51621a (with intel core i5, if that matter) make runs without problems. then: kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4$ ./sage -t "devel/sage/sage/schemes/elliptic_curves/ell_number_field.py" sage -t "devel/sage/sage/schemes/elliptic_curves/ell_number_field.py" ** File "/home/kjetil/sage/sage-5.4/devel/sage/sage/schemes/elliptic_curves/ell_number_field.py", line 277: sage: E.simon_two_descent() Expected: Traceback (most recent call last): ... RuntimeError: *** at top-level: ans=bnfellrank(K,[0,0,1, *** ^ *** in function bnfellrank: ...eqtheta,rnfeq,bbnf];rang= *** bnfell2descent_gen(b *** ^ *** in function bnfell2descent_gen: ...riv,r=nfsqrt(nf,norm(zc)) *** [1];if(DEBUGLEVEL_el *** ^ *** array index (1) out of allowed range [none]. An error occurred while running Simon's 2-descent program Got: Traceback (most recent call last): File "/home/kjetil/sage/sage-5.4/local/bin/ncadoctest.py", line 1231, in run_one_test self.run_one_example(test, example, filename, compileflags) File "/home/kjetil/sage/sage-5.4/local/bin/sagedoctest.py", line 38, in run_one_example OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) File "/home/kjetil/sage/sage-5.4/local/bin/ncadoctest.py", line 1172, in run_one_example compileflags, 1) in test.globs File "", line 1, in E.simon_two_descent()###line 277: sage: E.simon_two_descent() File "/home/kjetil/sage/sage-5.4/local/lib/python/site-packages/sage/schemes/elliptic_curves/ell_number_field.py", line 305, in simon_two_descent maxprob=maxprob, limbigprime=limbigprime) File "/home/kjetil/sage/sage-5.4/local/lib/python/site-packages/sage/schemes/elliptic_curves/gp_simon.py", line 102, in simon_two_descent raise RuntimeError, "\n%s\nAn error occurred while running Simon's 2-descent program"%s RuntimeError: *** at top-level: ans=bnfellrank(K,[0,0,1, *** ^ *** in function bnfellrank: ...eqtheta,rnfeq,bbnf];rang=bnfell2descent_gen(b *** ^ *** in function bnfell2descent_gen: ...riv,r=nfsqrt(nf,norm(zc))[1];if(DEBUGLEVEL_el *** ^ *** array index (1) out of allowed range [none]. An error occurred while running Simon's 2-descent program ** 1 items had failures: 1 of 18 in __main__.example_3 ***Test Failed*** 1 failures. For whitespace errors, see the file /home/kjetil/.sage//tmp/ell_number_field_26399.py [41.3 s] -- The following tests failed: sage -t "devel/sage/sage/schemes/elliptic_curves/ell_number_field.py" Total time for all tests: 41.4 seconds kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4$ kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4$ kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4$ Kjetil -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] sage 5.4 rc4 test error
see inline. On Thu, Nov 8, 2012 at 11:25 AM, Jeroen Demeyer wrote: > What happens if you run the test separately with > ./sage -t "devel/sage/sage/schemes/elliptic_curves/ell_number_field.py" This is just to report that the same error occurs with the finally released version. I will follow up on that in a separate mail, running the extra test you give here. Kjetil > > I don't really have an idea what the problem could be, I haven't seen > this error on other systems with sage-5.4.rc4. > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > 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. > Visit this group at http://groups.google.com/group/sage-support?hl=en. > > -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] sage 5.4 rc4 test error
This is Lubuntu 12.10, uptodate system with kjetil@kjetil-HP-Pavilion-dv4-Notebook-PC:~/sage/sage-5.4.rc4$ gcc --version gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 compilation with make without problems, but then make test yterminates with: -- The following tests failed: sage -t -force_lib "devel/sage/sage/schemes/elliptic_curves/ell_number_field.py" Total time for all tests: 6216.2 seconds make: *** [test] Error 128 Kjetil -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] GPL and code generation using sage
I don't understand the problem. gcc, for instance, can be used to compile commercial software. Is'nt this the same situation? Kjetil On Thu, Sep 27, 2012 at 4:55 AM, Robert Bradshaw wrote: > On Wed, Sep 26, 2012 at 10:56 PM, Geoffrey Irving wrote: >> On Wed, Sep 26, 2012 at 10:42 PM, Robert Bradshaw >> wrote: >>> On Wed, Sep 26, 2012 at 8:54 PM, Geoffrey Irving wrote: On Wed, Sep 26, 2012 at 6:03 PM, Robert Bradshaw wrote: > On Wed, Sep 26, 2012 at 4:28 PM, Geoffrey Irving wrote: >> Hello, >> >> I recently used sage to write a code generation script for exact >> geometric predicates: >> >> https://github.com/otherlab/simplicity >> >> Since it's a python script that imports sage, the simplicity script is >> GPL. > > Not automatically; often Sage is used more as an interpreter than a > library: > http://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html#IfInterpreterIsGPL The opposite has been said in previous discussions on this mailing list: like most GPL python libraries, including sage is amount to linking against sage, which means the script doing the including must be GPL. I'm fine with this situation. >>> >>> The snippet you posted doesn't "link against" Sage anymore than >>> Python. I don't hold with the philosophy that all Sage worksheets are >>> automatically GPL. What about snippets of Sage code used as examples >>> in published works? I'm not a lawyer, but as far as I know not even >>> the lawyers have hashed this out. >> >> Here's an example of a thread with people voicing opinions in either >> direction (this one in favor of copyleft): >> >> http://www.mail-archive.com/sage-devel@googlegroups.com/msg23091.html > > Yes, I was an active participant in that thread, > http://www.mail-archive.com/sage-devel@googlegroups.com/msg23126.html > I don't think much has changed since then. > >> Unfortunately, in this situation I have to assume the worst, >> especially if the lawyers haven't hashed it out. > > Well, it's a question of ascertaining the risk. I think the risk is > low (that is the risk this being an actual violation as decided by the > courts, let alone the risk of actually being taken to court on it). > The more important factor is respecting the intent of the community, > which you're clearly trying to do. > >>> As another data point, the GNU Bison project has an exception, but >>> links in pure GPL libraries (iconv) that don't make mention of any >>> exception. My hypothesis is that this is OK because the part of the >>> source included in the output is part of Bison, not iconv. >> >> That's a good point, and would apply to my case as well (all the >> copied snippets are bits of C++ code unrelated to Sage). Not sure if >> I get it by the lawyers, but definitely worth a try. Thanks! > > (To go to one extreem, I suppose one could put all the C++ code > strings in a separate file and call them a second input to your > program, after all they're more data than code.) > > That being said, a runtime exemption could make a lot of sense, e.g. > if we want to augment our fast_callable classes to spit out chunks of > code in various languages. Okay. For now, it looks like the easiest way may be to port my code to sympy. >>> >>> That may be a fine thing to do, but it's sad when legal fluff does >>> nothing but add busywork... >> >> Agreed! Sage is a wonderful system, and it's a shame to not be able >> to use it. On the other hand, copyleft certainly isn't legal fluff, >> and people's choices should be respected. > > Oh, I agree. I'm talking about the corner cases like what line one > needs to cross for a simple script to be considered a derived work and > how that impacts re-distributing its output. I would be extremely > surprised if any Sage developer morally objects to you licensing this > output as you wish (though opinions may vary widely as to its > legality). > > - Robert > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > 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. > Visit this group at http://groups.google.com/group/sage-support?hl=en. > > -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] gcc included in sage?
I understand that sage include gcc as an spkg. How can I force make to use the included gcc? Kjetil -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] The future of Mathematica?
This is getting offtopic See inline. > I'm no windows fan. I use Solaris most of the time - only use windows > on my laptop. It's ok saying "Forget Windows", but a lot of people are > hapier with windows than linux. > > Take a look at this > > http://jameswharris.wordpress.com/2012/03/04/waiting-for-linux/ > > I know the person that wrote that is a pretty Unix system admin. I > know he has an excellent knowledge of Solaris (a real Unix system). Yes, that´s an interesting point. Here nis another story: On my daughters machines , I have installed Ubuntu, dual-booting with windows. They use linux most of the time! Why? "because, it is easier to use", they say. I didnt teach them to say that, (and if nI did, it wouldnt work, they can think for themselves now). kjetil > >> Especially once DirectX is workable in linux without the use of a >> virtual drive, or even wine. A lot more users will then head over aka >> gamers. Even recently the CEO of Red Hat has talked about planning on ways >> to stop the use of proprietary coding all over from commercial to industry, >> etc., and trying to get people into using open-source. Of course the average >> user will have to know more about computers. Plus linux use to be programmer >> friendly only before the graphical interface allowing the non-programmers to >> use it without having too many issues. So maybe in the future linux will be >> fully user friendly like windows without all of the issues MS has built into >> windows. Like I said it will be "eventually" a downfall for Mathematica. >> These events that I have mentioned will take time. > > I don't see Linux being the downfall of Mathematica myself. For a > start, Mathematica runs on Linux. > > I recently had a discussion with a sales rep from a vendor of HFSS - a > really expensive software package, that makes Mathematica seem like > freeware. He said most users were using Windows. > > I'm no fan of Windows, but it does seem easier to use than Linux. But > I have more control on Linux, which I personally like. But not > everyone does. > >> As for the symbolics Sage >> will eventually get the coding down to be on the level Mathematica is at >> with it's symbolics. > > I'm not so convinced myself. I think WRI can attract the best people > in this area. Whilst Sage will progress, so will MMA. I'm not so sure > Sage will ever catch up. > >> >> Eric > > > Dave > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] sage 5.0.rc0 bug! (in symbolic_sum)
On Wed, May 9, 2012 at 4:38 PM, Jeroen Demeyer wrote: > On 2012-05-09 22:35, Kjetil brinchmann Halvorsen wrote: >> sage: k = var('k') >> sage: (1/k**4).sum(k,1,00) >> 0 >> >> sage: sum(1/k**4,k,1,00) >> >> >> Kjetil >> > > Are you confusing 00 with oo for infinity: > > sage: var('k') > k > sage: sum(1/k**4,k,1,oo) > 1/90*pi^4 > sage: sum(1/k**4,k,1,Infinity) > 1/90*pi^4 > > -- Ooops! sorry for the noise. Kjetil > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!
Thanks. See inline below. On Tue, May 8, 2012 at 2:36 AM, Keshav Kini wrote: > Kjetil brinchmann Halvorsen writes: >> I will try, but since I have not done this sort of things with sage before, >> ¿How to do it? It is as simple as drop-in repacing one (or a few files) All >> the >> files have the same name(s) as corresonding old files, so now change to the >> Makefile is necessary? > > Well, if you go to the ticket page I linked, you will see there is a > list of commands you can paste into a terminal to do all the setup for > you. Basically it amounts to applying a bunch of patches to Sage and > installing a couple of SPKGs. > > (If you are not yet aware of it, larger parts of Sage such as bundled > applications, or for example the notebook, are distributed as .spkg > files, which are basically a tarball with an installer script inside. > See the Sage developers' guide for more info - it's in the docs.) I wnnt to the trac tickets page you referenced, and applied all the patches as shown there. But it does'nt seem to solve the problem! Here is what happens (again, inside emacs) kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage -- | Sage Version 5.0.rc0, Release Date: 2012-05-01 | | Type notebook() for the GUI, and license() for information.| -- ** ** * Warning: this is a prerelease version, and it may be unstable. * ** ** sage: sage: sage: sage: notebook() The notebook files are stored in: sage_notebook.sagenb Upgrading model version to version 1 Done upgrading to model version 1 --- RuntimeError Traceback (most recent call last) /home/kjetil/.sage/ in () /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/notebook_object.py in __call__(self, *args, **kwds) 204 """ 205 def __call__(self, *args, **kwds): --> 206 return self.notebook(*args, **kwds) 207 208 notebook = run_notebook.notebook_twisted /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/run_notebook.py in notebook_twisted(self, directory, port, interface, address, port_tries, secure, reset, require_login, accounts, openid, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet, subnets) 429 print "*" * 70 430 --> 431 port = find_next_available_port(interface, port, port_tries) 432 if open_viewer: 433 "Open viewer automatically isn't fully implemented. You have to manually open your web browser to the above URL." /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/misc/misc.py in find_next_available_port(interface, start, max_tries, verbose) 132 print "Port %s is already in use."%port 133 print "Trying next port..." --> 134 raise RuntimeError, "no available port." 135 136 RuntimeError: no available port. sage: (from a terminal emulator, the same thing happens) Kjetil > > -Keshav > > > Join us in #sagemath on irc.freenode.net ! > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: ./sage -docbuild ?
see inline. On Tue, May 8, 2012 at 12:11 AM, Johan Grönqvist wrote: > 2012-05-07 22:28, Kjetil brinchmann Halvorsen skrev: >> >> kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage -docbuild reference pdf >> [...] >> >> ! LaTeX Error: File `utf8x.def' not found. >> [...] >> >> ! ==> Fatal error occurred, no output PDF file produced! > > > > That command works on my wheezy, but I do not have that file in my > sage-directory, so I expect it uses my system-installation to get it. Do you > have the debian package texlive-latex-extra installed? > > (The package texlive-latex-extra contains a file named utf8x.def, as can be --- installing that now ... Thanks (I tried to search with apt-cache , but that didnt find anything. Will try with apt-file, suggested by another answer.) Kjetil > seen by, e.g., searching on .) > > Regards > > Johan > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] ./sage -docbuild ?
doing: kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage -docbuild reference pdf sphinx-build -b latex -d /home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/output/doctrees/en/reference /home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/en/reference /home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/output/latex/en/reference Running Sphinx v1.1.2 loading pickled environment... done . . terminates with: (./reference.tex LaTeX2e <2011/06/27> Babel and hyphenation patterns for english, dumylang, nohyphenation, us englishmax, ukenglish, nynorsk, bokmal, galician, catalan, spanish, loaded. (./sphinxmanual.cls Document Class: sphinxmanual 2009/06/02 Document class (Sphinx manual) (/usr/share/texlive/texmf-dist/tex/latex/base/report.cls Document Class: report 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty ! LaTeX Error: File `utf8x.def' not found. Type X to quit or to proceed, or enter new name. (Default extension: def) Enter file name: ! Emergency stop. l.131 \endinput ^^M ! ==> Fatal error occurred, no output PDF file produced! Transcript written on reference.log. make: *** [reference.pdf] Error 1 Build finished. The built documents can be found in /home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/output/pdf/en/reference ??? Kjetil -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!
see inline. On Mon, May 7, 2012 at 1:17 PM, Keshav Kini wrote: > Kjetil brinchmann Halvorsen writes: > > That is, the same problem. Kjetil > > Hmm. Well, I know this is a sort of asking a lot of you, but would you > try using the rewritten notebook version at trac ticket #11080 ( > http://trac.sagemath.org/sage_trac/ticket/11080 ) and see if that works? > Hopefully it will go into Sage soon - we're thinking in 5.1 - and we are > I will try, but since I have not done this sort of things with sage before, ¿How to do it? It is as simple as drop-in repacing one (or a few files) All the files have the same name(s) as corresonding old files, so now change to the Makefile is necessary? Kjetil > no longer maintaining the old notebook code (and haven't for about a > year and a half (!) now). > > Of course, if we find a bug in the old notebook code we can always try > to port it to the new notebook, but in many cases that bug might not > even exist in the new notebook, so if installing the new notebook makes > your problem go away then that would be the best outcome... > > -Keshav > > > Join us in #sagemath on irc.freenode.net ! > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!
see inline. On Mon, May 7, 2012 at 10:41 AM, Keshav Kini wrote: > Kjetil brinchmann Halvorsen writes: > > Notebook() is not working: (I am calling this from within a shell in > emacs) > > And if you try it from, say, bash? I note that the code gives up trying > to find ports if it receives 10 or more keyboard interrupts - perhaps > something about the input stream from Emacs is confusing it? > Trying from a terminal emulator: sage: notebook() The notebook files are stored in: sage_notebook.sagenb ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (114, 0)) --- RuntimeError Traceback (most recent call last) /home/kjetil/.sage/ in () /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds) 215 """ 216 def __call__(self, *args, **kwds): --> 217 return self.notebook(*args, **kwds) 218 219 notebook = run_notebook.notebook_twisted /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_twisted(self, directory, port, interface, address, port_tries, secure, reset, accounts, require_login, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet, subnets) 441 print "*" * 70 442 --> 443 port = find_next_available_port(interface, port, port_tries) 444 if open_viewer: 445 "Open viewer automatically isn't fully implemented. You have to manually open your web browser to the above URL." /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/misc/misc.pyc in find_next_available_port(interface, start, max_tries, verbose) 132 print "Port %s is already in use."%port 133 print "Trying next port..." --> 134 raise RuntimeError, "no available port." 135 136 RuntimeError: no available port. sage: That is, the same problem. Kjetil > > -Keshav > > > Join us in #sagemath on irc.freenode.net ! > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage 5.0 rc0
see below. On Mon, May 7, 2012 at 1:01 AM, Johan Grönqvist wrote: > 2012-05-07 04:16, Kjetil brinchmann Halvorsen skrev: > > >>Do you use anything that may affect sage's ability to open ports? >> >> >> My problem with answering is that I don't really know anything about >> "ports" . I guess that has something to do with networking, >> but nbothing more! Any hints about books/papers/netplaces to read to >> learn about "ports"? >> >> > This problem is probably beyond me, but someone else might answer, and you > have the other thread going on the same problem. I do not expect that the > text below will solve your problem, but perhaps it helps you understand the > error message better: > > > My (possibly incorrect) intuition about ports: > > We have networking and we need a way to organize the programs that want to > connect to the network. Let's imagine that the network card has 2^16 > different "connection points" that the programs can connect to, and let's > call them ports. When a program connects to another (on the same or a > different machine), it needs to communicate with a port, and the responding > program needs to "listen" to that port. As an example, my web server > listens to incoming requests from others, and it does so on port 80. Thus > if you want to see on of the web pages it serves, you send a request to > that computer, and send it to port 80 on that computer. This also works for > local networking, it does not matter if the request to port 80 came from > the outside or from another program running on the same machine. > > The sage notebook runs in a web server, and you connect to it locally (or > remotely if the notebook is configured to respond to requests from other > machines, which it is probably not, for security purposes. > > You can see some info about open ports by running "netstat -t -p". My sage > notebook runs on port 8000. > Here is my output from sudo netstat -t -p kjetil@kjetil:~$ sudo netstat -t -p [sudo] password for kjetil: Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 kjetil:38929mia04s04-in-f9.1e:https ESTABLISHED 4994/firefox-bin tcp0 0 kjetil:38531ec2-75-101-130-133:http TIME_WAIT - tcp0 0 kjetil:36936mia05s08-in-f11.1:https ESTABLISHED 4994/firefox-bin tcp0 0 kjetil:45665mia04s04-in-f3.1e:https TIME_WAIT - tcp0 0 kjetil:53141yh-in-f105.1e100.:https ESTABLISHED 4994/firefox-bin tcp0 0 kjetil:35941mia04s04-in-f21.1:https ESTABLISHED 4994/firefox-bin tcp0 0 kjetil:46639pc-178-224-45-190:https ESTABLISHED 4881/skype tcp0 0 kjetil:48800mia04s04-in-f5.1e:https TIME_WAIT - tcp0 0 kjetil:38928mia04s04-in-f9.1e:https ESTABLISHED 4994/firefox-bin tcp0 0 kjetil:53132yh-in-f105.1e100.:https TIME_WAIT - tcp0 0 kjetil:57393157.55.235.148:https ESTABLISHED 4881/skype tcp0 0 kjetil:38530ec2-75-101-130-133:http TIME_WAIT - tcp0 0 kjetil:44755pc-78-210-83-200.:https ESTABLISHED 4881/skype tcp0 0 kjetil:52682TGV.ANYCAST-FO.CHI:http ESTABLISHED 4994/firefox-bin tcp0 0 kjetil:45666mia04s04-in-f3.1e:https TIME_WAIT - tcp0 0 kjetil:35912mia04s04-in-f21.1:https ESTABLISHED 4994/firefox-bin kjetil@kjetil:~$ Kjetil > > > One example output line of the netstat command is > > tcp 0 0 johan-laptop.loca:3 87.117.201.130:ircd ESTABLISHED > 28025/xchat-gnome > > Saying that I have a tcp port open (there are two kinds, tcp and udp and > sage uses tcp), from my local machine, port 3 to 87.117.201.130 port > ircd (I assume this indicated the standard port for an irc client) and the > port was opened by the program xchat-gnome. > > The wikipedia page is at <http://en.wikipedia.org/wiki/** > Port_%28computer_networking%29<http://en.wikipedia.org/wiki/Port_%28computer_networking%29> > **> > > > > kjetil@kjetil:~/sage/sage-5.0.**rc0$ ./sage --ipython >> WARNING: Configuration file ipythonrc not found. Ignoring request. >> --**-- >> Traceback (most recent call last): >> File >> "/home/kjetil/sage/sage-5.0.**rc0/local/lib/python2.7/site-** >> packages/IPython/ConfigLoader.**py", >> line 66, in load >> fname = filefind(fname,incpath) >> File >> "/home/kjetil/sage/sage-
Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!
inline: On Sun, May 6, 2012 at 10:10 PM, P Purkayastha wrote: > Do you have some kind of firewall running? The error seems strange: > RuntimeError: no available port. > > Well, this is my private laptop. (used from the university' s network) I don know of any firewalls I have installed, and I can't imagine how any firewall on the university' s network could affect sage running locally on my machine? Kjetil > On Sunday, May 6, 2012 3:12:39 AM UTC+8, kjetil1001 wrote: >> >> This is debian wheezy, amd64. >> >> Notebook() is not working: (I am calling this from within a shell in >> emacs) >> >> notebook() >> sage: sage: sage: sage: sage: sage: sage: sage: The notebook files are >> stored in: sage_notebook.sagenb >> ERROR: An unexpected error occurred while tokenizing input >> The following traceback may be corrupted or invalid >> The error message is: ('EOF in multi-line statement', (114, 0)) >> >> >> --- >> RuntimeError Traceback (most recent call >> last) >> >> /home/kjetil/.sage/ in () >> >> /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/notebook_object.pyc >> in __call__(self, *args, **kwds) >> 215 """ >> 216 def __call__(self, *args, **kwds): >> --> 217 return self.notebook(*args, **kwds) >> 218 >> 219 notebook = run_notebook.notebook_twisted >> >> /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/run_notebook.pyc >> in notebook_twisted(self, directory, port, interface, address, port_tries, >> secure, reset, accounts, require_login, server_pool, ulimit, timeout, >> open_viewer, sagetex_path, start_path, fork, quiet, subnets) >> 441 print "*" * 70 >> 442 >> --> 443 port = find_next_available_port(interface, port, port_tries) >> 444 if open_viewer: >> 445 "Open viewer automatically isn't fully implemented. You >> have to manually open your web browser to the above URL." >> >> /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/misc/misc.pyc in >> find_next_available_port(interface, start, max_tries, verbose) >> 132 print "Port %s is already in use."%port >> 133 print "Trying next port..." >> --> 134 raise RuntimeError, "no available port." >> 135 >> 136 >> >> RuntimeError: no available port. >> sage: >> >> >> Kjetil >> >> >> >> -- >> "If you want a picture of the future - imagine a boot stamping on the >> human face - fo >> > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage 5.0 rc0
see inline. On Sun, May 6, 2012 at 1:20 AM, Johan Grönqvist wrote: > I hope others try to answer as well, as I probably do not know enough to > help you solve it. > > 2012-05-05 21:37, Kjetil brinchmann Halvorsen skrev: > >File >> "/home/kjetil/sage/sage-5.0.**rc0/devel/sagenb/sagenb/misc/**misc.py", >> line >> 134, in find_next_available_port >> raise RuntimeError, "no available port." >> RuntimeError: no available port. >> >> ** >> > > From looking at the file: > > Sage loops through all ports in some interval, looking for one it can use, > but does not find any. This is also the reason you fail to start the > notebook, I would guess. > > Do you use anything that may affect sage's ability to open ports? My problem with answering is that I don't really know anything about "ports" . I guess that has something to do with networking, but nbothing more! Any hints about books/papers/netplaces to read to learn about "ports"? > > > sage -t -force_lib "devel/sage/sage/tests/**cmdline.py" >> >> ** >> File "/home/kjetil/sage/sage-5.0.**rc0/devel/sage/sage/tests/** >> cmdline.py", >> line 314: >> sage: err >> Expected: >> '' >> Got: >> 'WARNING: Configuration file ipythonrc not found. Ignoring request. >> > > > Here, the test tries to start "./sage --ipython" and ask it to compute > "3**33", but it warns about a configuration file missing. If you run > "./sage --ipython", do you get a nice prompt where you can type 3**33? > > OK, this is what is happening: (again, whitin an emacs shell) kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage --ipython WARNING: Configuration file ipythonrc not found. Ignoring request. Traceback (most recent call last): File "/home/kjetil/sage/sage-5.0.rc0/local/lib/python2.7/site-packages/IPython/ConfigLoader.py", line 66, in load fname = filefind(fname,incpath) File "/home/kjetil/sage/sage-5.0.rc0/local/lib/python2.7/site-packages/IPython/genutils.py", line 554, in filefind ' not found in current or supplied directories:' + `alt_dirs` IOError: File'ipythonrc' not found in current or supplied directories:u'/home/kjetil/.ipython' WARNING: Problems loading configuration file 'ipythonrc' Starting with default -bare bones- configuration. --- ImportError Traceback (most recent call last) /home/kjetil/sage/sage-5.0.rc0/local/lib/python2.7/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload) 61 reload(sys.modules[modname]) 62 else: ---> 63 __import__(modname) 64 65 ImportError: Bad magic number in /home/kjetil/.ipython/ipy_user_conf.pyc WARNING: /home/kjetil/.ipython/ipy_user_conf.py does not exist, please run %upgrade! WARNING: Loading of ipy_user_conf failed. Python 2.7.2 (default, May 3 2012, 22:40:27) Type "copyright", "credits" or "license" for more information. IPython 0.10.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: 3**33 Out[1]: 555906056623 In [2]: Kjetil > On my wheezy: > > > --**-- > johan@johan-laptop:~/**Applications/sage-5.0.rc0$ ./sage --ipython > Python 2.7.2 (default, May 2 2012, 23:01:21) > Type "copyright", "credits" or "license" for more information. > > IPython 0.10.2 -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object'. ?object also works, ?? prints more. > > In [1]: 3**33 > Out[1]: 555906056623 > > In [2]: > --**- > > > > On Fri, May 4, 2012 at 8:35 PM, Kjetil brinchmann Halvorsen >> mailto:kjetil1...@gmail.com>> wrote: >> >>I downloaded the rc0 for sage 5.0, compiled without problems, and >>then run make test >> >>This was reported: >> >>The following tests failed: >> >> >> sage -
[sage-support] Re: sage 5.0 rc0
OK, here are output from test.log (yes, I am using an English locale) File "/home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/misc/misc.py", line 134, in find_next_available_port raise RuntimeError, "no available port." RuntimeError: no available port. ** And: sage -t -force_lib "devel/sage/sage/tests/cmdline.py" ** File "/home/kjetil/sage/sage-5.0.rc0/devel/sage/sage/tests/cmdline.py", line 314: sage: err Expected: '' Got: 'WARNING: Configuration file ipythonrc not found. Ignoring request. kjetil On Fri, May 4, 2012 at 8:35 PM, Kjetil brinchmann Halvorsen < kjetil1...@gmail.com> wrote: > I downloaded the rc0 for sage 5.0, compiled without problems, and then run > make test > > This was reported: > > The following tests failed: > > > sage -t -force_lib "devel/sagenb-main/sagenb/misc/misc.py" > sage -t -force_lib "devel/sage/sage/tests/cmdline.py" > Total time for all tests: 12211.8 seconds > make: *** [test] Error 128 > > > -- > This is debian wheezy amd64, with > ~/sage/sage-5.0.rc0 $ gcc --version > gcc (Debian 4.6.3-1) 4.6.3 > Copyright (C) 2011 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > Kjetil > > > -- > "If you want a picture of the future - imagine a boot stamping on the > human face - forever." > > George Orwell (1984) > > > > -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] sage 5.0 rc0
I downloaded the rc0 for sage 5.0, compiled without problems, and then run make test This was reported: The following tests failed: sage -t -force_lib "devel/sagenb-main/sagenb/misc/misc.py" sage -t -force_lib "devel/sage/sage/tests/cmdline.py" Total time for all tests: 12211.8 seconds make: *** [test] Error 128 -- This is debian wheezy amd64, with ~/sage/sage-5.0.rc0 $ gcc --version gcc (Debian 4.6.3-1) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Kjetil -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] solving system of ODEs in sage
Hola! I tried the following: u = var('u'); v = var('v') F = function('F',u) G = function('G', v) DEs = [diff(F,u)*(G(u)-G(0))==1,diff(G,v)*(F(1)-F(v))==1] desolve_system(DEs,[F,G], ivar=[u,v]) but result are: __main__:1: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...) Traceback (click to the left of this block for traceback) ... TypeError: ECL says: Error executing code in Maxima: desolve: can't handle this case. Any ideas? Kjetil -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Help with programming symbolic expressions!
Hola! I experimented almost a complete day with the seemingly simple problem, I want to program a simple function, like: f(u,v)=\cases{ 2, if u>=v, 0, else.} and similar functions. As I want tom do calculus, I need symbolic expressions, not Python functions. I tries using thing like step(x) = Piecewise([[(-infinity,0), lambda x : 0],[(0,infinity), lambda x : 1]],x) and then f(u,v) = step(u-v)*2 but it does not work. Ideas? Also, Any suggestions about where to read about such things? Kjetil -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org