Skip to content

SageNB broken when SAGE_PATH contains flavours of '.' during installation #10192

@hivert

Description

@hivert

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 sage-release.


Apply only

attachment: 10192-remove_dot_from_PYTHONPATH_in_sage-spkg.2.patch
to the Sage root repository.

Depends on #11073

CC: @nexttime @qed777 @mwhansen @jdemeyer @jhpalmieri

Component: build

Keywords: notebook installation dot PYTHONPATH easy_install easy-install pth sage-spkg setuptools

Author: Leif Leonhardy, Punarbasu Purkayastha

Reviewer: Florent Hivert, Jeroen Demeyer

Merged: sage-5.0.beta6

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions