#10192: SageNB broken when SAGE_PATH contains flavours of '.' during
installation
------------------------------+---------------------------------------------
Reporter: hivert | Owner: jason, was
Type: defect | Status: positive_review
Priority: major | Milestone: sage-5.0
Component: build | Keywords: notebook installation dot
PYTHONPATH easy_install easy-install pth sage-spkg setuptools
Work_issues: | Upstream: N/A
Reviewer: Florent Hivert | Author: Leif Leonhardy
Merged: | Dependencies:
------------------------------+---------------------------------------------
Changes (by ppurka):
* status: needs_review => positive_review
Old description:
> When `SAGE_PATH` (and hence also `PYTHONPATH`) contains "`.`" (the
> current working directory) during the installation of `sagenb`, Python is
> able to find `sagenb` in its path and therefore refuses to add it to
> `easy-install.pth`. Later, Sage won't find it, leading to the following
> error message:
> {{{
> ImportError: No module named sagenb.misc.sphinxify
> Error importing ipy_profile_sage - perhaps you should run %upgrade?
> WARNING: Loading of ipy_profile_sage failed.
> }}}
>
> This is a follow-up to #10176, and there has been some discussion on
> [http://groups.google.com/group/sage-
> release/browse_thread/thread/bb636656e2153332 sage-release].
>
> ----
>
> Apply only
>
> [attachment:trac_10192-remove_dot_from_PYTHONPATH_in_sage-
> spkg.v2.scripts.patch]
>
> to the Sage '''scripts repository''' (in `$SAGE_ROOT/local/bin/`).
New description:
When `SAGE_PATH` (and hence also `PYTHONPATH`) contains "`.`" (the current
working directory) during the installation of `sagenb`, Python is able to
find `sagenb` in its path and therefore refuses to add it to `easy-
install.pth`. Later, Sage won't find it, leading to the following error
message:
{{{
ImportError: No module named sagenb.misc.sphinxify
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
}}}
This is a follow-up to #10176, and there has been some discussion on
[http://groups.google.com/group/sage-
release/browse_thread/thread/bb636656e2153332 sage-release].
----
Apply only
[attachment:trac_10192-remove_dot_from_PYTHONPATH_in_sage-
spkg.v3.scripts.patch]
to the Sage '''scripts repository''' (in `$SAGE_ROOT/local/bin/`).
--
Comment:
Update patch to sage-4.8.
This has positive review from my side. If there is nothing else holding it
up, then it should be merged, in my opinion.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10192#comment:19>
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.