Skip to content

sage-notebook-insecure ImportError #3895

@rlmill

Description

@rlmill
mannequin

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>

Component: notebook

Issue created by migration from https://trac.sagemath.org/ticket/3895

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions