Re: [sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)
OK, the problem is as follows. For very straightforward C programs, no problems occur on t2 because the compiler emits inline code for everything. However, once the program becomes too complicated for it to do this, it uses libgcc: http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html The problem is, when the compiler compiles such a program, the linker does not know where to find libgcc on the machine. It needs to know that it is in: /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 However, this is not in /etc/ld.so.conf, which does not exist on Solaris machines, nor is it in LD_LIBRARY_PATH. Why it won't work with this in LD_LIBRARY_PATH_64 I do not know. But either way, this problem is not something we can work around in MPIR, that I know of. It's just that MPIR uses some very complex arithmetic expressions for which gcc is unable to emit inline assembly. Even writing a basic test case that exhibits this failure would be difficult. I've no idea what the solution to the problem is. Back to the sparc expert for this one! Bill. 2010/1/28 Bill Hart goodwillh...@googlemail.com: One sensible solution would seem to be to set LD_LIBRARY_PATH_64=/usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 on t2, but this actually doesn't seem to work. I'm not sure why. However it seems that one can just add /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 to the LD_LIBRARY_PATH (it doesn't matter whether at the beginning or end) and this fixes the problems on t2. Shouldn't this be done globally for all users? Bill. 2010/1/28 Bill Hart goodwillh...@googlemail.com: 2010/1/28 Dr. David Kirkby david.kir...@onetel.net: Bill Hart wrote: 2010/1/28 Dr. David Kirkby david.kir...@onetel.net: The problem is that 64-bit libraries should never be in /usr/local/lib. Instead they should be in /usr/local/lib/sparcv9. I am not installing MPIR on these machines, as I do not have root access on either. Thus whatever is in /usr/local/lib is not my responsibility. But I was using a compiler installed in /usr/local. When that compiler was installed, by default it uses /usr/local/man - man pages /usr/local/bin - binaries /usr/local/lib - 32-bit libraries /usr/local/lib/sparcv9 - 64-bit libraries. To answer your other question about 't2'. Agreed it has no /usr/local/lib/sparcv9, but gcc is not installed in /usr/local. Instead gcc is installed under /usr/local/gcc-4.4.1-sun-linker/ So the 32-bit libraries will be under /usr/local/gcc-4.4.1-sun-linker/lib and the 64-bit libraries under /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9. And indeed if I add this to LD_LIBRARY_PATH, MPIR passes its tests. Is this a standard directory that libtool should know to look in? $ ls /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 libgcc_s.so libgomp.so.1 libssp.so.0.0.0 libgcc_s.so.1 libgomp.so.1.0.0 libstdc++.a libgfortran.a libgomp.spec libstdc++.la libgfortran.la libiberty.a libstdc++.so libgfortran.so libssp.a libstdc++.so.6 libgfortran.so.3 libssp.la libstdc++.so.6.0.12 libgfortran.so.3.0.0 libssp_nonshared.a libsupc++.a libgomp.a libssp_nonshared.la libsupc++.la libgomp.la libssp.so libgomp.so libssp.so.0 Libtool builds the MPIR library in a directory in the MPIR source tree, then links against that. This works on every other architecture I am aware of. libtool picks the right libraries under many programs in Solaris. I would suggest there is some error in how libtool is being used. I would ask on the libtool mailing list, and see if they can help you. Most platforms do not support both 32 and 64-bit builds, so most platforms do not have to have different directories for 32 and 64-bit libraries. The compiler should know to pick up the correct library. I've no idea why it is not in this case, but I can assure you there are many programs I've built as 64-bit under Solaris on SPARC which use libtool. It's because LD_LIBRARY_PATH is set incorrectly on t2. You said it did not build on UltraSPARC II. I suspect you will find it will not build on any SPARC system. It does build in the UltraSPARC II. I was only looking at the output of the C++ tests, and these had always failed on that machine, but this is due to a library which is completely missing from the machine. I can't change that as I do not have root access. It has failed for every version of MPIR. Libtool builds the MPIR library in a directory in the MPIR source tree, then links against that. This works on every other architecture I am aware of. Loads of packages build in Sage with libtool, and do not have this problem. Perhaps there is some mis-configuration of libtool. If the compiler is called with the -m64 option, and asked to link against one of its libraries, it should automatically know to look in the sparcv9 subdirectory. That's probably true, if the sparcv9 directory is in a
Re: [sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)
Ah, got it. LD_LIBRARY_PATH_64 needs to also contain /home/wbhart/mpir-1.3.0/.libs. Basically if LD_LIBRARY_PATH_64 is not specified at all, i.e. left blank, the linker uses whatever is in LD_LIBRARY_PATH. Otherwise it uses LD_LIBRARY_PATH_64 exclusively, which means that *all* 64 bit library paths must be in LD_LIBRARY_PATH_64. So, in order to make MPIR work on t2, we'd need LD_LIBRARY_PATH_64 to be set globally for users *and* we'd need libtool to recognise that it needs to set LD_LIBRARY_PATH_64. Unfortunately libtool doesn't do this automatically. So this is seems to be a bug in the version of libtool we use. Another solution is to set LD_LIBRARY_PATH_64 to include $LD_LIBRARY_PATH. This actually works because the substitution is done live by the shell. In other words, if LD_LIBRARY_PATH_64 is set to /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9:$LD_LIBRARY_PATH for all users of t2 globally, I believe MPIR will work just fine on that machine. Bill. 2010/1/29 Bill Hart goodwillh...@googlemail.com: OK, the problem is as follows. For very straightforward C programs, no problems occur on t2 because the compiler emits inline code for everything. However, once the program becomes too complicated for it to do this, it uses libgcc: http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html The problem is, when the compiler compiles such a program, the linker does not know where to find libgcc on the machine. It needs to know that it is in: /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 However, this is not in /etc/ld.so.conf, which does not exist on Solaris machines, nor is it in LD_LIBRARY_PATH. Why it won't work with this in LD_LIBRARY_PATH_64 I do not know. But either way, this problem is not something we can work around in MPIR, that I know of. It's just that MPIR uses some very complex arithmetic expressions for which gcc is unable to emit inline assembly. Even writing a basic test case that exhibits this failure would be difficult. I've no idea what the solution to the problem is. Back to the sparc expert for this one! Bill. 2010/1/28 Bill Hart goodwillh...@googlemail.com: One sensible solution would seem to be to set LD_LIBRARY_PATH_64=/usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 on t2, but this actually doesn't seem to work. I'm not sure why. However it seems that one can just add /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 to the LD_LIBRARY_PATH (it doesn't matter whether at the beginning or end) and this fixes the problems on t2. Shouldn't this be done globally for all users? Bill. 2010/1/28 Bill Hart goodwillh...@googlemail.com: 2010/1/28 Dr. David Kirkby david.kir...@onetel.net: Bill Hart wrote: 2010/1/28 Dr. David Kirkby david.kir...@onetel.net: The problem is that 64-bit libraries should never be in /usr/local/lib. Instead they should be in /usr/local/lib/sparcv9. I am not installing MPIR on these machines, as I do not have root access on either. Thus whatever is in /usr/local/lib is not my responsibility. But I was using a compiler installed in /usr/local. When that compiler was installed, by default it uses /usr/local/man - man pages /usr/local/bin - binaries /usr/local/lib - 32-bit libraries /usr/local/lib/sparcv9 - 64-bit libraries. To answer your other question about 't2'. Agreed it has no /usr/local/lib/sparcv9, but gcc is not installed in /usr/local. Instead gcc is installed under /usr/local/gcc-4.4.1-sun-linker/ So the 32-bit libraries will be under /usr/local/gcc-4.4.1-sun-linker/lib and the 64-bit libraries under /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9. And indeed if I add this to LD_LIBRARY_PATH, MPIR passes its tests. Is this a standard directory that libtool should know to look in? $ ls /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 libgcc_s.so libgomp.so.1 libssp.so.0.0.0 libgcc_s.so.1 libgomp.so.1.0.0 libstdc++.a libgfortran.a libgomp.spec libstdc++.la libgfortran.la libiberty.a libstdc++.so libgfortran.so libssp.a libstdc++.so.6 libgfortran.so.3 libssp.la libstdc++.so.6.0.12 libgfortran.so.3.0.0 libssp_nonshared.a libsupc++.a libgomp.a libssp_nonshared.la libsupc++.la libgomp.la libssp.so libgomp.so libssp.so.0 Libtool builds the MPIR library in a directory in the MPIR source tree, then links against that. This works on every other architecture I am aware of. libtool picks the right libraries under many programs in Solaris. I would suggest there is some error in how libtool is being used. I would ask on the libtool mailing list, and see if they can help you. Most platforms do not support both 32 and 64-bit builds, so most platforms do not have to have different directories for 32 and 64-bit libraries. The compiler should know to pick up the correct library. I've no idea why it is not in this case, but I can assure you there are many programs I've
[sage-support] Re: examples of using R
Hi, I've search on http://rpy.sourceforge.net/ and use R with commands inside a Sage script as following: from sage.all import * def iunif(a,b): return Integer(fround(r.runif(1,RDF(a),RDF(b)),0)) def runif(a,b,prec): return RDF(fround(r.runif(1,RDF(a),RDF(b)),prec)) def rbernoulli(): return r.rbinom(1, 1, 0.5)._sage_() From Sage I've used RDF because R needs reals and not symbolic expressions and used _sage_() to convert from R objects to Sage objects. I have problems with: r.set_seed = accept only one argument r graphics = could not got them to appear in Sage environment. I'm no expert in Sage so I welcome any suggestion to improve the above commands. Pedro Cruz On Jan 29, 4:02 am, Gokhan Sever gokhanse...@gmail.com wrote: On Jan 28, 8:00 pm, Ondrej Certik ond...@certik.cz wrote: Hi, are there some examples how to use R from Sage? I tried to search here: http://www.sagemath.org/help.html http://www.sagemath.org/doc/reference/ I also tried to search sage-devel, for R and R statistics and R statistical, but didn't find anything. So the next time, I'll at least find my own message, and hopefully some hints. :) Ondrej Hi Ondrej, A couple sources I can point out: http://sage.math.washington.edu/home/mhansen/sage-epydoc/sage.interfa... (Interestingly this doesn't show up on the main reference --http://www.sagemath.org/doc/reference/interfaces.html) Might need to let SAGE guys know about this, on sage-devel or open a documentation enhancement etc. :) http://groups.google.com/group/sage-support/browse_thread/thread/53d6... Also sage-notebook has an r mode you can directly enter R commands. y - c(1, 2, 3) instead of y = r(c(1, 2, 3)) I know it is tricky to search terms like R or C. Python is very easy to find although at time it interferes with the snake and monthy :) On Jan 29, 4:02 am, Gokhan Sever gokhanse...@gmail.com wrote: On Jan 28, 8:00 pm, Ondrej Certik ond...@certik.cz wrote: Hi, are there some examples how to use R from Sage? I tried to search here: http://www.sagemath.org/help.html http://www.sagemath.org/doc/reference/ I also tried to search sage-devel, for R and R statistics and R statistical, but didn't find anything. So the next time, I'll at least find my own message, and hopefully some hints. :) Ondrej Hi Ondrej, A couple sources I can point out: http://sage.math.washington.edu/home/mhansen/sage-epydoc/sage.interfa... (Interestingly this doesn't show up on the main reference --http://www.sagemath.org/doc/reference/interfaces.html) Might need to let SAGE guys know about this, on sage-devel or open a documentation enhancement etc. :) http://groups.google.com/group/sage-support/browse_thread/thread/53d6... Also sage-notebook has an r mode you can directly enter R commands. y - c(1, 2, 3) instead of y = r(c(1, 2, 3)) I know it is tricky to search terms like R or C. Python is very easy to find although at time it interferes with the snake and monthy :) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: [sage-edu] sage notebook not reachable from outside virtualbox
Hi Pawel, I'm CC'ing your email to the sage-support mailing list, where more people could help out with the problem you're reporting. On Fri, Jan 29, 2010 at 10:14 PM, Pawel Bartoszek pawelbartos...@gmail.com wrote: I have been using Sage in teaching for some while now and I have huge issues with VirtualBox. Generally the problem is that the students cannot access the Ip- address in question from their firefox browser. Sometimes this never works and sometimes this works for first few sessions and then fails to work after that. I in fact have a similiar problem. I can thus access the notebook only VIA the virtual machine which wouldn't be so bad, but i haven't yet figured out ways to move files from the virtual machine to windows (is that possible without the commercial addition?) Has anyone had similiar issues, any comments or ideas for solutions? -- Regards Minh Van Nguyen -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Irreducibility of a polynomial
How one can check weather a polynomial f(x,y) is irreducible over rational or not? -- 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: examples of using R
Hi, On Fri, Jan 29, 2010 at 5:27 AM, kcrisman kcris...@gmail.com wrote: Another thing you can do is type r.? and you will get a lot of commands which should work. In my experience, though, it's not always obvious how to use every command - sometimes arguments in R need to be input as strings, for instance, though definitely not always. On the plus side, the R help works more or less as advertised. I'm not sure why Pedro needs to have everything RDF or _sage_ to go back and forth; that should be taken care of in the R interpreter, as long as your inputs are reals when you run the script - ? When the next version of Sage comes out, we will also finally have all recommended packages installed, so it should become much easier to use it. And of course Gokhan's idea is also a very good one, to use the r option (or %r, I think, in an individual cell) in the notebook. Thanks all of you for the useful input. It works for me. The reason I asked is that I was that we just presented how to use FEMhub (femhub.org), which is based on Sage (it doesn't contain R though) at our colloquium, and then I was in the computer lab and one professor was teaching statistics in R, explaining how to download/install it, and then they were using it as a desktop application, so I had first hand experience how people use R. And I am glad I use Python. The devil is in the details. So I will mention Sage to him together with some examples how to use R in it. Ondrej -- 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] COIN Linear Programming
Hi! I'm trying to use COIN to solve a MixedIntegerLinearProgram in sage. When I get to the command sage: p.solve(solver=Coin) I get an error saying Coin/CBC is not installed and cannot be used to solve this MixedIntegerLinearProgram. To install it, you can type in Sage: install_package('cbc') However, I have installed Coin/CBC. And in fact, if I try the command sage: install_package('cbc') I get an error saying Package is already installed. So one part of sage thinks it is installed, while another does not! Any help on resolving this issue would be greatly appreciated. The sage install is a source install on an ubuntu server. -Tyler -- 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] COIN Linear Programming
Hi Tyler, On Sat, Jan 30, 2010 at 3:20 AM, Tyler tseacr...@gmail.com wrote: SNIP However, I have installed Coin/CBC. And in fact, if I try the command sage: install_package('cbc') I get an error saying Package is already installed. So one part of sage thinks it is installed, while another does not! I think the mismatch is due to the compiled Sage library, which lives under SAGE_ROOT/devel/sage/. After you have installed CBC or GLPK, you also need to run the command ./sage -b This would get Sage in sync with the installed CBC or GLPK library. The way MixedIntegerLinearProgram, or an interface to CBC/GLPK, is written is that when you compile Sage from source, the relevant part concerning CBC/GLPK is not compiled together with the Sage library. After you have compiled Sage and you have installed CBC or GLPK, you also need to invoke the above command so that the relevant interface to CBC/GLPK is updated to account for the newly installed library. Someone recently emailed me about this as well. Here's my response, so it's recorded somewhere for people to read: --- begin transcript --- Is there a way in spkg-install to ask sage to rebuild itself after adding the packages ? You could put the following line at the end of the installation script spkg-install $SAGE_LOCAL/bin/sage-build The command sage -b invokes that script. I patched glpk-4.38.p4 with this line. But no matter how much I tested out the patched GLPK spkg, I would still need to do ./sage -b to get Sage to build the GLPK specific code. Putting the following line at the end of spkg-install works $SAGE_LOCAL/bin/sage-build -b But this will actually rebuild the whole Sage library, which takes much longer than if you do ./sage -b. Perhaps you could mention in the documentation for the function/class that uses GLPK/CBC, asking user to run ./sage -b after installing any of these two spkg's. People on the sage-devel mailing list might know of a better way to patch spkg-install for GLPK or CBC. -- Regards Minh Van Nguyen -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Old Notebook retrieval
(Yes.) I have both 4.2.1 and 4.3 in VirtualBox. I have a couple of worksheets (only one is important) in 4.2.1, and am trying to get them to 4.3. I have used the save-to-zip approach, as per instructions, and pulled it into 4.3. What I get is an ancient trial worksheet that I used to test 4.2.1 on. This happens repeatedly ( ie- filename.zip (1)(2)... and filename.zip(3)--so the files are new, but their content is old. TP On Jan 28, 8:51 am, Jason Grout jason-s...@creativetrax.com wrote: TimP wrote: This is apparently an old subject. My new 4.3 version of SAGE can not open current copies of the notebooks I have in the earlier version of SAGE (4.2.1). The old version seems unable to download current editions of the notebook's worksheets. Or--the new version can't find them. I believe its the former. I don't know how to get at the stored files. I just realized that the VirtualBox is a Linux-like thing, and (being new to bash, etc) I was able to find my way around directories--and found the zip files. But that doesn't help me get anything done (I don't even know how to open a zip file in the shell-- nor would I know what to do with it once I did. The bash directories, of course, don't appear anywhere in my Windows directories. I'm probably missing something somewhere in a tutorial or two - -but are there any words of advise out there. (I just tried the terminal version of sage, and like it--but don't know if work can be saved from it.) What exactly is your situation? Are you running an old copy (pre-4.2.1) in VirtualBox, and 4.3 in VirtualBox, and want to get your notebook to move over to the new version? Or are you uploading individual worksheets to the 4.3 version in VirtualBox? Is there a specific worksheet that is causing the problem that you can post? Thanks, Jason -- Jason Grout- Hide quoted text - - Show quoted text - -- 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] Irreducibility of a polynomial
On Fri, Jan 29, 2010 at 5:06 AM, Santanu Sarkar sarkar.santanu@gmail.com wrote: How one can check weather a polynomial f(x,y) is irreducible over rational or not? sage: R.x,y = QQ[] sage: f = (x^3-x*y+y^2-x)*(x^5-3/2*x-y); f x^8 - x^6*y + x^5*y^2 - x^6 - 3/2*x^4 - x^3*y + 3/2*x^2*y - 1/2*x*y^2 - y^3 + 3/2*x^2 + x*y sage: f.factor() (1/2) * (x^3 - x*y + y^2 - x) * (2*x^5 - 3*x - 2*y) sage: len(f.factor()) 2 We should have len(f.factor()) == 1 when f is irreducible. I'm skeptical that the above function is provably correct, by the way, since it calls singular, and I don't trust singular's factor function, personally... William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Irreducibility of a polynomial
On Jan 29, 2010, at 11:55 AM, William Stein wrote: On Fri, Jan 29, 2010 at 5:06 AM, Santanu Sarkar sarkar.santanu@gmail.com wrote: How one can check weather a polynomial f(x,y) is irreducible over rational or not? sage: R.x,y = QQ[] sage: f = (x^3-x*y+y^2-x)*(x^5-3/2*x-y); f x^8 - x^6*y + x^5*y^2 - x^6 - 3/2*x^4 - x^3*y + 3/2*x^2*y - 1/2*x*y^2 - y^3 + 3/2*x^2 + x*y sage: f.factor() (1/2) * (x^3 - x*y + y^2 - x) * (2*x^5 - 3*x - 2*y) sage: len(f.factor()) 2 We should have len(f.factor()) == 1 when f is irreducible. I'm skeptical that the above function is provably correct, by the way, since it calls singular, and I don't trust singular's factor function, personally... To check if f (or one if its factors) is actually irreducible one could find a specialization down one variable that is irreducible (I think the univariate case uses Pari). sage: f = R.random_element() + R.random_element(5) sage: len(f.factor()) 1 sage: g = QQ['x'](f.subs(y=5)) sage: g.is_irreducible() True - Robert -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Cannot run Sage
Hi guyz... im using the binary version of sage for Arch Linux. However, when i run sage, i got a long error message. I post the error message on the attachment. I was able to use sage before, without any error. But the error occured this morning. so im actually confused why i got the error. Thanks in advance -- 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 sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook 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', (69, 0)) 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', (47, 0)) --- RuntimeError Traceback (most recent call last) /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname) 64 reload(sys.modules[modname]) 65 else: --- 66 __import__(modname) 67 68 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/bin/ipy_profile_sage.py in module() 5 preparser(True) 6 7 import sage.all_cmdline 8 sage.all_cmdline._init_cmdline(globals()) 9 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/all_cmdline.py in module() 12 try: 13 --- 14 from sage.all import * 15 from sage.calculus.predefined import x 16 preparser(on=True) /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/all.py in module() 62 get_sigs() 63 --- 64 from sage.misc.all import * # takes a while 65 66 from sage.misc.sh import sh /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/misc/all.py in module() 68 from sage_eval import sage_eval, sageobj 69 --- 70 from sage_input import sage_input 71 72 from cython import cython_lambda, cython_create_local_so /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/misc/sage_input.py in module() 161 162 -- 163 from sage.misc.functional import parent
[sage-support] Re: COIN Linear Programming
Hello Tyler !!! Minh, as is his custom, gave you the perfect answer. I also received several emails about it, and I am still trying to design an acceptable answer. For the moment, I only added a line about it at the end of a tutorial on LP using Sage, which may interest you too : http://bit.ly/5lUslr Thank you for reporting such bugs :-) Nathann -- 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] Cannot run Sage
Hi, If you got the binary version of sage-4.3.1 for 32-bit Arch Linux from the downloads web page, it's the one I built on my system. And sure enough, I had the same problem as you yesterday. Let me guess: did you update your system? In particular, did you upgrade your gcc from 4.4.2 to 4.4.3 recently? Somehow that messes things up (I'm not sure why). In any case, I had to rebuild Sage from scratch on my machine. I will make a new binary distribution and upload it somewhere, and I'll send you the link when that's done. Best, Alex On Sat, 30 Jan 2010 10:21:45 +0700, A. Akbar Hidayat keri...@gmail.com wrote: Hi guyz... im using the binary version of sage for Arch Linux. However, when i run sage, i got a long error message. I post the error message on the attachment. I was able to use sage before, without any error. But the error occured this morning. so im actually confused why i got the error. Thanks in advance -- 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 Non-text part: text/html sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook 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', (69, 0)) 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', (47, 0)) --- RuntimeError Traceback (most recent call last) /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname) 64 reload(sys.modules[modname]) 65 else: --- 66 __import__(modname) 67 68 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/bin/ipy_profile_sage.py in module() 5 preparser(True) 6 7 import sage.all_cmdline 8 sage.all_cmdline._init_cmdline(globals()) 9 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/all_cmdline.py in module() 12 try: 13 --- 14 from sage.all import * 15 from sage.calculus.predefined import x 16 preparser(on=True) /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/all.py in module() 62 get_sigs() 63 --- 64 from sage.misc.all import * # takes a while 65 66 from sage.misc.sh import sh /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/misc/all.py in module() 68 from sage_eval import