On Mon, Oct 19, 2009 at 11:12 AM, lutusp <lut...@gmail.com> wrote: > > On Oct 19, 10:19 am, William Stein <wst...@gmail.com> wrote: >> On Mon, Oct 19, 2009 at 9:30 AM, lutusp <lut...@gmail.com> wrote: >> >> > Hi all. Just downloaded 4.1.2 for Fedora 11. When I start the notebook >> > server, everything is fine -- the worksheets get converted and placed >> > in the new directory sage_notebook.sagenb, then I can load a >> > worksheet. But when I try to execute a cell, I get this error message: >> >> > NameError: name 'sagenb' is not defined >> >> That error indicates that Sage is running worksheet processes >> using a version of Sage prior to 4.1.2. >> >> What precisely is the command you use to start your notebook server? > > 1. Installed Fedora 11 binary in my sage directory -- this creates a > subdirectory named "sage-4.1.2-linux-Fedora_release_11_Leonidas-i686- > Linux" > > 2. Renamed two prior Sage directories by prefixing "xxx_" to their > names (to keep them from being found but to avoid having to reinstall > them). > > 3. Entered the new Fedora 11 Sage 4.1.2 directory. > > 4. Entered "./sage -notebook" > > 5. Sage offers to convert the prior notebook formats, completes, runs > server, launches Firefox. > > 6. Log onto Sage server -- note "Version 4.1.2" at upper left -- open > worksheet. > > 7. Try to execute a cell's contents. Message: > > "Traceback (click to the left for traceback) > ... > NameError: name 'sagenb' is not defined" > > (no traceback contents) > > 8. Create a new notebook. > > (Now it gets complicated) > > 9. Copy example old worksheet cell contents into new worksheet. Up to > a certain level of complexity, copied cell contents will work in a > newly created worksheet but continue to fail if the old worksheet is > loaded and executed. I emphasize when I say "old worksheet" I am > talking about worksheets converted to the new format and placed in the > new directory "sage_notebook.sagenb", and I just took the precaution > of removing the old directory "sage_notebook" entirely to avoid any > possible confusion. > > I emphasize that the old worksheet fails to execute cell contents, but > the same cell copied to a new worksheet succeeds ... but only up to a > certain level of complexity, after which the new and old scenarios > (e.g. execution of old worksheet cells versus old cell content copied > into new worksheet) become the same. > >> Do you have any old versions of Sage installed anywhere? > > Yes, two. But I have renamed the directories with a prefixed "xxx_" to > prevent their being located. One note -- if any Sage software is > locating resources using inodes instead of paths, this would prevent > the above remedy from having the expected effect. > > If you want an example of a complex legacy worksheet, there is a > resource .sws file attached tho the latest page of my Sage tutorial > located at: > > http://arachnoid.com/sage/polynomial.html > > The .sws URL: > > http://arachnoid.com/sage/sage/polynomial_regression.sws > > 10. I tried compiling and installing the source (which was > successful), but with the same outcome. > > Please ask any questions I have failed to proactively answer. >
Despite your extensive feedback, I have no ideas. Could you tar up and post your sage_notebook.sagenb directory and just let me try it out, assuming it doesn't have anything too personal, and just let me try it out? William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---