Ask Your Question
1

make ptest fails after compilation based on Python3

asked 2018-07-11 17:19:16 +0100

number123 gravatar image

updated 2018-07-12 14:17:50 +0100

FrédéricC gravatar image

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?

edit retag flag offensive close merge delete

Comments

1

Python 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.

Iguananaut gravatar imageIguananaut ( 2018-07-12 14:11:00 +0100 )edit

William Stein just made it very easy to test the latest Sage built with Python 3:

slelievre gravatar imageslelievre ( 2018-10-08 17:56:07 +0100 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2018-07-11 18:23:25 +0100

eric_g gravatar image

updated 2018-07-15 09:48:14 +0100

Thanks for the report. Actually this error has been corrected 10 days ago in the 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.rc1

edit flag offensive delete link more

Comments

thanks for the link. It seems ticket #25720 only mentions the first error. Do you have any idea about the others?

number123 gravatar imagenumber123 ( 2018-07-11 20:11:16 +0100 )edit

Are 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.

John Palmieri gravatar imageJohn Palmieri ( 2018-07-11 21:37:16 +0100 )edit

@John Palmieri I am no longer using python 3 to build sage but I am still getting errors?

number123 gravatar imagenumber123 ( 2018-07-12 17:43:01 +0100 )edit
2

answered 2018-07-12 13:59:06 +0100

slelievre gravatar image

Porting 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.

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: 2018-07-11 17:19:16 +0100

Seen: 578 times

Last updated: Jul 15 '18