Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage -v cannot work : sage's env hasn't been sourced yet! #29036

Closed
SnarkBoojum mannequin opened this issue Jan 18, 2020 · 3 comments
Closed

sage -v cannot work : sage's env hasn't been sourced yet! #29036

SnarkBoojum mannequin opened this issue Jan 18, 2020 · 3 comments

Comments

@SnarkBoojum
Copy link
Mannequin

SnarkBoojum mannequin commented Jan 18, 2020

The problem was reported on Debian, but I checked the source on git to see it was also there upstream.

The problem is that the sage_version function in src/bin/sage is using $SAGE_foo variables, but is called (by itself and through others, like usage and usage_advanced) by functions which are called before the environment has been set. Run where $0-version.sh isn't readily available, it even tries to source a file on a wrong path, which just gives an error.

CC: @jhpalmieri

Component: scripts

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

@SnarkBoojum SnarkBoojum mannequin added this to the sage-9.1 milestone Jan 18, 2020
@SnarkBoojum SnarkBoojum mannequin added c: scripts labels Jan 18, 2020
@mkoeppe
Copy link
Member

mkoeppe commented May 3, 2020

comment:1

Works for me in 9.1.rc2

@mkoeppe mkoeppe removed this from the sage-9.1 milestone May 3, 2020
@jhpalmieri
Copy link
Member

comment:2

Works for me, too:

% ls
% tar xf ../../tar-files/sage-9.1.rc2.tar.gz 
% cd sage-9.1.rc2 
% ./sage -v
SageMath version 9.1.rc2, Release Date: 2020-04-25

I suppose it could be a Debian problem, or more generally a problem for the distros. @SnarkBoojum: Is there a reason to keep this open?

@jhpalmieri
Copy link
Member

comment:3

Let's close this. We can open a new ticket if the problem resurfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants