#11914: `sage -n` fails when current directory is $SAGE_ROOT/devel/sage
-----------------------+----------------------------------------------------
Reporter: kini | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7.2
Component: scripts | Keywords: startup, crash, sage-env
Work_issues: | Upstream: N/A
Reviewer: | Author: Leif Leonhardy
Merged: | Dependencies:
-----------------------+----------------------------------------------------
Changes (by newvalueoldvalue):
* status: new => needs_review
* author: => Leif Leonhardy
Old description:
> Traceback as follows:
>
> {{{
> fs@zhenghe /opt/sage/devel/sage $ ../../sage -n
> ----------------------------------------------------------------------
> | Sage Version 4.7.2.alpha3, Release Date: 2011-09-28 |
> | Type notebook() for the GUI, and license() for information. |
> ----------------------------------------------------------------------
> **********************************************************************
> * *
> * Warning: this is a prerelease version, and it may be unstable. *
> * *
> **********************************************************************
>
> Please wait while the Sage Notebook server starts...
> Traceback (most recent call last):
> File "/opt/sage/local/bin/sage-notebook", line 9, in <module>
> from sage.server.notebook.all import notebook
> File "/opt/sage-4.7.2.alpha3/devel/sage-
> main/sage/server/notebook/all.py", line 22, in <module>
> from sagenb.notebook.all import *
> File "/opt/sage/devel/sagenb/sagenb/notebook/all.py", line 18, in
> <module>
> from interact import interact, input_box, slider, range_slider,
> selector, checkbox, input_grid, text_control, color_selector
> File "/opt/sage/devel/sagenb/sagenb/notebook/interact.py", line 158, in
> <module>
> from sage.misc.cachefunc import cached_method
> File "/opt/sage-4.7.2.alpha3/devel/sage-main/sage/misc/cachefunc.py",
> line 22, in <module>
> from function_mangling import ArgumentFixer
> ImportError: No module named function_mangling
> fs@zhenghe /opt/sage/devel/sage $
> }}}
>
> ppurka suggests prepending `$SAGE_ROOT/devel/sage/build/sage/` to
> `PYTHONPATH` in `sage-env`. This indeed works, but I'm not sure what else
> it might break. Advice?
New description:
Traceback as follows:
{{{
fs@zhenghe /opt/sage/devel/sage $ ../../sage -n
----------------------------------------------------------------------
| Sage Version 4.7.2.alpha3, Release Date: 2011-09-28 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
Please wait while the Sage Notebook server starts...
Traceback (most recent call last):
File "/opt/sage/local/bin/sage-notebook", line 9, in <module>
from sage.server.notebook.all import notebook
File "/opt/sage-4.7.2.alpha3/devel/sage-
main/sage/server/notebook/all.py", line 22, in <module>
from sagenb.notebook.all import *
File "/opt/sage/devel/sagenb/sagenb/notebook/all.py", line 18, in
<module>
from interact import interact, input_box, slider, range_slider,
selector, checkbox, input_grid, text_control, color_selector
File "/opt/sage/devel/sagenb/sagenb/notebook/interact.py", line 158, in
<module>
from sage.misc.cachefunc import cached_method
File "/opt/sage-4.7.2.alpha3/devel/sage-main/sage/misc/cachefunc.py",
line 22, in <module>
from function_mangling import ArgumentFixer
ImportError: No module named function_mangling
fs@zhenghe /opt/sage/devel/sage $
}}}
ppurka suggests prepending `$SAGE_ROOT/devel/sage/build/sage/` to
`PYTHONPATH` in `sage-env`. This indeed works, but I'm not sure what else
it might break. Advice?
----
Apply [attachment:trac_11914-sage-env-pythonpath.patch] to
`$SAGE_ROOT/local/bin`
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11914#comment:18>
Sage <http://www.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.