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.Mon, 13 May 2019 01:53:22 +0200RecursionError when installing SageMath 8.2https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/I downloaded `sage-8.2-OSX_10.13.4-x86_64.dmg`. Then I ran `./sage` from the extracted `SageMath` directory in a Terminal. Then I got the following error:
Last login: Sun Jun 10 23:17:18 on ttys001
/Users/jing/tools/SageMath/sage ; exit;
➜ ~ /Users/jing/tools/SageMath/sage ; exit;
RecursionError: maximum recursion depth exceeded during compilation
************************************************************************
It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run `make` in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.
************************************************************************
[Process completed]
I am using macOS 10.13.4. Can anyone help me on this?Sun, 10 Jun 2018 17:23:32 +0200https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/Answer by Biel Cardona for <p>I downloaded <code>sage-8.2-OSX_10.13.4-x86_64.dmg</code>. Then I ran <code>./sage</code> from the extracted <code>SageMath</code> directory in a Terminal. Then I got the following error:</p>
<p>Last login: Sun Jun 10 23:17:18 on ttys001
/Users/jing/tools/SageMath/sage ; exit;
➜ ~ /Users/jing/tools/SageMath/sage ; exit;
RecursionError: maximum recursion depth exceeded during compilation</p>
<hr>
<p>It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run <code>make</code> in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.</p>
<hr>
<p>[Process completed]</p>
<p>I am using macOS 10.13.4. Can anyone help me on this?</p>
https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?answer=42869#post-id-42869As some other answers pointed out, the problem is that the first time that sage is called, the script `relocate-once.py` is executed. Since in that file, the shebang line reads `/usr/bin/env python`, the system calls the default python interpreter. The simplest solution is to have python 2.7 installed and change that line to `/usr/bin/env python2.7` or directly the path of a python 2.7 interpreter.Mon, 09 Jul 2018 14:44:51 +0200https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?answer=42869#post-id-42869Answer by John Palmieri for <p>I downloaded <code>sage-8.2-OSX_10.13.4-x86_64.dmg</code>. Then I ran <code>./sage</code> from the extracted <code>SageMath</code> directory in a Terminal. Then I got the following error:</p>
<p>Last login: Sun Jun 10 23:17:18 on ttys001
/Users/jing/tools/SageMath/sage ; exit;
➜ ~ /Users/jing/tools/SageMath/sage ; exit;
RecursionError: maximum recursion depth exceeded during compilation</p>
<hr>
<p>It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run <code>make</code> in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.</p>
<hr>
<p>[Process completed]</p>
<p>I am using macOS 10.13.4. Can anyone help me on this?</p>
https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?answer=42564#post-id-42564You need to copy the `SageMath` directory to somewhere on your hard drive – you can't just run `./sage` from within the directory in the virtual drive that you get when you open up the `dmg` file. Once you've copied it somewhere and run `./sage`, you should see
Rewriting paths for your new installation directory
===================================================
This might take a few minutes but only has to be done once.
followed by lots of messages like
patching /Users/palmieri/Desktop/SageMath/build/make/Makefile-auto
patching /Users/palmieri/Desktop/SageMath/config.status
(etc.)
At this point, you won't be able to move the SageMath folder – its location has been burned in during the patching process – so pick a good location. (You can always copy a fresh SageMath folder from the dmg file, if you want to start over.)
Mon, 11 Jun 2018 07:38:03 +0200https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?answer=42564#post-id-42564Comment by j.c. for <p>You need to copy the <code>SageMath</code> directory to somewhere on your hard drive – you can't just run <code>./sage</code> from within the directory in the virtual drive that you get when you open up the <code>dmg</code> file. Once you've copied it somewhere and run <code>./sage</code>, you should see </p>
<pre><code>Rewriting paths for your new installation directory
===================================================
This might take a few minutes but only has to be done once.
</code></pre>
<p>followed by lots of messages like</p>
<pre><code>patching /Users/palmieri/Desktop/SageMath/build/make/Makefile-auto
patching /Users/palmieri/Desktop/SageMath/config.status
(etc.)
</code></pre>
<p>At this point, you won't be able to move the SageMath folder – its location has been burned in during the patching process – so pick a good location. (You can always copy a fresh SageMath folder from the dmg file, if you want to start over.)</p>
https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?comment=42566#post-id-42566Given the path shown in the post `/Users/jing/tools/SageMath/sage` I don't think that the OP is trying to run sage from within the dmg file.Mon, 11 Jun 2018 11:01:37 +0200https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?comment=42566#post-id-42566Answer by Jingguo Yao for <p>I downloaded <code>sage-8.2-OSX_10.13.4-x86_64.dmg</code>. Then I ran <code>./sage</code> from the extracted <code>SageMath</code> directory in a Terminal. Then I got the following error:</p>
<p>Last login: Sun Jun 10 23:17:18 on ttys001
/Users/jing/tools/SageMath/sage ; exit;
➜ ~ /Users/jing/tools/SageMath/sage ; exit;
RecursionError: maximum recursion depth exceeded during compilation</p>
<hr>
<p>It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run <code>make</code> in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.</p>
<hr>
<p>[Process completed]</p>
<p>I am using macOS 10.13.4. Can anyone help me on this?</p>
https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?answer=42611#post-id-42611I finally found that the cause of this problem is that I have used brew to installed python3 and linked python to python3. After I used brew to uninstall python3, the problem is solved.Sat, 16 Jun 2018 03:24:59 +0200https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?answer=42611#post-id-42611Comment by j.c. for <p>I finally found that the cause of this problem is that I have used brew to installed python3 and linked python to python3. After I used brew to uninstall python3, the problem is solved.</p>
https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?comment=42612#post-id-42612Note that this path issue only seems to be a problem when running Sage for the first time. You should be able to reinstall python3 again with homebrew and use Sage without any problem (until you upgrade versions).Sat, 16 Jun 2018 18:51:28 +0200https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?comment=42612#post-id-42612Answer by j.c. for <p>I downloaded <code>sage-8.2-OSX_10.13.4-x86_64.dmg</code>. Then I ran <code>./sage</code> from the extracted <code>SageMath</code> directory in a Terminal. Then I got the following error:</p>
<p>Last login: Sun Jun 10 23:17:18 on ttys001
/Users/jing/tools/SageMath/sage ; exit;
➜ ~ /Users/jing/tools/SageMath/sage ; exit;
RecursionError: maximum recursion depth exceeded during compilation</p>
<hr>
<p>It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run <code>make</code> in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.</p>
<hr>
<p>[Process completed]</p>
<p>I am using macOS 10.13.4. Can anyone help me on this?</p>
https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?answer=42565#post-id-42565On the off-chance you're using Anaconda, try commenting out the `export PATH="/anaconda/bin:$PATH"` line in the `.bash_profile` file (and restarting your terminal) before you run Sage for the first time.
You can uncomment it again after sage successfully runs (until you have to rebuild or upgrade Sage).Mon, 11 Jun 2018 10:58:40 +0200https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?answer=42565#post-id-42565Comment by blove for <p>On the off-chance you're using Anaconda, try commenting out the <code>export PATH="/anaconda/bin:$PATH"</code> line in the <code>.bash_profile</code> file (and restarting your terminal) before you run Sage for the first time. </p>
<p>You can uncomment it again after sage successfully runs (until you have to rebuild or upgrade Sage).</p>
https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?comment=46498#post-id-46498This fixed this problem for me. Thanks!Mon, 13 May 2019 01:53:22 +0200https://ask.sagemath.org/question/42562/recursionerror-when-installing-sagemath-82/?comment=46498#post-id-46498