Re: [sage-support] Re: Problems running the app under Mac OS X 10.6.8
Questor, It looks like you have a permissions issue (perhaps among other things). Did you install it as a different user than you are running it as? If so you might be able to "fix" it by changing the owner to your user in info. i.e. Select the app in the Finder, "File" > "Get Info", then in the bottom section of the info window there should be a gear with which you can "Make USER (me) the owner". Anyway, this bug is now tracked at http://trac.sagemath.org/sage_trac/ticket/11755 In the end, it works for me (both terminal and notebook sessions) running it as the same user that I installed it. My other thought would be that you got a corrupted download. If you still have the disk image you can run md5 ~/Downloads/sage-4.7.1-OSX-64bit-10.6-x86_64-Darwin-app.dmg in a terminal (changing the path as needed). You should get 129a710a286da6d99e46fa2607512d95 as noted on http://boxen.math.washington.edu/sage/osx/intel/index.html. Hopefully those will solve your problem, but if not let us know. -Ivan On Aug 28, 2011, at 8:05 PM, Questor wrote: > menu "Terminal Session" > "Sage" gives > > /Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/ > sage; exit > % /Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/ > sage; exit > -- > | Sage Version 4.7.1, Release Date: 2011-08-11 | > | Type notebook() for the GUI, and license() for information.| > -- > Traceback (most recent call last): > File "/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ > sage/local/bin/sage-location", line 226, in >if install_moved(): > File "/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ > sage/local/bin/sage-location", line 77, in install_moved >write_location_file() > File "/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ > sage/local/bin/sage-location", line 32, in write_location_file >O = open(location_file,'w') > IOError: [Errno 13] Permission denied: '/Applications/Sage-4.7.1- > OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/sage-current- > location.txt' > logout > > -- > 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 -- 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: Bug in Graph.is_chordal
Hello Jan !!! I am sorry for my vry slow answers, I am on vacation right now, with very very bad WiFi connections when I get some. If you think you would sleep better with copying the implementation given in the paper, then the best is probably to write a patch for this. I like mine better, just because I feel like I understand how it works, but to be honest I do not really mind in this case as it is so easy to check whether the code is correct. What would you think of writing a patch to change the current behaviour to match the paper using your code, while letting my version of it (the updated/fixed one) in the code as a comment ? Before returning the result, it should be checked, for instance like I did in my patch. If at some point the value returned is incorrect, the exception should be "There was an error in the computed answer... Please report the bug" or something alike so that we quickly learn of it and fix the mistake. What do you think ? What I fear the most are silent mistakes.. The ones you do not notice. In these situations I don't mind Sage answering me that it wasn't able to do the computations, especially when the patch is already written :-) If you have time to create the patch, I will try to review it as soon as I get back to the civilisation (possibly next friday). Otherwise we'll talk about it then :-) Thank you for your work, by the way ! 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
[sage-support] Re: Problems running the app under Mac OS X 10.6.8
md5 matches (using the the cp in the README) % ls -ld Sage-4.7.1-OSX-64bit-10.6.app drwxr-xr-x@ 3 root admin 102 25 Aug 17:40 Sage-4.7.1- OSX-64bit-10.6.app % ls -l Sage-4.7.1-OSX-64bit-10.6.app/ total 0 drwxr-xr-x@ 6 root admin 204 25 Aug 17:40 Contents % ls -l Sage-4.7.1-OSX-64bit-10.6.app/* total 24 -rw-r--r--@ 1 root admin 6283 25 Aug 17:40 Info.plist drwxr-xr-x@ 3 root admin 102 25 Aug 17:40 MacOS -rw-r--r--@ 1 root admin 8 25 Aug 17:40 PkgInfo drwxr-xr-x@ 19 root admin 646 25 Aug 17:43 Resources % ls -l Sage-4.7.1-OSX-64bit-10.6.app/*/* -rw-r--r--@ 1 root admin 6283 25 Aug 17:40 Sage-4.7.1- OSX-64bit-10.6.app/Contents/Info.plist -rw-r--r--@ 1 root admin 8 25 Aug 17:40 Sage-4.7.1- OSX-64bit-10.6.app/Contents/PkgInfo Sage-4.7.1-OSX-64bit-10.6.app/Contents/MacOS: total 120 -rwxr-xr-x@ 1 root admin 58620 25 Aug 17:40 Sage Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources: total 504 -rw-r--r--@ 1 root admin 3634 25 Aug 17:40 Defaults.plist drwxr-xr-x@ 6 root admin204 25 Aug 17:40 English.lproj -rw-r--r--@ 1 root admin 37640 25 Aug 17:40 appl.icns -rw-r--r--@ 1 root admin753 25 Aug 17:40 loading-page.html -rwxr-xr-x@ 1 root admin454 25 Aug 17:40 open-location.sh drwxr-xr-x@ 15 root admin510 25 Aug 17:43 sage -rw-r--r--@ 1 root admin 41318 25 Aug 17:43 sage-document-py.icns -rw-r--r--@ 1 root admin 43061 25 Aug 17:43 sage-document-sage.icns -rw-r--r--@ 1 root admin 43811 25 Aug 17:43 sage-document-spkg.icns -rw-r--r--@ 1 root admin 42074 25 Aug 17:43 sage-document-sws.icns -rwxr-xr-x@ 1 root admin705 25 Aug 17:43 sage-is-running-on- port.sh -rw-r--r--@ 1 root admin 1594 25 Aug 17:43 sage-small-blue.png -rw-r--r--@ 1 root admin 3580 25 Aug 17:43 sage-small-green.png -rw-r--r--@ 1 root admin683 25 Aug 17:43 sage-small-grey.png -rw-r--r--@ 1 root admin 1587 25 Aug 17:43 sage-small-red.png -rw-r--r--@ 1 root admin 0 25 Aug 17:43 sage.log -rwxr-xr-x@ 1 root admin 2158 25 Aug 17:43 start-sage.sh To get rid of the @'s, I then did # xattr -d -r com.apple.quarantine /Applications/Sage-4.7.1- OSX-64bit-10.6.app/ xattr: No such file: /Applications/Sage-4.7.1-OSX-64bit-10.6.app// Contents/Resources/sage/data/graphs/graphs.db # ls -l total 2472 lrwxr-xr-x@ 1 root admin 25 25 Aug 17:40 graphs.db -> /tmp/ graphs.db.3Ymg7KKVkC -rw-r--r-- 1 root admin 1258496 25 Aug 17:40 graphs.db.orig -- 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] Possible to do quizzes and/or practice problems in notebook?
Anyone know of any examples of doing quizzes and/or practice problems in Sage notebook worksheets? I'm imagining something where the worksheet asks a question and students can type in their answers to see if they are right or not. Links to example worksheets would be very much appreciated if such a beast exists. Sincerely, Chris -- 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: Possible to do quizzes and/or practice problems in notebook?
I followed a course once on elliptic curves. Here there was no automated checking involved but it instead you had to share your worksheet with the people who grade homework. That also worked quite nice. The sad thing is that the sage server of our mathematics department (https://sage.math.leidenuniv.nl/) is down so I cannot show you how the file looked like. But what it basically did was to use the regular text in the worksheet to ask the questions, and after a piece of text you had an input field where you had to answer it. I know this might not be advanced enough for you, but sometimes something is beter then nothing. -- 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: Possible to do quizzes and/or practice problems in notebook?
On 8/29/11 12:14 PM, Maarten Derickx wrote: I followed a course once on elliptic curves. Here there was no automated checking involved but it instead you had to share your worksheet with the people who grade homework. That also worked quite nice. The sad thing is that the sage server of our mathematics department (https://sage.math.leidenuniv.nl/) is down so I cannot show you how the file looked like. But what it basically did was to use the regular text in the worksheet to ask the questions, and after a piece of text you had an input field where you had to answer it. I know this might not be advanced enough for you, but sometimes something is beter then nothing. I did a similar thing with linear algebra: http://sage.cs.drake.edu/home/pub/70/ http://sage.cs.drake.edu/home/pub/71/ It seemed to work well. 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 URL: http://www.sagemath.org
Re: [sage-support] Re: Problems running the app under Mac OS X 10.6.8
On Aug 29, 2011, at 5:03 PM, Questor wrote: > md5 matches Excellent. > (using the the cp in the README) > > % ls -ld Sage-4.7.1-OSX-64bit-10.6.app > drwxr-xr-x@ 3 root admin 102 25 Aug 17:40 Sage-4.7.1- > OSX-64bit-10.6.app > > % ls -l Sage-4.7.1-OSX-64bit-10.6.app/ > total 0 > drwxr-xr-x@ 6 root admin 204 25 Aug 17:40 Contents > > % ls -l Sage-4.7.1-OSX-64bit-10.6.app/* > total 24 > -rw-r--r--@ 1 root admin 6283 25 Aug 17:40 Info.plist > drwxr-xr-x@ 3 root admin 102 25 Aug 17:40 MacOS > -rw-r--r--@ 1 root admin 8 25 Aug 17:40 PkgInfo > drwxr-xr-x@ 19 root admin 646 25 Aug 17:43 Resources > > % ls -l Sage-4.7.1-OSX-64bit-10.6.app/*/* > -rw-r--r--@ 1 root admin 6283 25 Aug 17:40 Sage-4.7.1- > OSX-64bit-10.6.app/Contents/Info.plist > -rw-r--r--@ 1 root admin 8 25 Aug 17:40 Sage-4.7.1- > OSX-64bit-10.6.app/Contents/PkgInfo > > Sage-4.7.1-OSX-64bit-10.6.app/Contents/MacOS: > total 120 > -rwxr-xr-x@ 1 root admin 58620 25 Aug 17:40 Sage > > Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources: > total 504 > -rw-r--r--@ 1 root admin 3634 25 Aug 17:40 Defaults.plist > drwxr-xr-x@ 6 root admin204 25 Aug 17:40 English.lproj > -rw-r--r--@ 1 root admin 37640 25 Aug 17:40 appl.icns > -rw-r--r--@ 1 root admin753 25 Aug 17:40 loading-page.html > -rwxr-xr-x@ 1 root admin454 25 Aug 17:40 open-location.sh > drwxr-xr-x@ 15 root admin510 25 Aug 17:43 sage > -rw-r--r--@ 1 root admin 41318 25 Aug 17:43 sage-document-py.icns > -rw-r--r--@ 1 root admin 43061 25 Aug 17:43 sage-document-sage.icns > -rw-r--r--@ 1 root admin 43811 25 Aug 17:43 sage-document-spkg.icns > -rw-r--r--@ 1 root admin 42074 25 Aug 17:43 sage-document-sws.icns > -rwxr-xr-x@ 1 root admin705 25 Aug 17:43 sage-is-running-on- > port.sh > -rw-r--r--@ 1 root admin 1594 25 Aug 17:43 sage-small-blue.png > -rw-r--r--@ 1 root admin 3580 25 Aug 17:43 sage-small-green.png > -rw-r--r--@ 1 root admin683 25 Aug 17:43 sage-small-grey.png > -rw-r--r--@ 1 root admin 1587 25 Aug 17:43 sage-small-red.png > -rw-r--r--@ 1 root admin 0 25 Aug 17:43 sage.log > -rwxr-xr-x@ 1 root admin 2158 25 Aug 17:43 start-sage.sh Everything being owned by root is definitely the cause of the problem of the terminal session, and maybe of the notebook too. You have a few options: sudo chmod go+w /Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/sage-current-location.txt and see if that fixes the problem. That might fix the problem, but you may run into more (it's hard to say until you try, but I can't think of any other things that might go wrong since it's quite normal to have sage installed by a user other than the one using it). I would suggest this method if you want to find out and help us fix everything that might go wrong. sudo chown -R $USER /Applications/Sage-4.7.1-OSX-64bit-10.6.app/ which is how I normally install it (well actually I just drag and drop so it's owned by my already), but this won't help if you decide to login and run as a different user. I would suggest this method unless you have some reason not to. Or last, you could just try starting sage as root: sudo /Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/sage You shouldn't need to run anything in sage--just starting should fix the contents of sage-current-location.txt which may solve the problem (though it will probably continue to log some errors). > To get rid of the @'s, I then did > # xattr -d -r com.apple.quarantine /Applications/Sage-4.7.1- > OSX-64bit-10.6.app/ > xattr: No such file: /Applications/Sage-4.7.1-OSX-64bit-10.6.app// > Contents/Resources/sage/data/graphs/graphs.db > # ls -l > total 2472 > lrwxr-xr-x@ 1 root admin 25 25 Aug 17:40 graphs.db -> /tmp/ > graphs.db.3Ymg7KKVkC > -rw-r--r-- 1 root admin 1258496 25 Aug 17:40 graphs.db.orig I'm not sure about that error. It might be a bug, but I don't think it's the cause of your problems. -Ivan -- 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: Possible to do quizzes and/or practice problems in notebook?
Hi Everyone, Chris, perhaps another approach is possible. For most mathematical problems, there are constructions possible that verify the answer. For example: when solving a system of equations, it is easy to implement a function that calculates each equation given the answers provided by the students and checks the answers. {Default example from solve? below} x, y = var('x, y') solve([x^2+y^2 == 1, y^2 == x^3 + x + 1], x, y) ==> verify that the answers are exactly what the students answer.. This simple example is perhaps not very good, solve might give the students a hint how to solve the problem automatically, but you get the yest of it.. - Leon On Aug 29, 7:29 pm, Jason Grout wrote: > On 8/29/11 12:14 PM, Maarten Derickx wrote: > > > I followed a course once on elliptic curves. Here there was no automated > > checking involved but it instead you had to share your worksheet with > > the people who grade homework. That also worked quite nice. The sad > > thing is that the sage server of our mathematics department > > (https://sage.math.leidenuniv.nl/) is down so I cannot show you how the > > file looked like. But what it basically did was to use the regular text > > in the worksheet to ask the questions, and after a piece of text you had > > an input field where you had to answer it. > > > I know this might not be advanced enough for you, but sometimes > > something is beter then nothing. > > I did a similar thing with linear algebra: > > http://sage.cs.drake.edu/home/pub/70/ > > http://sage.cs.drake.edu/home/pub/71/ > > It seemed to work well. > > 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 URL: http://www.sagemath.org
[sage-support] "Runtime Error: unable to start gap" with fresh install
I've got a headless, 32-bit VPS running Arch Linux. It's got a fresh install of Sage 4.7.1 on it from the Arch repos. However, when I start it with `sage -n`, I get this: ===PASTE=== emhs@li334-28 ~ % sage -n -- | Sage Version 4.7.1, Release Date: 2011-08-11 | | Type notebook() for the GUI, and license() for information.| -- Please wait while the Sage Notebook server starts... Traceback (most recent call last): File "/opt/sage/local/bin/sage-notebook", line 9, in from sage.server.notebook.all import notebook File "/opt/sage/local/lib/python2.6/site-packages/sage/server/ notebook/all.py", line 22, in from sagenb.notebook.all import * File "/opt/sage/devel/sagenb/sagenb/notebook/all.py", line 16, in from notebook_object import notebook, inotebook File "/opt/sage/devel/sagenb/sagenb/notebook/notebook_object.py", line 17, in import notebook as _notebook File "/opt/sage/devel/sagenb/sagenb/notebook/notebook.py", line 35, in from sagenb.misc.misc import (pad_zeros, cputime, tmp_dir, load, save, File "/opt/sage/devel/sagenb/sagenb/misc/misc.py", line 183, in import sage.all File "/opt/sage/local/lib/python2.6/site-packages/sage/all.py", line 75, in from sage.misc.all import * # takes a while File "/opt/sage/local/lib/python2.6/site-packages/sage/misc/all.py", line 79, in from functional import (additive_order, File "/opt/sage/local/lib/python2.6/site-packages/sage/misc/ functional.py", line 38, in from sage.rings.complex_double import CDF File "complex_double.pyx", line 95, in init sage.rings.complex_double (sage/rings/complex_double.c:14767) File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/ complex_field.py", line 89, in ComplexField C = ComplexField_class(prec) File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/ complex_field.py", line 189, in __init__ self._populate_coercion_lists_(coerce_list=[complex_number.RRtoCC(self._real_field(), self)]) File "complex_number.pyx", line 2248, in sage.rings.complex_number.RRtoCC.__init__ (sage/rings/complex_number.c: 14049) File "map.pyx", line 123, in sage.categories.map.Map.__init__ (sage/ categories/map.c:2168) File "/opt/sage/local/lib/python2.6/site-packages/sage/categories/ homset.py", line 152, in Hom H = category.hom_category().parent_class(X, Y, category = category) File "/opt/sage/local/lib/python2.6/site-packages/sage/categories/ rings.py", line 142, in __new__ from sage.rings.homset import RingHomset File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/ homset.py", line 17, in import quotient_ring File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/ quotient_ring.py", line 32, in import sage.rings.polynomial.multi_polynomial_ideal File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/ polynomial/multi_polynomial_ideal.py", line 237, in from sage.interfaces.all import (singular as singular_default, File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/ all.py", line 8, in from gap import gap, gap_reset_workspace, gap_console, gap_version, is_GapElement, Gap File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.py", line 1189, in gap_reset_workspace(verbose=False) File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.py", line 1180, in gap_reset_workspace g.save_workspace() File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.py", line 984, in save_workspace self.eval('SaveWorkspace("%s");'%WORKSPACE, allow_use_file=False) File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.py", line 375, in eval result = Expect.eval(self, input_line, **kwds) File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/ expect.py", line 1026, in eval return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != '']) File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.py", line 477, in _eval_line self._start() File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.py", line 914, in _start raise RuntimeError, msg RuntimeError: Unable to start gap because the command 'gap -r -b -p -T -o 3900m /opt/sage/data//extcode/gap/sage.g' failed. ===END PASTE=== This is a fresh server, with a fresh sage. When I try to just start sage directly, I get this: ===PASTE=== emhs@li334-28 ~ % sage -- | Sage Version 4.7.1, Release Date: 2011-08-11 | | Type notebook() for the GUI, and license() for information.| -- ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or i
[sage-support] Re: "Runtime Error: unable to start gap" with fresh install
Hi Elliott On Monday, August 29, 2011 10:26:04 PM UTC+2, Elliott Seyler wrote: > > It's got a fresh > install of Sage 4.7.1 on it from the Arch repos. Well, I fear this is an issue for the arch linux guys. Does anyone of them read this list? Is there a way to contact the maintainers? I can only suggest you to try building from source (it's not hard, just takes a while), and try again. H -- 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: "Runtime Error: unable to start gap" with fresh install
Well, here's the catch. I'm running Arch on both my computers (server and laptop) with the same, repo-installed sage package on both. Only on the server do I have trouble. On Aug 29, 1:37 pm, Harald Schilly wrote: > Hi Elliott > > On Monday, August 29, 2011 10:26:04 PM UTC+2, Elliott Seyler wrote: > > > It's got a fresh > > install of Sage 4.7.1 on it from the Arch repos. > > Well, I fear this is an issue for the arch linux guys. Does anyone of them > read this list? Is there a way to contact the maintainers? I can only > suggest you to try building from source (it's not hard, just takes a while), > and try again. > > H -- 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: Problems running the app under Mac OS X 10.6.8
The app was installed by the only local user and one that only needs to test it. The real users are remote through AD so vary. We're dealing with over a couple of hundred machines and users. Running as root or setting it to the current user isn't an option and making folders and files on the local hard drive generally writable isn't desirable. I changed the current location file but still got Last login: Mon Aug 29 16:47:32 on ttys001 '/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/'/ sage --notebook % '/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ sage/'/sage --notebook -- | Sage Version 4.7.1, Release Date: 2011-08-11 | | Type notebook() for the GUI, and license() for information.| -- Please wait while the Sage Notebook server starts... Traceback (most recent call last): File "/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ sage//local/bin/sage-notebook", line 9, in from sage.server.notebook.all import notebook File "/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ sage/local/lib/python2.6/site-packages/sage/server/notebook/all.py", line 22, in from sagenb.notebook.all import * File "/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ sage/devel/sagenb/sagenb/notebook/all.py", line 16, in from notebook_object import notebook, inotebook File "/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ sage/devel/sagenb/sagenb/notebook/notebook_object.py", line 17, in import notebook as _notebook File "/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ sage/devel/sagenb/sagenb/notebook/notebook.py", line 30, in import cPickle ImportError: dlopen(/Applications/Sage-4.7.1-OSX-64bit-10.6.app/ Contents/Resources/sage/local/lib/python2.6/lib-dynload/cPickle.so, 2): Symbol not found: _PyUnicodeUCS4_AsUTF8String Referenced from: /Applications/Sage-4.7.1-OSX-64bit-10.6.app/ Contents/Resources/sage/local/lib/python2.6/lib-dynload/cPickle.so Expected in: flat namespace in /Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/ sage/local/lib/python2.6/lib-dynload/cPickle.so -- 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: "Runtime Error: unable to start gap" with fresh install
So. Tried to compile from source. Here's the output from make, followed by config.log: ===MAKE OUTPUT=== % make cd spkg && "../spkg/pipestatus" "./install all 2>&1" "tee -a ../ install.log" *** ALL ENVIRONMENT VARIABLES BEFORE BUILD: *** SAGENB=sagenb-0.8.19 GD=gd-2.0.35.p5 CONWAY=conway_polynomials-0.2 CLIQUER=cliquer-1.2.p9 READLINE=readline-6.1 JINJA2=jinja2-2.5.5 SAGE_LOGS=/home/emhs/sage-4.7.1/spkg/logs LESS_TERMCAP_mb= PEXPECT=pexpect-2.0.p4 F2C=f2c-20070816.p2 MATPLOTLIB=matplotlib-1.0.1 G2RED=genus2reduction-0.3.p8 XDG_DATA_HOME=/home/emhs/.local/share LESS_TERMCAP_md= LIBM4RI=libm4ri-20100701.p1 LESS_TERMCAP_me= SAGE_BZIP2=bzip2-1.0.5 TERM=xterm SHELL=/bin/zsh CYTHON=cython-0.14.1.p3 MAKEFLAGS= SSH_CLIENT=209.129.161.251 13849 22 SQLALCHEMY=sqlalchemy-0.5.8 DOCUTILS=docutils-0.7.p0 ZNPOLY=zn_poly-0.9.p5 SYMMETRICA=symmetrica-2.0.p5 GIVARO=givaro-3.2.13rc2.p2 SAGETEX=sagetex-2.2.5 MPFR=mpfr-2.4.2 SYMPY=sympy-0.6.4.p0 POLYTOPES_DB=polytopes_db-20100210 OLDPWD=/home/emhs/sage-4.7.1 EXAMPLES=examples-4.7.1 ATLAS=atlas-3.8.3.p16 PREREQ=prereq-0.9 DIR=dir-0.1 LESS_TERMCAP_ue= TACHYON=tachyon-0.98.9.p3 SSH_TTY=/dev/ttyp0 MPFI=mpfi-1.3.4-cvs20071125.p8 MERCURIAL=mercurial-1.6.4.p0 CDDLIB=cddlib-094f.p8 vcs_info_msg_1_= ECLIB=eclib-20100711 USER=emhs R=r-2.10.1.p4 SPHINX=sphinx-1.0.4.p6 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*. 7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: LIBGCRYPT=libgcrypt-1.4.4.p3 CVXOPT=cvxopt-1.1.3 BOEHM_GC=boehm_gc-7.1.p7 TERMCAP=termcap-1.3.1.p1 MPIR=mpir-1.2.2.p2 ZODB=zodb3-3.7.0.p4 GRAPHS=graphs-20070722.p1 ICONV=iconv-1.13.1.p3 ECL=ecl-11.1.1.p1 CEPHES=cephes-2.8 SAGE_LOCAL=/home/emhs/sage-4.7.1/local MAKELEVEL=1 SAGE_SCRIPTS=sage_scripts-4.7.1 ECM=ecm-6.2.1.p2 PAGER=less TWISTED=twisted-9.0.p2 RUBIKS=rubiks-20070912.p17 FREETYPE=freetype-2.3.5.p3 MFLAGS= PYGMENTS=pygments-1.3.1.p0 LESS_TERMCAP_us= XDG_CONFIG_DIRS=/etc/xdg GAP=gap-4.4.12.p6 MAIL=/var/mail/emhs PATH=/home/emhs/sage-4.7.1:/home/emhs/sage-4.7.1/local/bin:/usr/local/ bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl IML=iml-1.0.1.p13 LAPACK=lapack-20071123.p2 EXTCODE=extcode-4.7.1 BLAS=blas-20070724 ZLIB=zlib-1.2.5 SINGULAR=singular-3-1-1-4.p12 GNUTLS=gnutls-2.2.1.p5 POLYBORI=polybori-0.7.0.p4 LIBGPG_ERROR=libgpg_error-1.6.p3 PWD=/home/emhs/sage-4.7.1/spkg JAVA_HOME=/usr/lib/jvm/java-6-openjdk LCALC=lcalc-20100428-1.23.p6 EDITOR=vim vcs_info_msg_0_= SCONS=scons-1.2.0 LINBOX=linbox-1.1.6.p3 OPENCDK=opencdk-0.6.6.p5 LANG=en_US.utf8 FLINTQS=flintqs-20070817.p5 GDMODULE=gdmodule-0.56.p7 SCIPY=scipy-0.9 SAGE_ROOT_REPO=sage_root-4.7.1 GFAN=gfan-0.4plus.p1 SAGE_ROOT=/home/emhs/sage-4.7.1 SAGE=sage-4.7.1 RATPOINTS=ratpoints-2.1.3.p1 NUMPY=numpy-1.5.1 PARI=pari-2.4.3.alpha.p7 PATCH=patch-2.5.9.p0 GLPK=glpk-4.44 PPL=ppl-0.11.2 PALP=palp-1.1.p3 SHLVL=4 HOME=/home/emhs PYCRYPTO=pycrypto-2.1.0 GSL=gsl-1.15 PYTHON_GNUTLS=python_gnutls-1.1.4.p7 XDG_CONFIG_HOME=/home/emhs/.config IPYTHON=ipython-0.9.1.p0 FLINT=flint-1.5.0.p5 XDG_CACHE_HOME=/home/emhs/.cache PYTHONPATH=/home/emhs/sage-4.7.1/local LOGNAME=emhs SQLITE=sqlite-3.7.5 MPMATH=mpmath-0.17 LESS_TERMCAP_so= J2SDKDIR=/usr/lib/jvm/java-6-openjdk SSH_CONNECTION=209.129.161.251 13849 96.126.101.28 22 XDG_DATA_DIRS=/usr/share/:/usr/local/share/ NTL=ntl-5.5.2 FORTRAN=fortran-20100629 PIL=pil-1.1.6.p4 BROWSER=w3m SYMPOW=sympow-1.018.1.p9 PYNAC=pynac-0.2.3 MAXIMA=maxima-5.23.2.p0 FPLLL=libfplll-3.0.12.p1 SETUPTOOLS=setuptools-0.6.16 J2REDIR=/usr/lib/jvm/java-6-openjdk/jre MOIN=moin-1.9.1.p2 ELLIPTIC_CURVES=elliptic_curves-0.1 BOOST_CROPPED=boost-cropped-1.34.1 PYTHON=python-2.6.4.p11 NETWORKX=networkx-1.2.p1 LIBPNG=libpng-1.2.35.p3 G_BROKEN_FILENAMES=1 COLORTERM=yes LESS_TERMCAP_se= _=/usr/bin/env *** make[1]: Entering directory `/
[sage-support] Re: Possible to do quizzes and/or practice problems in notebook?
On 8/29/11 11:20 AM, Chris Seberino wrote: Anyone know of any examples of doing quizzes and/or practice problems in Sage notebook worksheets? I'm imagining something where the worksheet asks a question and students can type in their answers to see if they are right or not. Links to example worksheets would be very much appreciated if such a beast exists. Another option is to embed Webwork problems into a Sage notebook. Michael Gage and Jason Aubrey (Webwork developers) worked on this during Sage EduDays 3 in June. The nice thing about this is that Webwork could keep track of the answers, you could use the nice features of webwork for checking answers, etc. Email me if you're interested and I can put you in touch with Michael Gage and Jason Aubrey. 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 URL: http://www.sagemath.org
[sage-support] Bug in global_height
There is a problem with the global_height function for elements of number fields. The fix would be very simple, just need to add two parentheses to the code. Below is an example of the problem. I'm running Sage version 4.7 on Mac OS X version 10.6.8. sage: K. = QuadraticField(2) sage: s.global_height() 0.346573590279973 sage: (1/s).global_height() 0.693147180559945 This is incorrect since s and 1/s should have the same height. The problem is explained in the comments made by the author of the code: "The absolute logarithmic height of this number field element; that is, the sum of the local heights at all finite and infinite places, with the contributions from the infinite places scaled by the degree to make the result independent of the parent field." However, it is both the arch. and non-arch. contributions that need to be scaled by the degree. The current code of global_height is : self.global_height_non_arch(prec)+self.global_height_arch(prec)/ self.number_field().absolute_degree() The problem would be fixed if this were replaced by: (self.global_height_non_arch(prec)+self.global_height_arch(prec))/ self.number_field().absolute_degree() -- 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: Bug in global_height
Dear dkrumm, Thanks for your very detailed bug report. I saw you also created a tract ticket for this at http://trac.sagemath.org/sage_trac/ticket/11758 Would you also be interested in writing a patch? The other possibility is to ask if someone here is nice enough to change the sage sourcecode and upload a patch, but then you have to wait till the next sage release till you can advantage of the correct code. And since you already exactly located the bug, you already did the hardest part of the debugging. If you are interested in trying to find out how the sage developement process works please let me know, so I can help you get started. Thanks, Maarten -- 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