Ask Your Question
1

texshop conda

asked 2020-09-10 19:16:43 +0200

Flips gravatar image

Someone could produce a sage.engine for texshop in order to run the sagetex if it was installed by conda?

I tried to call sage including sage -root in the path and changing sage.engine to

then
   echo Running Sage, please wait a moment...
   # New versions of Sage cannot be renamed; thus users need to read the
   # documentation in ~/TeXShop/Engines/Inactive/Sage whenever they update Sage;
   # for instance, the line below must contain the current name of Sage
    /opt/anaconda3/envs/sage/bin/sage "$sagename"
    pdflatex --file-line-error --synctex=1 "$filename"
else

but give the error

Running Sage, please wait a moment... 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 '/opt/anaconda3/envs/sage/bin/sage-env'; possibly contact sage-devel (see h t t p ://groups.google.com/group/sage-devel).

Thanks

edit retag flag offensive close merge delete

Comments

slelievre gravatar imageslelievre ( 2020-09-10 19:35:00 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-11-12 22:34:49 +0200

isuruf gravatar image

You shouldn't directly call sage using the sage executable.

Instead of

 /opt/anaconda3/envs/sage/bin/sage "$sagename"

try,

conda activate /opt/anaconda3/envs/sage
sage "$sagename"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-09-10 19:16:43 +0200

Seen: 465 times

Last updated: Nov 12 '20