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, 08 Oct 2018 10:56:07 -0500make ptest fails after compilation based on Python3http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/I installed sagemath 8.3rc0 on my fedora 28 linux x86_64 system using the following commands:
make configure
./configure --prefix=$HOME/sage --with-python=3 --with-mp=gmp
make build
This seemed to have installed sage successfully but when I run tests with:
$ make ptest
I get the following errors and make ptest fails:
[manifolds] from Queue import Queue
[manifolds] ModuleNotFoundError: No module named 'Queue'
OSError: [manifolds] /home/user/sagemath/inst/lib/python3.6/site-packages/sage/manifolds/differentiable/curve.py:docstring of sage.manifolds.differentiable.curve.DifferentiableCurve:58: WARNING: Exception occurred in plotting curve-1
[dochtml] [manifolds] dumping object inventory... done
[dochtml] [manifolds] build succeeded.
[dochtml] [manifolds] The HTML pages are in ../inst/share/doc/sage/inventory/en/reference/manifolds.
[dochtml] Error building the documentation.
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):
* documentation: dochtml
log file: /home/user/sagemath/src/logs/pkgs/../dochtml.log
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
make[1]: *** [Makefile:33: all-start] Error 1
make[1]: Leaving directory '/home/user/sagemath/src'
make: *** [Makefile:13: all] Error 2
I believe one of the `OSError` or the `dochtml` error is causing `make ptest` to fail. Can I get advice on how I can correct these problems?Wed, 11 Jul 2018 10:19:16 -0500http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/Comment by slelievre for <p>I installed sagemath 8.3rc0 on my fedora 28 linux x86_64 system using the following commands:</p>
<pre><code>make configure
./configure --prefix=$HOME/sage --with-python=3 --with-mp=gmp
make build
</code></pre>
<p>This seemed to have installed sage successfully but when I run tests with:</p>
<pre><code>$ make ptest
</code></pre>
<p>I get the following errors and make ptest fails:</p>
<pre><code> [manifolds] from Queue import Queue
[manifolds] ModuleNotFoundError: No module named 'Queue'
OSError: [manifolds] /home/user/sagemath/inst/lib/python3.6/site-packages/sage/manifolds/differentiable/curve.py:docstring of sage.manifolds.differentiable.curve.DifferentiableCurve:58: WARNING: Exception occurred in plotting curve-1
[dochtml] [manifolds] dumping object inventory... done
[dochtml] [manifolds] build succeeded.
[dochtml] [manifolds] The HTML pages are in ../inst/share/doc/sage/inventory/en/reference/manifolds.
[dochtml] Error building the documentation.
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):
* documentation: dochtml
log file: /home/user/sagemath/src/logs/pkgs/../dochtml.log
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
make[1]: *** [Makefile:33: all-start] Error 1
make[1]: Leaving directory '/home/user/sagemath/src'
make: *** [Makefile:13: all] Error 2
</code></pre>
<p>I believe one of the <code>OSError</code> or the <code>dochtml</code> error is causing <code>make ptest</code> to fail. Can I get advice on how I can correct these problems?</p>
http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=43869#post-id-43869William Stein just made it very easy to test the latest Sage built with Python 3:
- [ask to be added to a CoCalc project to play with Sage built with Python 3](https://share.cocalc.com/share/d282680a-dda9-486c-87fe-d7f4331bbf53/README.md?viewer=share)Mon, 08 Oct 2018 10:56:07 -0500http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=43869#post-id-43869Comment by Iguananaut for <p>I installed sagemath 8.3rc0 on my fedora 28 linux x86_64 system using the following commands:</p>
<pre><code>make configure
./configure --prefix=$HOME/sage --with-python=3 --with-mp=gmp
make build
</code></pre>
<p>This seemed to have installed sage successfully but when I run tests with:</p>
<pre><code>$ make ptest
</code></pre>
<p>I get the following errors and make ptest fails:</p>
<pre><code> [manifolds] from Queue import Queue
[manifolds] ModuleNotFoundError: No module named 'Queue'
OSError: [manifolds] /home/user/sagemath/inst/lib/python3.6/site-packages/sage/manifolds/differentiable/curve.py:docstring of sage.manifolds.differentiable.curve.DifferentiableCurve:58: WARNING: Exception occurred in plotting curve-1
[dochtml] [manifolds] dumping object inventory... done
[dochtml] [manifolds] build succeeded.
[dochtml] [manifolds] The HTML pages are in ../inst/share/doc/sage/inventory/en/reference/manifolds.
[dochtml] Error building the documentation.
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):
* documentation: dochtml
log file: /home/user/sagemath/src/logs/pkgs/../dochtml.log
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
make[1]: *** [Makefile:33: all-start] Error 1
make[1]: Leaving directory '/home/user/sagemath/src'
make: *** [Makefile:13: all] Error 2
</code></pre>
<p>I believe one of the <code>OSError</code> or the <code>dochtml</code> error is causing <code>make ptest</code> to fail. Can I get advice on how I can correct these problems?</p>
http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=42955#post-id-42955Python 3 is not actually officially supported yet; it's still a work-in-progress. You'll find that many things do work, but it is not ready for production.Thu, 12 Jul 2018 07:11:00 -0500http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=42955#post-id-42955Answer by eric_g for <p>I installed sagemath 8.3rc0 on my fedora 28 linux x86_64 system using the following commands:</p>
<pre><code>make configure
./configure --prefix=$HOME/sage --with-python=3 --with-mp=gmp
make build
</code></pre>
<p>This seemed to have installed sage successfully but when I run tests with:</p>
<pre><code>$ make ptest
</code></pre>
<p>I get the following errors and make ptest fails:</p>
<pre><code> [manifolds] from Queue import Queue
[manifolds] ModuleNotFoundError: No module named 'Queue'
OSError: [manifolds] /home/user/sagemath/inst/lib/python3.6/site-packages/sage/manifolds/differentiable/curve.py:docstring of sage.manifolds.differentiable.curve.DifferentiableCurve:58: WARNING: Exception occurred in plotting curve-1
[dochtml] [manifolds] dumping object inventory... done
[dochtml] [manifolds] build succeeded.
[dochtml] [manifolds] The HTML pages are in ../inst/share/doc/sage/inventory/en/reference/manifolds.
[dochtml] Error building the documentation.
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):
* documentation: dochtml
log file: /home/user/sagemath/src/logs/pkgs/../dochtml.log
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
make[1]: *** [Makefile:33: all-start] Error 1
make[1]: Leaving directory '/home/user/sagemath/src'
make: *** [Makefile:13: all] Error 2
</code></pre>
<p>I believe one of the <code>OSError</code> or the <code>dochtml</code> error is causing <code>make ptest</code> to fail. Can I get advice on how I can correct these problems?</p>
http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?answer=42927#post-id-42927Thanks for the report. Actually this error has been corrected 10 days ago in the ticket [#25720](https://trac.sagemath.org/ticket/25720), which received positive review, so that it should be merged in Sage soon.
EDIT (15 July 2018): the ticket has been merged in SageMath 8.3.rc1Wed, 11 Jul 2018 11:23:25 -0500http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?answer=42927#post-id-42927Comment by number123 for <p>Thanks for the report. Actually this error has been corrected 10 days ago in the ticket <a href="https://trac.sagemath.org/ticket/25720">#25720</a>, which received positive review, so that it should be merged in Sage soon.</p>
<p>EDIT (15 July 2018): the ticket has been merged in SageMath 8.3.rc1</p>
http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=42967#post-id-42967@John Palmieri I am no longer using python 3 to build sage but I am still getting errors?Thu, 12 Jul 2018 10:43:01 -0500http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=42967#post-id-42967Comment by John Palmieri for <p>Thanks for the report. Actually this error has been corrected 10 days ago in the ticket <a href="https://trac.sagemath.org/ticket/25720">#25720</a>, which received positive review, so that it should be merged in Sage soon.</p>
<p>EDIT (15 July 2018): the ticket has been merged in SageMath 8.3.rc1</p>
http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=42933#post-id-42933Are you sure the two errors are separate? Fixing the one from #25720 may fix the other. The code involved in the docstring of `sage.manifolds.differentiable.curve.DifferentiableCurve` fails before the fix at #25720, succeeds afterwards.Wed, 11 Jul 2018 14:37:16 -0500http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=42933#post-id-42933Comment by number123 for <p>Thanks for the report. Actually this error has been corrected 10 days ago in the ticket <a href="https://trac.sagemath.org/ticket/25720">#25720</a>, which received positive review, so that it should be merged in Sage soon.</p>
<p>EDIT (15 July 2018): the ticket has been merged in SageMath 8.3.rc1</p>
http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=42931#post-id-42931thanks for the link. It seems ticket [#25720](https://trac.sagemath.org/ticket/25720 "Queue import error") only mentions the first error. Do you have any idea about the others?Wed, 11 Jul 2018 13:11:16 -0500http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?comment=42931#post-id-42931Answer by slelievre for <p>I installed sagemath 8.3rc0 on my fedora 28 linux x86_64 system using the following commands:</p>
<pre><code>make configure
./configure --prefix=$HOME/sage --with-python=3 --with-mp=gmp
make build
</code></pre>
<p>This seemed to have installed sage successfully but when I run tests with:</p>
<pre><code>$ make ptest
</code></pre>
<p>I get the following errors and make ptest fails:</p>
<pre><code> [manifolds] from Queue import Queue
[manifolds] ModuleNotFoundError: No module named 'Queue'
OSError: [manifolds] /home/user/sagemath/inst/lib/python3.6/site-packages/sage/manifolds/differentiable/curve.py:docstring of sage.manifolds.differentiable.curve.DifferentiableCurve:58: WARNING: Exception occurred in plotting curve-1
[dochtml] [manifolds] dumping object inventory... done
[dochtml] [manifolds] build succeeded.
[dochtml] [manifolds] The HTML pages are in ../inst/share/doc/sage/inventory/en/reference/manifolds.
[dochtml] Error building the documentation.
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):
* documentation: dochtml
log file: /home/user/sagemath/src/logs/pkgs/../dochtml.log
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
make[1]: *** [Makefile:33: all-start] Error 1
make[1]: Leaving directory '/home/user/sagemath/src'
make: *** [Makefile:13: all] Error 2
</code></pre>
<p>I believe one of the <code>OSError</code> or the <code>dochtml</code> error is causing <code>make ptest</code> to fail. Can I get advice on how I can correct these problems?</p>
http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?answer=42951#post-id-42951Porting Sage to Python3 is still work in progress, and
`make ptest` is not likely to succeed at this stage.
The fact that `make build` succeeds means all parts
of Sage seem to have been successfully compiled,
apart from the documentation.
They might not all be fully functional tough, and it would
be interesting to know what works and what does not.
For now, only build for Python3 if you want to help with
the porting effort. Otherwise, build for Python2.
The Sage most people use now is still the Python2 one.Thu, 12 Jul 2018 06:59:06 -0500http://ask.sagemath.org/question/42924/make-ptest-fails-after-compilation-based-on-python3/?answer=42951#post-id-42951