[sage-support] Re: Cannot copy on OSX
On Mar 15, 5:04 pm, Jim Clark jimfortheea...@earthlink.net wrote: On Mar 14, 2009, at 4:52 PM, mabshoff wrote: Hi Jim, I have downloaded both Michael's .dmg and the one from http:// sage.math.washington.edu/sage/osx/powerpc/index.html In both cases, after I start sage, it fails as follows: (My computer is a 300 MHz G3 running OSX 10.4.) Hmm, I am not 100% sure the binary will run on a G3. IIRC some people have reported working binaries on G3 CPUs, but that might have been a while. Can you check if the md5sum of the dmg matches? mabsh...@sage:/scratch/mabshoff/sage-3.4$ md5sum ~/sage-3.4-OSX-10.4- PowerMacintosh-Darwin.dmg 3285260d94023d27a86faeb05bd0dcef /home/mabshoff/sage-3.4-OSX-10.4- PowerMacintosh-Darwin.dmg I do not think that this is the problem though - see below. -- | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information. | -- The SAGE install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Do not interrupt this. SNIP ImportError: dlopen(/Applications/sage/local/lib/python2.5/site- packages/sage/misc/randstate.so, 2): Library not loaded: /tmp/fooo/ sage-3.4/local/lib/libgmp.3.dylib Referenced from: /Applications/sage/local/lib//libcsage.dylib Reason: no suitable image found. Did find: /Applications/sage/local/lib//libgmp.3.dylib: incompatible cpu-subtype This seems to be the trouble, i.e. the MPIR we build on OSX 10.4/PPC is on a G4 and now seems to produce a library that does not run on a G3. That might be caused by newer XCode releases, but I am not 100% sure. I do not think that we changed anything inside MPIR that would cause this. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] rpy bug in 3.4
Hi, I just upgraded to 3.4 via sage -upgrade I wanted to recommend Sage to colleagues which use R, since R doesn't have any thing like the sage Notebook. However after starting a new worksheet and setting the sage notebook to evaluate all cells as R (via pull-down menu) I got the following error: library(sp) Traceback (most recent call last): File stdin, line 1, in module File /home/fccoelho/.sage/sage_notebook/worksheets/admin/5/code/ 2.py, line 6, in module print _support_.syseval(r, ur'''library(sp)''', '/home/ fccoelho/.sage/sage_notebook/worksheets/admin/5/cells/0') File /home/fccoelho/Downloads/sage-3.3/local/lib/python2.5/site- packages/sage/server/support.py, line 353, in syseval return system.eval(cmd, sage_globals, locals = sage_globals) File /home/fccoelho/Downloads/sage-3.3/local/lib/python2.5/site- packages/sage/interfaces/r.py, line 982, in eval ret = Expect.eval(self, code, synchronize=True, *args,**kwds) TypeError: eval() got multiple values for keyword argument 'synchronize' This seem like a sage bug, am I right? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem after moving sage folder
Thanks for your help! cp does not have the -a option on my mac and cp -pR leads to the following error message after startup: Warning: something went wrong updating the easy-install.pth file. However, this time no other problems occurred and I was able to run the notebook server from the new directory, so I proceeded with running ./sage -upgrade. Another warning message came up: WARNING: This is a source/based upgrade, which could take hours, fail and render your Sage install useless!! It's not a problem since I'm running it on the Sage copy now, but 'hours' is what a fresh compilation from source would take anyway, so would I possibly be better off installing the whole thing from source? I'll see how long it takes. If it works, I shall try Mike's tar approach to move the compiled version from one laptop to another. Cheers, Stan Jason Grout wrote: John H Palmieri wrote: On Mar 12, 11:38 am, mabshoff michael.absh...@mathematik.uni- dortmund.de wrote: Never us cp to copy Sage unless you know what you are doing, but use tar. Hm. I've never had any problems using cp; in fact I routinely do it before running 'sage -upgrade'. Does 'cp -pR' count as knowing what I'm doing? Is devel/sage a link in your copy? My guess is that using cp -a (which is the same as cp -dpR) works. The -d preserves links. This is using gnu cp; I don't know about a mac, though I think the archive option -a is even better there. mabshoff: comments? Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Making pylab.plot() and pylab.show() in Sage
Hi Gus, What's wrong with Mike Hansen's suggestion in this thread? In order to get that to work in the notebook, you don't want to use pylab.show(). Instead, you'll want to use pylab.savefig('fig.png') which will save the plot to a png file. fig.png should be a separate file in your notebook folder. Stan linuxgus wrote: Thanks to all of you for responding. This thread brings up another interesting question: How can I actually tell sage to save the graphics image to a separate file, in addition to displaying it? TIA for your response. Gus --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: find_root reports zeroes of denominator as roots
Using symbolic computation: sage: x=var('x') sage: solve(1/x==0) [ ] sage: However, and like matlab fzero command, the numerical answer of the equation is $x \approx 0$ because of the change of sign of $1/x \in [-1,1]$. Maybe the find_root documentation needs to mention that continuity of $f$ is necessary. jpc On Mar 15, 3:54 am, yacob imya...@gmail.com wrote: f(x)=1/x r1=find_root(f,-1,1);r1 -1.8189894035440371e-12 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Importing modules and packages from gobal python install
Hi, I want to have sage let me import from my global python installation, since I have packages installed there which are not available as sage packages. Is this possible? thanks in advance, Flávio --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] renaming the sage directory
Dear all, When I re-name my sage directory on Mac OS 10.4.11, it usually re- codes the install path and works without any further complaints. However, since version 3.3 I noticed the following warning: -- | Sage Version 3.3, Release Date: 2009-02-21 | | Type notebook() for the GUI, and license() for information.| -- The SAGE install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Do not interrupt this. Warning: something went wrong updating the easy-install.pth file. Despite the warning, it seems to work alright. Do I need to worry about it? Cheers, Stan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Importing modules and packages from gobal python install
Flavio, I will defer to a more expert Sage user on importing global python libraries into Sage but I will offer my own experiences in installing libraries into Sage. Since Sage has a complete Python installation in it (accessible through sage -python), I have been able to install the few Python packages I needed directly into Sage (e.g., PyCUDA) by using sage -python instead of python in the installation instructions and explicitly giving the Sage root directory. If you give the names of the packages you're looking to use with Sage, I (or we) can try it on my machine. On Mar 16, 6:26 am, Flavio Coelho fccoe...@gmail.com wrote: Hi, I want to have sage let me import from my global python installation, since I have packages installed there which are not available as sage packages. Is this possible? thanks in advance, Flávio --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: find_root reports zeroes of denominator as roots
On Mar 16, 6:14 am, jpc pedrocruzave...@gmail.com wrote: like matlab fzero command, the numerical answer of the equation is $x \approx 0$ because of the change of sign of $1/x \in [-1,1]$. This is not really a complete description of Matlab's behavior in this situation. If you simply define f(x) = 1/x and apply fzero, without requesting any additional information, you get: f = @(x) 1/x; fzero(f,-1,1) ans = -2.6773e-16 However, you can ask Matlab to provide more information via: [x,fval,exitflag,output] = fzero(f,-1,1); Now, fval is a huge number and output.message indicates that the function might be singular. Similarly, Mathematica yields a numerical zero but issues a warning. Now, you can find that Sage uses SciPy's implementation of Brent's algorithm when tackling this problem by typing find_root?? and SciPy provides similar functionality as Matlab, in this case. What I find particularly puzzling, though, is that scipy.opitimize.brentq, raises an error for this problem, at least when applied to the interval [-1.0, 1.0]. On the other hand, brentq runs without reporting a complaint when applied to the interval [1.0, pi]. See below. Mark McClure from scipy.optimize import brentq def f(x): return 1/x [x,info] = brentq(f, -1.0, pi, full_output=True) [x,info.converged] [-1.155868814851219e-12, True] brentq(f, -1.0, 1.0, full_output=True) Traceback (most recent call last): File stdin, line 1, in module File /Users/markmcclure/.sage/sage_notebook/worksheets/admin/31/ code/16.py, line 9, in module [a,b] = brentq(f, -_sage_const_1p0 , _sage_const_1p0 , full_output=True) File /Applications/Sage.app/Contents/Resources/sage/local/lib/ python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/, line 1, in module File /Applications/Sage.app/Contents/Resources/sage/local/lib/ python2.5/site-packages/scipy/optimize/zeros.py, line 223, in brentq r = _zeros._brentq(f,a,b,xtol,maxiter,args,full_output,disp) File /Users/markmcclure/.sage/sage_notebook/worksheets/admin/31/ code/16.py, line 8, in f def f(x): return _sage_const_1 /x File element.pyx, line 1201, in sage.structure.element.RingElement.__div__ (sage/structure/element.c: 9116) File coerce.pyx, line 672, in sage.structure.coerce.CoercionModel_cache_maps.bin_op (sage/structure/ coerce.c:5437) ZeroDivisionError: float division --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Does sage -clone overwrite previous clones?
Dear Support, Regarding the clone command: Suppose I have cloned 'test1' at some point in the past. Suppose further that I have upgraded my main branch several times. If I now decide I still like the name 'test1' for a clone, can I just do sage: hg_sage.clone('test1') without further ado and assume it will destroy the previous branch, or should I delete that branch first, or should I never ever use the same branch name again until I build a completely new Sage? (Or none of the above?) Thanks! - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] changing the login page of the notebook.
I woild like to modify the login page of the notebook. I found the file login.template in data/extcode/notebook/templates But ecen after changing the file, restarting the notebook (and reloading the page), I do not see anychange. Is there some compilation mechanism for these web pages ? Yours, t.d. - French universities are on a permanent strike! Have a look at the International Call: http://math.univ-lyon1.fr/appel - begin:vcard fn:Thierry Dumont n:Dumont;Thierry org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France email;internet:tdum...@math.univ-lyon1.fr title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer tel;work:(33) 4 72 44 85 23 x-mozilla-html:FALSE url:http://math.univ-lyon1.fr/~tdumont version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
[sage-support] Re: changing the login page of the notebook./ APOLOGIZE
Thierry Dumont wrote: I apologize for my precedent post; everything is on the *devel* branch. Yours t. Thierry Dumont a écrit : I woild like to modify the login page of the notebook. I found the file login.template in data/extcode/notebook/templates But ecen after changing the file, restarting the notebook (and reloading the page), I do not see anychange. Is there some compilation mechanism for these web pages ? Yes. Do sage -b before running sage to build sage with your changes. It'll take maybe a second or two. Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Cannot copy on OSX
Thanks for the response, Michael. On Mar 15, 2009, at 11:09 PM, mabshoff wrote: On Mar 15, 5:04 pm, Jim Clark jimfortheea...@earthlink.net wrote: On Mar 14, 2009, at 4:52 PM, mabshoff wrote: I have downloaded both Michael's .dmg and the one from http:// sage.math.washington.edu/sage/osx/powerpc/index.html In both cases, after I start sage, it fails as follows: (My computer is a 300 MHz G3 running OSX 10.4.) Hmm, I am not 100% sure the binary will run on a G3. IIRC some people have reported working binaries on G3 CPUs, but that might have been a while. I have most recently been running sage 2.3.2 on my G3 computer. Prior versions have also worked fine. Can you check if the md5sum of the dmg matches? mabsh...@sage:/scratch/mabshoff/sage-3.4$ md5sum ~/sage-3.4-OSX-10.4- PowerMacintosh-Darwin.dmg 3285260d94023d27a86faeb05bd0dcef /home/mabshoff/sage-3.4-OSX-10.4- PowerMacintosh-Darwin.dmg I need some more help here; I get: Jim-and-Elaines-computer:~/Downloaded docs jim$ md5sum sage-3.4- OSX-10.4-PowerMacintosh-Darwin.dmg -bash: md5sum: command not found Again, thanks. Jim --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Cannot copy on OSX
On Mar 15, 2009, at 11:09 PM, mabshoff wrote: - - | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information.| - - The SAGE install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Do not interrupt this. SNIP ImportError: dlopen(/Applications/sage/local/lib/python2.5/site- packages/sage/misc/randstate.so, 2): Library not loaded: /tmp/fooo/ sage-3.4/local/lib/libgmp.3.dylib Referenced from: /Applications/sage/local/lib//libcsage.dylib Reason: no suitable image found. Did find: /Applications/sage/local/lib//libgmp.3.dylib: incompatible cpu-subtype This seems to be the trouble, i.e. the MPIR we build on OSX 10.4/PPC is on a G4 and now seems to produce a library that does not run on a G3. That might be caused by newer XCode releases, but I am not 100% sure. I do not think that we changed anything inside MPIR that would cause this. The next thing I will try is building from source -- I have not updated XCode. It's just that make requires about 24 hours on my old, underpowered computer... Jim --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Cannot copy on OSX
It copied ok, but then... -- | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information.| -- The SAGE install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Do not interrupt this. --- ImportError Traceback (most recent call last) snip ImportError: dlopen(/Users/.../sage/local/lib/python2.5/site-packages/ sage/misc/randstate.so, 2): Library not loaded: /tmp/fooo/sage-3.4/ local/lib/libgmp.3.dylib Referenced from: /Users/.../sage/local/lib//libcsage.dylib Reason: no suitable image found. Did find: /Users/.../sage/local/lib//libgmp.3.dylib: incompatible cpu- subtype WARNING: Failure executing code: 'import sage.misc.preparser_ipython; sage.misc.preparser_ipython.magma_colon_equals=True' --- ImportError Traceback (most recent call last) snip ImportError: dlopen(/Users/.../sage/local/lib/python2.5/site-packages/ sage/misc/randstate.so, 2): corrupt binary, library ordinal too big Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. ERROR: name 'sage_prompt' is not defined And the same thing happens each time I try to use it. I'm sorry to have to report that. This is a G4 PPC running X.4. - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Cannot copy on OSX
On Mar 16, 8:54 am, kcrisman kcris...@gmail.com wrote: It copied ok, but then... SNIP ImportError: dlopen(/Users/.../sage/local/lib/python2.5/site-packages/ sage/misc/randstate.so, 2): Library not loaded: /tmp/fooo/sage-3.4/ local/lib/libgmp.3.dylib Referenced from: /Users/.../sage/local/lib//libcsage.dylib Reason: no suitable image found. Did find: /Users/.../sage/local/lib//libgmp.3.dylib: incompatible cpu- subtype SNIP And the same thing happens each time I try to use it. I'm sorry to have to report that. This is a G4 PPC running X.4. Ok, it now looks like MPIR produces a library that does not work on a G4 anymore. This makes this binary not very useful any more. There is a G4 notebook in the Sage lab in Seattle, but it only has 256 MB RAM, so building Sage on it takes forever. If we could upgrade the memory it would be useful enough to build 10.4 PPC G4 binaries. - kcrisman Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Importing modules and packages from gobal python install
On Mar 16, 4:38 am, Ahmed Fasih wuzzyv...@gmail.com wrote: Flavio, I will defer to a more expert Sage user on importing global python libraries into Sage but I will offer my own experiences in installing libraries into Sage. Since Sage has a complete Python installation in it (accessible through sage -python), I have been able to install the few Python packages I needed directly into Sage (e.g., PyCUDA) by using sage -python instead of python in the installation instructions and explicitly giving the Sage root directory. If you give the names of the packages you're looking to use with Sage, I (or we) can try it on my machine. If you want to install packages into Sage's Python run ./sage -sh before using the 'normal' install mechanism to install the python package, i.e. python setup.py install will then install into Sage's python. In theory you should be able to set PYTHONPATH and pull in packages from another Python install, but in some cases this causes trouble when you have different API releases or a python build with different options, etc. In general it is possible of you know what you are doing, but there are plenty if problems you might run into. On Mar 16, 6:26 am, Flavio Coelho fccoe...@gmail.com wrote: Hi, I want to have sage let me import from my global python installation, since I have packages installed there which are not available as sage packages. Is this possible? thanks in advance, Flávio Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: renaming the sage directory
On Mar 16, 4:33 am, Stan Schymanski schym...@gmail.com wrote: Dear all, When I re-name my sage directory on Mac OS 10.4.11, it usually re- codes the install path and works without any further complaints. However, since version 3.3 I noticed the following warning: -- | Sage Version 3.3, Release Date: 2009-02-21 | | Type notebook() for the GUI, and license() for information. | -- The SAGE install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Do not interrupt this. Warning: something went wrong updating the easy-install.pth file. Despite the warning, it seems to work alright. Do I need to worry about it? No, the issue has been fixed in Sage 3.4 and was caused by an update to setuptools that changed the format of install.pth slightly so that the above warning was issued. Cheers, Stan Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Does sage -clone overwrite previous clones?
On Mon, Mar 16, 2009 at 5:56 AM, kcrisman kcris...@gmail.com wrote: Dear Support, Regarding the clone command: Suppose I have cloned 'test1' at some point in the past. Suppose further that I have upgraded my main branch several times. If I now decide I still like the name 'test1' for a clone, can I just do sage: hg_sage.clone('test1') without further ado and assume it will destroy the previous branch, or should I delete that branch first, or should I never ever use the same branch name again until I build a completely new Sage? (Or none of the above?) I think probably you should delete the test1 branch in SAGE_ROOT/devel/. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: ImportError - While running ./sage Command
On Mon, Mar 16, 2009 at 6:41 AM, Karthick. B karthic...@ntierbusiness.com wrote: Hi, I am very new to sage. I tried to run sage in my Linux fedora machine and when I tried to run the command ./sage I got the following error ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/local/bin/Sage/local/lib/libntl-5.4.2.so) Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. And it stops . Please help to solve this problem. You will have to build from source. Get the latest Sage tarball here: http://sagemath.org/src/ extract it with $ tar xvf sage-3.4.tar then build it via $ cd sage-3.4 $ make This will take about 3 hours and requires that you have gcc,g++, etc. installed. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Does sage -clone overwrite previous clones?
I think probably you should delete the test1 branch in SAGE_ROOT/devel/. Okay, I just wanted to make sure that wouldn't leave any leftovers somewhere I also needed to delete. Thanks! - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] timing multiple items in a cell separately
In the notebook, suppose I want to do 2+2;2*2 so that they evaluate and display nicely after each other. Then suppose I want to time them: %time 2+2;2*2 But then I only get the total timing for the cell, not each part individually. Is there any way to do that (other than explicitly calling the timeit module for each one, which is totally not worth it for my purposes)? - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Importing modules and packages from gobal python install
Thanks Ahmed, I wish Sage could integrate better into my system, since I develop mainly in Python and wanted to be able to run my code from within Sage, but without having to have duplicate installs of the packages I need to import. But for the time being, I think I'll do just that, but I would rather see a version of Sage that would take advantage of everything available on a standard Linux system instead of replicating it. thanks, Flávio On 16 mar, 11:38, Ahmed Fasih wuzzyv...@gmail.com wrote: Flavio, I will defer to a more expert Sage user on importing global python libraries into Sage but I will offer my own experiences in installing libraries into Sage. Since Sage has a complete Python installation in it (accessible through sage -python), I have been able to install the few Python packages I needed directly into Sage (e.g., PyCUDA) by using sage -python instead of python in the installation instructions and explicitly giving the Sage root directory. If you give the names of the packages you're looking to use with Sage, I (or we) can try it on my machine. On Mar 16, 6:26 am, Flavio Coelho fccoe...@gmail.com wrote: Hi, I want to have sage let me import from my global python installation, since I have packages installed there which are not available as sage packages. Is this possible? thanks in advance, Flávio --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Importing modules and packages from gobal python install
On Mar 16, 11:03 am, Flavio Coelho fccoe...@gmail.com wrote: Thanks Ahmed, I wish Sage could integrate better into my system, since I develop mainly in Python and wanted to be able to run my code from within Sage, but without having to have duplicate installs of the packages I need to import. Well, PYTHONPATH should take care of most of that, but as mentioned above you should know what you are doing in case you run into problems. But for the time being, I think I'll do just that, but I would rather see a version of Sage that would take advantage of everything available on a standard Linux system instead of replicating it. It plainly and simply does not work - http://wiki.sagemath.org/faq/bigsagerant thanks, Flávio Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] OS X Startup Problem
Platform/OS: MAC OS X 10.5 SAGE Version 3.0.2, Release Date: 2008-05-24 Just after installing Sage, the startup time on my system increased significantly (it is now 2.5 minutes!). I have nothing in the Login Items Systems Preferences. The only items in the /Library/Startup Items/ folder are a tap folder and a tun folder. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: OS X Startup Problem
On Mar 16, 11:18 am, william wll...@gmail.com wrote: Hi, Platform/OS: MAC OS X 10.5 SAGE Version 3.0.2, Release Date: 2008-05-24 Just after installing Sage, the startup time on my system increased significantly (it is now 2.5 minutes!). Ok. Where did you install Sage? Does uninstalling Sage fix the problem? I have nothing in the Login Items Systems Preferences. The only items in the /Library/Startup Items/ folder are a tap folder and a tun folder. Sage has no component that hooks itself into the startup sequence of OSX. Are you running any other extension to OSX? How do you know that Sage causes the problem? Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: OS X Startup Problem
mabshoff wrote: On Mar 16, 11:18 am, william wll...@gmail.com wrote: Hi, Platform/OS: MAC OS X 10.5 SAGE Version 3.0.2, Release Date: 2008-05-24 Just after installing Sage, the startup time on my system increased significantly (it is now 2.5 minutes!). Ok. Where did you install Sage? Does uninstalling Sage fix the problem? I have nothing in the Login Items Systems Preferences. The only items in the /Library/Startup Items/ folder are a tap folder and a tun folder. Sage has no component that hooks itself into the startup sequence of OSX. Are you running any other extension to OSX? How do you know that Sage causes the problem? Another possibility is that the original poster's computer is running Spotlight (or Google Desktop), which is making a huge index of all the files in the sage install. On a slow computer this could temporarily noticeably impact performance. I'm probably wrong and grasping for straws though. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem after moving sage folder
Hi Jason, I wasn't aware of the ditto command, thanks for that! The -upgrade was a lot faster, indeed. It was done over lunch. Cheers, Stan Jason Grout wrote: Stan Schymanski wrote: Thanks for your help! cp does not have the -a option on my mac and cp -pR leads to the following error message after startup: Oh, that's right. On a mac, the ditto command is nice. Warning: something went wrong updating the easy-install.pth file. However, this time no other problems occurred and I was able to run the notebook server from the new directory, so I proceeded with running ./sage -upgrade. Another warning message came up: WARNING: This is a source/based upgrade, which could take hours, fail and render your Sage install useless!! It's not a problem since I'm running it on the Sage copy now, but 'hours' is what a fresh compilation from source would take anyway, so would I possibly be better off installing the whole thing from source? I'll see how long it takes. Well, IIRC, it won't have to compile spkgs that didn't change. However, for every spkg that has been updated, you will have to compile that spkg. Typically it's much faster than compiling fresh from source. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Trouble with PermutationGroupElement
I am slightly confused about Permutation groups. The following, I think, is part of the problem. Version: 3.4 (Sage on the web) Code: sage: h=PermutationGroupElement('()') sage: k=PermutationGroupElement('(1,2)') sage: k^2==h,h==k^2 (False, True) Can someone explain to me why the comparisons give different results? Thanks. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Problem in Installation
Hi, i am a newbie to sage. i tried to install sage in my Fedora Linux machine. I downloaded the binary files one for Fedora named sage-3.4- Fedora_release_9-i686-Linux.tar(1). As instructed i untar the file and rename the folder as Sage and moved to that folder and typed the command ./sage. i got the Error as ERROR: name 'sage_prompt' is not defined --- LookupError Traceback (most recent call last) /home/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/site- packages/IPython/iplib.py in multiline_prefilter(self, line, continue_prompt) /home/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/site- packages/IPython/iplib.py in _prefilter(self, line, continue_prompt) /home/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/site- packages/IPython/prefilter.py in __init__(self, line, continue_prompt) /home/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/site- packages/IPython/prefilter.py in splitUserInput(line, pattern) Is am missing something which is very basically required? Please Help.. PS: Python is not installed in my Machine. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] jsmath bitmap fonts in sage 3.4 and solve command
Hello, I installed today new sage with jsmath bitmap font. These fonts did not work, I had to put the bitmap fonts from old installation to / opt/sage-3.4-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux/data/extcode/ javascript/jsmath manually. From this reason I report this problem (maybe a bug). R question: there are two directories with jsmath.js file: data/ extcode/javascript and local/notebook/javascript. Why? How to find out, which one is used in notebook. And another question: How to find out which solve command is used to solve equations? From reading the files calculus.py I found that solve command allows explicit_solutions option, but solve? and solve?? point to /opt/sage/local/lib/python2.5/site-packages/sage/calculus/ equations.py which do not contain anything about this option. However explicit_solutions works also in notebook. Thanks Robert Marik --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Finite Sets
On Mar 16, 1:52 pm, epple dedaa...@gmail.com wrote: When comparing finite sets, I receive unexpected results. Version: 3.4 (Sage on the web) Code: sage: S=Set([1,2]) sage: T=Set([3]) sage: ST,ST,S==T (True, False, False) As far as I can tell, for Sets, == and != mean what they should, while and are not very helpful. (I think that ST is True if and only if S is not equal to T, while ST is always False.) The output seems to be the same whatever I put in for S and T, as long as I don't make them equal. Is there another easy way to compare two sets (or the underlying sets of two lists) without writing a routine for it? Convert S and T to sets (instead of Sets): sage: S.set().issubset(T.set()) or just use Python sets instead of Sage Sets: sage: S = set([1,2,3]) sage: T = set([3]) sage: S.issubset(T) False sage: S.issuperset(T) True sage: T.issubset(S) True Is this the sort of thing you want? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Trouble with PermutationGroupElement
On Mar 16, 2009, at 1:27 PM, epple wrote: I am slightly confused about Permutation groups. The following, I think, is part of the problem. Version: 3.4 (Sage on the web) Code: sage: h=PermutationGroupElement('()') sage: k=PermutationGroupElement('(1,2)') sage: k^2==h,h==k^2 (False, True) Can someone explain to me why the comparisons give different results? Thanks. This is a bug, probably something wrong with the empty permutation. - 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 URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Trouble with PermutationGroupElement
Actually I am getting the same result for other permutations, like: sage: h=PermutationGroupElement('(1,3,2)') sage: k=PermutationGroupElement('(1,2,3),(4,5)') sage: k^2==h,h==k^2 (False, True) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Trouble with PermutationGroupElement
On Mar 16, 2009, at 2:25 PM, epple wrote: Actually I am getting the same result for other permutations, like: sage: h=PermutationGroupElement('(1,3,2)') sage: k=PermutationGroupElement('(1,2,3),(4,5)') sage: k^2==h,h==k^2 (False, True) Hmm... looks like permutation groups aren't being properly coerced from one Parent to another. - 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 URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Finite Sets
Thank you, this helps. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Trouble with PermutationGroupElement
On Mar 16, 2:26 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Mar 16, 2009, at 2:25 PM, epple wrote: Actually I am getting the same result for other permutations, like: sage: h=PermutationGroupElement('(1,3,2)') sage: k=PermutationGroupElement('(1,2,3),(4,5)') sage: k^2==h,h==k^2 (False, True) Hmm... looks like permutation groups aren't being properly coerced from one Parent to another. Should they be? I mean, should h and k^2 be equal, or not, in this case? John --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Trouble with PermutationGroupElement
On Mar 16, 2:40 pm, John H Palmieri jhpalmier...@gmail.com wrote: On Mar 16, 2:26 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Mar 16, 2009, at 2:25 PM, epple wrote: Actually I am getting the same result for other permutations, like: sage: h=PermutationGroupElement('(1,3,2)') sage: k=PermutationGroupElement('(1,2,3),(4,5)') sage: k^2==h,h==k^2 (False, True) Hmm... looks like permutation groups aren't being properly coerced from one Parent to another. Should they be? I mean, should h and k^2 be equal, or not, in this case? In particular, I wouldn't mind this behavior: sage: h = PermutationGroupElement('(1,3,2)') # in S(3) sage: k = PermutationGroupElement('(1,2,3),(4,5)') # in S(5) sage: k^2 == h, h == k^2 (False, False) sage: S5 = k.parent() sage: h5 = S5(h) sage: k^2 == h5, h5 == k^2 (True, True) John --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Problem in Installation
On Mar 16, 5:53 am, Karthick btkarth...@gmail.com wrote: Hi, Hi Karthick, i am a newbie to sage. i tried to install sage in my Fedora Linux machine. I downloaded the binary files one for Fedora named sage-3.4- Fedora_release_9-i686-Linux.tar(1). As instructed i untar the file and rename the folder as Sage and moved to that folder and typed the command ./sage. i got the Error as You cut off too much of the error message so I cannot tell what went wrong. Either way, you likely downloaded the wrong binary. What linux distribution are you running *exactly* ? SNIP Is am missing something which is very basically required? Please Help.. PS: Python is not installed in my Machine. You do not need a local python since it is included in Sage. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: coercion bug?
Sweet! Alex On Mar 12, 5:07 pm, William Stein wst...@gmail.com wrote: On Wed, Mar 11, 2009 at 5:23 PM, Alex Raichev tortoise.s...@gmail.com wrote: What would you want to do with QQbar in the Symbolic Ring? Everything: differentiate functions with coefficients in QQbar, integrate them, etc. I too don't know anything about Maxima or the new symbolics package in preparation --Pynac is it? So, i'm just standing on the sidelines cheering Go symbolics with QQbar! Go! You can already work with QQbar and symbolic variables using pynac, which is in sage already: -- | Sage Version 3.4, Release Date: 2009-03-10 | | Type notebook() for the GUI, and license() for information. | -- sage: var('x,y',ns=1) (x, y) sage: a = QQbar(3).sqrt() sage: a 1.732050807568878? sage: f = x*a + y sage: f 1.732050807568878?*x + y sage: f^2 (1.732050807568878?*x + y)^2 sage: expand(f^2) 3*x^2 + 3.464101615137755?*x*y + y^2 sage: expand(f^2).diff(x) 6*x + 3.464101615137755?*y sage: expand(f^2).diff(y) 3.464101615137755?*x + 2*y -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Small groups library is missing
I have just installed Sage 3.4, database_gap-4.4.10, and gap_packages-4.4.10_6. It seems that I can't access 'SmallGroups': sage: gap.eval('SmallGroups(8,1)') --- RuntimeError Traceback (most recent call last) /home/davidp/download/ipython console in module() /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/gap.pyc in eval(self, x, newlines, strip, **kwds) 477 input_line += ';' 478 -- 479 result = Expect.eval(self, input_line, **kwds) 480 481 if not newlines: /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/expect.pyc in eval(self, code, strip, synchronize, locals, **kwds) 972 try: 973 with gc_disabled(): -- 974 return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != '']) 975 except KeyboardInterrupt: 976 # DO NOT CATCH KeyboardInterrupt, as it is being caught /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/gap.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt) 721 return '' 722 else: -- 723 raise RuntimeError, message 724 725 except KeyboardInterrupt: RuntimeError: Gap produced error output Variable: 'SmallGroups' must have a value executing SmallGroups(8,1); sage: gap('SmallGroup(8,1)') --- TypeError Traceback (most recent call last) /home/davidp/download/ipython console in module() /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/expect.pyc in __call__(self, x, name) 1000 return x 1001 if isinstance(x, basestring): - 1002 return cls(self, x, name=name) 1003 try: 1004 return self._coerce_from_special_method(x) /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/expect.pyc in __init__(self, parent, value, is_name, name) 1375 except (TypeError, KeyboardInterrupt, RuntimeError, ValueError), x: 1376 self._session_number = -1 - 1377 raise TypeError, x 1378 self._session_number = parent._session_number 1379 TypeError: Gap produced error output Error, the Small Groups library is required but not installed executing $sage1:=SmallGroup(8,1);; I am running Sage under Fedora 10, 32bit. The command sage -i seemed to install the two packages without complaint. So is this still a known problem? Thanks, Dave On Mar 2, 6:33 pm, David Joyner wdjoy...@gmail.com wrote: On Mon, Mar 2, 2009 at 3:51 PM, David Joyner wdjoy...@gmail.com wrote: I am trying and failing to get the sage-install script to work. ... /bin/ls: cannot access gap-*.spkg: No such file or directory /bin/ls: cannot access gap-*.spkg: No such file or directory ./spkg-install: line 13: patches: command not found ./spkg-install: line 14: Installing: command not found ./spkg-install: line 15: Installing: command not found ./spkg-install: line 16: patches: command not found snip Does anyone have an idea what the problem could be? I finally figured out that (a) I was in the wrong directory and (b) spaces matter for shell scripts. It now works in Linux. I'm going to test in on a mac OS 10.4 and then post a link to the trac ticket if that works. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Small groups library is missing
Please try http://sage.math.washington.edu/home/wdj/patches/gap_packages-4.4.12_1.spkg http://sage.math.washington.edu/home/wdj/patches/database_gap-4.4.12.spkg instead. If you have problem, please email me. Thanks. On Mon, Mar 16, 2009 at 6:50 PM, davidp dav...@reed.edu wrote: I have just installed Sage 3.4, database_gap-4.4.10, and gap_packages-4.4.10_6. It seems that I can't access 'SmallGroups': sage: gap.eval('SmallGroups(8,1)') --- RuntimeError Traceback (most recent call last) /home/davidp/download/ipython console in module() /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/gap.pyc in eval(self, x, newlines, strip, **kwds) 477 input_line += ';' 478 -- 479 result = Expect.eval(self, input_line, **kwds) 480 481 if not newlines: /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/expect.pyc in eval(self, code, strip, synchronize, locals, **kwds) 972 try: 973 with gc_disabled(): -- 974 return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != '']) 975 except KeyboardInterrupt: 976 # DO NOT CATCH KeyboardInterrupt, as it is being caught /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/gap.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt) 721 return '' 722 else: -- 723 raise RuntimeError, message 724 725 except KeyboardInterrupt: RuntimeError: Gap produced error output Variable: 'SmallGroups' must have a value executing SmallGroups(8,1); sage: gap('SmallGroup(8,1)') --- TypeError Traceback (most recent call last) /home/davidp/download/ipython console in module() /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/expect.pyc in __call__(self, x, name) 1000 return x 1001 if isinstance(x, basestring): - 1002 return cls(self, x, name=name) 1003 try: 1004 return self._coerce_from_special_method(x) /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/ site-packages/sage/interfaces/expect.pyc in __init__(self, parent, value, is_name, name) 1375 except (TypeError, KeyboardInterrupt, RuntimeError, ValueError), x: 1376 self._session_number = -1 - 1377 raise TypeError, x 1378 self._session_number = parent._session_number 1379 TypeError: Gap produced error output Error, the Small Groups library is required but not installed executing $sage1:=SmallGroup(8,1);; I am running Sage under Fedora 10, 32bit. The command sage -i seemed to install the two packages without complaint. So is this still a known problem? Thanks, Dave On Mar 2, 6:33 pm, David Joyner wdjoy...@gmail.com wrote: On Mon, Mar 2, 2009 at 3:51 PM, David Joyner wdjoy...@gmail.com wrote: I am trying and failing to get the sage-install script to work. ... /bin/ls: cannot access gap-*.spkg: No such file or directory /bin/ls: cannot access gap-*.spkg: No such file or directory ./spkg-install: line 13: patches: command not found ./spkg-install: line 14: Installing: command not found ./spkg-install: line 15: Installing: command not found ./spkg-install: line 16: patches: command not found snip Does anyone have an idea what the problem could be? I finally figured out that (a) I was in the wrong directory and (b) spaces matter for shell scripts. It now works in Linux. I'm going to test in on a mac OS 10.4 and then post a link to the trac ticket if that works. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath bitmap fonts in sage 3.4 and solve command
ma...@mendelu.cz wrote: Hello, I installed today new sage with jsmath bitmap font. These fonts did not work, I had to put the bitmap fonts from old installation to / opt/sage-3.4-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux/data/extcode/ javascript/jsmath manually. From this reason I report this problem (maybe a bug). What spkg are you talking about? The jsmath-image-fonts one? When you say new Sage, do you mean version 3.4? mabshoff, according to ticket http://trac.sagemath.org/sage_trac/ticket/4674, the updated spkg http://sage.math.washington.edu/home/mabshoff/spkgs/jsmath-image-fonts-1.3p1.spkg was merged into the optional repository. However, it's not listed at http://sagemath.org/packages/optional/ What's going on here? Robert, for now, you can install http://sage.math.washington.edu/home/mabshoff/spkgs/jsmath-image-fonts-1.3p1.spkg into sage 3.4 and it should work. The javascript code was recently reorganized, so that explains the problem (but doesn't explain why the new spkg didn't show up on http://sagemath.org/packages/optional/ ) R question: there are two directories with jsmath.js file: data/ extcode/javascript and local/notebook/javascript. Why? How to find out, which one is used in notebook. The local/notebook/javascript one should be the only one used. Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Images in TinyMCE
Dear Support, (Well, probably dear Jason... :) but posted here for others who might ask it in the future) I have tried unsuccessfully on more than one occasion to insert images in the notebook using TinyMCE. I've tried ~/filename, file:///filepath/filename, and I don't know what else. Do I have to upload to the Data directory first, or just the worksheet directory? That seems counterintuitive, given the interface to the icon for it. I got some error messages which suggested that it was looking in the worksheet or cell's individual folder, though, which I am unfortunately not able to copy here now. Specific step-by-step instructions that worked for someone should be sufficient for me to figure it out, I hope. Thanks! - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] jacobian() fails with Pynac symbolics
-- | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information.| -- sage: var('x,y', ns=1) (x, y) sage: f= x+y sage: type(f) type 'sage.symbolic.expression.Expression' sage: jacobian(f,[x,y]) --- TypeError Traceback (most recent call last) /Users/arai021/ipython console in module() /Applications/sage/local/lib/python2.5/site-packages/sage/calculus/ functions.pyc in jacobian(functions, variables) 136 137 if not isinstance(variables, (tuple, list)) and not is_Vector(variables): 138 variables = [variables] 139 -- 140 return matrix([[diff(f, v) for v in variables] for f in functions]) /Applications/sage/local/lib/python2.5/site-packages/sage/calculus/ functional.pyc in derivative(f, *args, **kwds) 145 pass 146 if not isinstance(f, SymbolicExpression): -- 147 f = SR(f) 148 return f.derivative(*args, **kwds) 149 /Applications/sage/local/lib/python2.5/site-packages/sage/calculus/ calculus.pyc in __call__(self, x) 504 msg, s, pos = err.args 505 raise TypeError, %s: %s !!! %s % (msg, s [:pos], s[pos:]) -- 506 return self._coerce_impl(x) 507 508 def _coerce_impl(self, x): /Applications/sage/local/lib/python2.5/site-packages/sage/calculus/ calculus.pyc in _coerce_impl(self, x) 566 return self(x._sage_()) 567 else: -- 568 raise TypeError, cannot coerce type '%s' into a SymbolicExpression.%type(x) 569 570 def _repr_(self): TypeError: cannot coerce type 'type 'sage.symbolic.expression.Expression'' into a SymbolicExpression. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Images in TinyMCE
On Mon, Mar 16, 2009 at 7:21 PM, kcrisman kcris...@gmail.com wrote: Dear Support, (Well, probably dear Jason... :) but posted here for others who might ask it in the future) I have tried unsuccessfully on more than one occasion to insert images in the notebook using TinyMCE. I've tried ~/filename, file:///filepath/filename, and I don't know what else. Do I have to upload to the Data directory first, or just the worksheet directory? That seems counterintuitive, given the interface to the icon for it. I got some error messages which suggested that it was looking in the worksheet or cell's individual folder, though, which I am unfortunately not able to copy here now. Specific step-by-step instructions that worked for someone should be sufficient for me to figure it out, I hope. To insert an image foo.png I do the following: 1. Upload foo.png using Data -- Upload or create file... 2. I click the image button in TinyMCE (with the tree in the upper right), then enter foo.png in the Image URL field. That's it! William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage 3.4 on SuSE Enterprise Server
Hello Michael, The output from gcc -v is: Using built-in specs. Target: x86_64-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr -- with-local-prefix=/usr/local --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.1.2 -- enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64 -- with-system-zlib --enable-shared --enable-__cxa_atexit --enable- libstdcxx-allocator=new --program-suffix= --enable-version-specific- runtime-libs --without-system-libunwind --with-cpu=generic -- host=x86_64-suse-linux Thread model: posix gcc version 4.1.2 20070115 (SUSE Linux) Thank you for prompt response. miron. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage 3.4 on SuSE Enterprise Server
Hi Miron, On Tue, Mar 17, 2009 at 5:20 AM, Miron miroslaw.r...@csiro.au wrote: Hello Michael, The output from gcc -v is: Using built-in specs. Target: x86_64-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr -- with-local-prefix=/usr/local --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.1.2 -- enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64 -- with-system-zlib --enable-shared --enable-__cxa_atexit --enable- libstdcxx-allocator=new --program-suffix= --enable-version-specific- runtime-libs --without-system-libunwind --with-cpu=generic -- host=x86_64-suse-linux Thread model: posix gcc version 4.1.2 20070115 (SUSE Linux) The last time I tried installing Sage 3.2.3 on SUSE LES with GCC 4.1.0, there was no complaints about GCC version. But there was a problem with building numpy. The relevant thread is at http://groups.google.com/group/sage-support/browse_thread/thread/9b6c505a700d00cd/92306989adc348e1 In the end, I gave up building Sage on SLES 10.0. I longer have access to a Linux server running SLES, so I sort of understand your frustration. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---