ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 12 Nov 2020 22:34:49 +0100texshop condahttps://ask.sagemath.org/question/53396/texshop-conda/ 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).
ThanksThu, 10 Sep 2020 19:16:43 +0200https://ask.sagemath.org/question/53396/texshop-conda/Comment by slelievre for <p>Someone could produce a sage.engine for texshop in order to run the sagetex if it was installed by conda?</p>
<p>I tried to call sage including sage -root in the path and changing sage.engine to</p>
<pre><code>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
</code></pre>
<p>but give the error</p>
<p>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).</p>
<p>Thanks</p>
https://ask.sagemath.org/question/53396/texshop-conda/?comment=53397#post-id-53397Now tracked at
- https://github.com/sagemath/sagetex/issues/50Thu, 10 Sep 2020 19:35:00 +0200https://ask.sagemath.org/question/53396/texshop-conda/?comment=53397#post-id-53397Answer by isuruf for <p>Someone could produce a sage.engine for texshop in order to run the sagetex if it was installed by conda?</p>
<p>I tried to call sage including sage -root in the path and changing sage.engine to</p>
<pre><code>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
</code></pre>
<p>but give the error</p>
<p>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).</p>
<p>Thanks</p>
https://ask.sagemath.org/question/53396/texshop-conda/?answer=54230#post-id-54230You 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"Thu, 12 Nov 2020 22:34:49 +0100https://ask.sagemath.org/question/53396/texshop-conda/?answer=54230#post-id-54230