Opened 6 years ago

Last modified 5 years ago

#22638 closed defect

python = python2 even with SAGE_PYTHON3=yes — at Version 2

Reported by: Jeroen Demeyer Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: python3 Keywords:
Cc: Frédéric Chapoton Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Jeroen Demeyer)

When installing Sage with SAGE_PYTHON3=yes, the program python points to python2. This causes build-time problems like

[sagelib-7.6.rc1] ************************************************************************
[sagelib-7.6.rc1] Traceback (most recent call last):
[sagelib-7.6.rc1]   File "", line 54, in <module>
[sagelib-7.6.rc1]     import sage.env
[sagelib-7.6.rc1]   File "/usr/local/src/sage-config/src/sage/", line 87, in <module>
[sagelib-7.6.rc1]     _add_variable_or_fallback('UNAME',           os.uname()[0])
[sagelib-7.6.rc1]   File "/usr/local/src/sage-config/src/sage/", line 71, in _add_variable_or_fallback
[sagelib-7.6.rc1]     import six
[sagelib-7.6.rc1] ImportError: No module named six
[sagelib-7.6.rc1] ************************************************************************
[sagelib-7.6.rc1] Error building the Sage library
[sagelib-7.6.rc1] ************************************************************************
[sagelib-7.6.rc1] Please email sage-devel (
[sagelib-7.6.rc1] explaining the problem and including the relevant part of the log file
[sagelib-7.6.rc1]   /usr/local/src/sage-config/logs/pkgs/sagelib-7.6.rc1.log
[sagelib-7.6.rc1] Describe your computer, operating system, etc.
[sagelib-7.6.rc1] ************************************************************************

six is installed as expected in local/lib/python3.5/site-packages/ The directory local/lib/python2.7/site-packages/ is empty.

Change History (2)

comment:1 Changed 6 years ago by Jeroen Demeyer

Summary: "python" = python2 even with SAGE_PYTHON3=yespython = python2 even with SAGE_PYTHON3=yes

comment:2 Changed 6 years ago by Jeroen Demeyer

Description: modified (diff)
Note: See TracTickets for help on using tickets.