SAGE_ROOT error when start the program

asked 2020-09-16 23:17:47 +0100

hongkai.yu gravatar image

updated 2020-09-17 09:30:41 +0100

FrédéricC gravatar image

Hi,

I have installed sage via Conda. It worked alright after the installation. Then I hadn't used Sage for a while until today. Now when I tried to run sage. I encountered an error message:

[I] ~ ❯❯❯ conda activate sage (base) [I] ~ ❯❯❯ sage (sage) Error: You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. Error setting environment variables by sourcing '/Users/Hongkai_Yu/opt/anaconda3/envs/sage/bin/sage-env'; possibly contact sage-devel And even if I entered the bin directory of Sage, the same problem persists.

[I] ~ ❯❯❯ cd opt/anaconda3/envs/sage/bin/ (sage) [I] ~/o/a/e/s/bin ❯❯❯ ./sage (sage) Error: You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. Error setting environment variables by sourcing './sage-env'; possibly contact sage-devel

I don't remember I have ever set the Sage environment variables.

I would appreciate it if anyone can help me with this. Thanks in advance!

edit retag flag offensive close merge delete

Comments

Did you try to re-install ? If you upgraded your system since the last time, it may be required.

FrédéricC gravatar imageFrédéricC ( 2020-09-17 09:30:19 +0100 )edit

I suppose it is a linux install, the last error message is

Error setting environment variables by sourcing './sage-env'

so maybe one should look inside that ./sage-env. But this would be the start of the path. We need the same machine to debug the point of bad installation. Maybe some directories were removed. Try

sage -sh

then use set to see all environment variables. Here, DOT_SAGE may be the missing bridge. But there are many other reasons. Just reinstall. Which is the linux distro used?

dan_fulea gravatar imagedan_fulea ( 2020-09-22 12:49:57 +0100 )edit