#3895: sage-notebook-insecure ImportError
----------------------+-----------------------------------------------------
Reporter: rlm | Owner: malb
Type: defect | Status: closed
Priority: major | Milestone: sage-4.1.2
Component: notebook | Resolution: fixed
Keywords: | Reviewer:
Author: | Merged:
----------------------+-----------------------------------------------------
Changes (by malb):
* status: assigned => closed
* resolution: => fixed
Old description:
> If called from $SAGE_ROOT, everything goes fine, but if called from
> somewhere else:
>
> {{{
> rank4:sage-main rlmill$ ../../sage -inotebook
> ----------------------------------------------------------------------
> | SAGE Version 3.1.1, Release Date: 2008-08-17 |
> | Type notebook() for the GUI, and license() for information. |
> ----------------------------------------------------------------------
>
> Please wait while the SAGE Notebook server starts...
> Traceback (most recent call last):
> File "/Users/rlmill/sage-3.1.1/local/bin/sage-notebook-insecure", line
> 9, in <module>
> from sage.server.notebook.all import notebook
> File "/Users/rlmill/sage-3.1.1/devel/sage-
> main/sage/server/notebook/all.py", line 13, in <module>
> from notebook_object import notebook, inotebook
> File "/Users/rlmill/sage-3.1.1/devel/sage-
> main/sage/server/notebook/notebook_object.py", line 19, in <module>
> import notebook as _notebook
> File "/Users/rlmill/sage-3.1.1/devel/sage-
> main/sage/server/notebook/notebook.py", line 22, in <module>
> from sage.structure.sage_object import SageObject, load
> ImportError: No module named sage_object
> rank4:sage-main rlmill$ cd ../..
> rank4:sage-3.1.1 rlmill$ ./sage -inotebook
> ----------------------------------------------------------------------
> | SAGE Version 3.1.1, Release Date: 2008-08-17 |
> | Type notebook() for the GUI, and license() for information. |
> ----------------------------------------------------------------------
>
> Please wait while the SAGE Notebook server starts...
> ...
> The notebook files are stored in: /Users/rlmill/.sage//sage_notebook
> **************************************************
> * *
> * Open your web browser to http://localhost:8000 *
> * *
> **************************************************
> <goes swimmingly>
> }}}
New description:
If called from $SAGE_ROOT, everything goes fine, but if called from
somewhere else:
{{{
rank4:sage-main rlmill$ ../../sage -inotebook
----------------------------------------------------------------------
| SAGE Version 3.1.1, Release Date: 2008-08-17 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Please wait while the SAGE Notebook server starts...
Traceback (most recent call last):
File "/Users/rlmill/sage-3.1.1/local/bin/sage-notebook-insecure", line
9, in <module>
from sage.server.notebook.all import notebook
File "/Users/rlmill/sage-3.1.1/devel/sage-
main/sage/server/notebook/all.py", line 13, in <module>
from notebook_object import notebook, inotebook
File "/Users/rlmill/sage-3.1.1/devel/sage-
main/sage/server/notebook/notebook_object.py", line 19, in <module>
import notebook as _notebook
File "/Users/rlmill/sage-3.1.1/devel/sage-
main/sage/server/notebook/notebook.py", line 22, in <module>
from sage.structure.sage_object import SageObject, load
ImportError: No module named sage_object
rank4:sage-main rlmill$ cd ../..
rank4:sage-3.1.1 rlmill$ ./sage -inotebook
----------------------------------------------------------------------
| SAGE Version 3.1.1, Release Date: 2008-08-17 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Please wait while the SAGE Notebook server starts...
...
The notebook files are stored in: /Users/rlmill/.sage//sage_notebook
**************************************************
* *
* Open your web browser to http://localhost:8000 *
* *
**************************************************
<goes swimmingly>
}}}
--
Comment:
This is fixed (at least) in 4.1.1.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3895#comment:2>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---