ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 07 Jan 2019 07:21:10 -0600Cannot install SageMath on Ubuntu 16.04: "Maximum recursion depth exceeded"http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/I have Ubuntu 16.04.
I downloaded the binary file "sage-8.4-Ubuntu_16.04-x86_64.tar.bz2",
extracted it with:
tar jxf sage-8.4-Ubuntu_16.04-x86_64.tar.bz2
then went into the folder and ran sage:
cd SageMath
./sage
I got the following error:
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.
************************************************************************
I don't think I should run make, since I downloaded a binary version, but I tried anyway and got a similar error:
RecursionError: maximum recursion depth exceeded during compilation
Makefile:31: recipe for target 'base-toolchain' failed
make: *** [base-toolchain] Error 1
I found some notes saying that it might be related to the Python version. I have both 3.7 and 2.7. Should I somehow tell SageMath to use 2.7? How?
Alternatively, is there another possible source for this error?Wed, 26 Dec 2018 11:56:46 -0600http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/Comment by slelievre for <p>I have Ubuntu 16.04.
I downloaded the binary file "sage-8.4-Ubuntu_16.04-x86_64.tar.bz2",
extracted it with:</p>
<pre><code>tar jxf sage-8.4-Ubuntu_16.04-x86_64.tar.bz2
</code></pre>
<p>then went into the folder and ran sage:</p>
<pre><code>cd SageMath
./sage
</code></pre>
<p>I got the following error:</p>
<pre><code>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.
************************************************************************
</code></pre>
<p>I don't think I should run make, since I downloaded a binary version, but I tried anyway and got a similar error:</p>
<pre><code>RecursionError: maximum recursion depth exceeded during compilation
Makefile:31: recipe for target 'base-toolchain' failed
make: *** [base-toolchain] Error 1
</code></pre>
<p>I found some notes saying that it might be related to the Python version. I have both 3.7 and 2.7. Should I somehow tell SageMath to use 2.7? How?</p>
<p>Alternatively, is there another possible source for this error?</p>
http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?comment=44802#post-id-44802Please try with Sage 8.5 and report if you get the same error.
Run the following in a terminal and check what output you get:
python --versionFri, 28 Dec 2018 13:58:51 -0600http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?comment=44802#post-id-44802Comment by nbruin for <p>I have Ubuntu 16.04.
I downloaded the binary file "sage-8.4-Ubuntu_16.04-x86_64.tar.bz2",
extracted it with:</p>
<pre><code>tar jxf sage-8.4-Ubuntu_16.04-x86_64.tar.bz2
</code></pre>
<p>then went into the folder and ran sage:</p>
<pre><code>cd SageMath
./sage
</code></pre>
<p>I got the following error:</p>
<pre><code>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.
************************************************************************
</code></pre>
<p>I don't think I should run make, since I downloaded a binary version, but I tried anyway and got a similar error:</p>
<pre><code>RecursionError: maximum recursion depth exceeded during compilation
Makefile:31: recipe for target 'base-toolchain' failed
make: *** [base-toolchain] Error 1
</code></pre>
<p>I found some notes saying that it might be related to the Python version. I have both 3.7 and 2.7. Should I somehow tell SageMath to use 2.7? How?</p>
<p>Alternatively, is there another possible source for this error?</p>
http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?comment=44793#post-id-44793Judging from where the error message you quote is raised, I suspect the error arises in `sage-location`. However, as
https://ask.sagemath.org/question/35132/how-do-i-solve-this-installation-problem/
indicates, it might not be necessary to trace the precise source of the error.Thu, 27 Dec 2018 10:17:58 -0600http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?comment=44793#post-id-44793Comment by Erel Segal-Halevi for <p>I have Ubuntu 16.04.
I downloaded the binary file "sage-8.4-Ubuntu_16.04-x86_64.tar.bz2",
extracted it with:</p>
<pre><code>tar jxf sage-8.4-Ubuntu_16.04-x86_64.tar.bz2
</code></pre>
<p>then went into the folder and ran sage:</p>
<pre><code>cd SageMath
./sage
</code></pre>
<p>I got the following error:</p>
<pre><code>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.
************************************************************************
</code></pre>
<p>I don't think I should run make, since I downloaded a binary version, but I tried anyway and got a similar error:</p>
<pre><code>RecursionError: maximum recursion depth exceeded during compilation
Makefile:31: recipe for target 'base-toolchain' failed
make: *** [base-toolchain] Error 1
</code></pre>
<p>I found some notes saying that it might be related to the Python version. I have both 3.7 and 2.7. Should I somehow tell SageMath to use 2.7? How?</p>
<p>Alternatively, is there another possible source for this error?</p>
http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?comment=44787#post-id-44787@nbruin I put all the error messages that I saw. Where can I find more detailed messages?Thu, 27 Dec 2018 00:07:29 -0600http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?comment=44787#post-id-44787Comment by nbruin for <p>I have Ubuntu 16.04.
I downloaded the binary file "sage-8.4-Ubuntu_16.04-x86_64.tar.bz2",
extracted it with:</p>
<pre><code>tar jxf sage-8.4-Ubuntu_16.04-x86_64.tar.bz2
</code></pre>
<p>then went into the folder and ran sage:</p>
<pre><code>cd SageMath
./sage
</code></pre>
<p>I got the following error:</p>
<pre><code>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.
************************************************************************
</code></pre>
<p>I don't think I should run make, since I downloaded a binary version, but I tried anyway and got a similar error:</p>
<pre><code>RecursionError: maximum recursion depth exceeded during compilation
Makefile:31: recipe for target 'base-toolchain' failed
make: *** [base-toolchain] Error 1
</code></pre>
<p>I found some notes saying that it might be related to the Python version. I have both 3.7 and 2.7. Should I somehow tell SageMath to use 2.7? How?</p>
<p>Alternatively, is there another possible source for this error?</p>
http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?comment=44786#post-id-44786My guess is that in the build process, there is something that ends up in an infinite recursion. Would there perhaps be a symbolic link somewhere in your system that creates a loop? If the build process does a filesystem tree search somewhere, then such a loop would likely cause an infinite recursion. Looking at the traceback of the cause of the RecursionError would probably provide you with a hint. Do you have more detailed error messages available?Wed, 26 Dec 2018 14:14:35 -0600http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?comment=44786#post-id-44786Answer by Iguananaut for <p>I have Ubuntu 16.04.
I downloaded the binary file "sage-8.4-Ubuntu_16.04-x86_64.tar.bz2",
extracted it with:</p>
<pre><code>tar jxf sage-8.4-Ubuntu_16.04-x86_64.tar.bz2
</code></pre>
<p>then went into the folder and ran sage:</p>
<pre><code>cd SageMath
./sage
</code></pre>
<p>I got the following error:</p>
<pre><code>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.
************************************************************************
</code></pre>
<p>I don't think I should run make, since I downloaded a binary version, but I tried anyway and got a similar error:</p>
<pre><code>RecursionError: maximum recursion depth exceeded during compilation
Makefile:31: recipe for target 'base-toolchain' failed
make: *** [base-toolchain] Error 1
</code></pre>
<p>I found some notes saying that it might be related to the Python version. I have both 3.7 and 2.7. Should I somehow tell SageMath to use 2.7? How?</p>
<p>Alternatively, is there another possible source for this error?</p>
http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?answer=44927#post-id-44927This is a known issue that was resolved in Sage 8.5: https://trac.sagemath.org/ticket/25668 Another workaround is to install python2 and ensure that PYTHON=python2.Mon, 07 Jan 2019 07:21:10 -0600http://ask.sagemath.org/question/44785/cannot-install-sagemath-on-ubuntu-1604-maximum-recursion-depth-exceeded/?answer=44927#post-id-44927