I had a similar problem with Sage v9.6.beta4 on Ubuntu 20.04 LTS (https://groups.google.com/g/sage-devel/c/ZYaVBloUbF0) in that PyTest was not detected by Sage. I found that running ``` ./sage -i pytest ``` solves the problem. However, based on another conversation it was pointed out that running ``` make pytest ``` in the SAGE_ROOT folder is equivalent and should be preferred.
Hope this helps! On Tuesday, April 12, 2022 at 7:00:50 AM UTC+5:30 hohoa...@gmail.com wrote: > Dear All, > > SageMath verssion 9.6.rc0 was successfully installed on this WSL system > using the Python 3.10.4 previously installed there. > > $sage-9.6 > SageMath version 9.6.rc0, Release Date: 2022-04-10 │ > Using Python 3.10.4. Type "help()" for help. > Warning: this is a prerelease version, and it may be unstable. > > sage: version() > 'SageMath version 9.6.rc0, Release Date: 2022-04-10' > sage: > > However, 'make testalllong' failed with Error 17 and a complaint that > 'pytest' is not installed and tests that rely on it were skipped. > > $ make testalllong > .... > ... > ... > ---------------------------------------------------------------------- > Total time for all tests: 42686.2 seconds > cpu time: 30056.9 seconds > cumulative wall time: 37417.5 seconds > Features detected for doctesting: > 4ti2,dvipng,ffmpeg,gfan,graphviz,imagemagick,internet,latex,latex_package_tkz_graph,lrslib,lualatex,nauty,palp,pandoc,pdf2svg,pdflatex,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sagemath_doc_html,sphinx,xelatex > Pytest is not installed, skip checking tests that rely on it. > make: *** [Makefile:246: testalllong] Error 17 > > 'pytest' seems to be available: > > ~$ pytest --version > pytest 7.1.1 > ~$ > > A quick look at the 'testalllong.log': > > ~/sage-9.6$ fgrep "Failed example" sage/logs/testalllong.log | wc -l > 190 > ~/sage-9.6$ fgrep "failure" sage/logs/testalllong.log | wc -l > 52 > ~/sage-9.6$ fgrep "Warning, slow doctest" sage/logs/testalllong.log | wc -l > 20 > ~/sage-9.6$ fgrep "doctest:warning" sage/logs/testalllong.log | wc -l > 159 > ~/sage-9.6$ fgrep "DeprecationWarning" sage/logs/testalllong.log | wc -l > 46 > ~/sage-9.6$ ls -l /mnt/G/Maths/sage-9.6/Reports/sage3.6RC0-testalllong > > What does this 'Error 17' mean? > What are the implications of these "Failed example" and "failure"? > Why does 'testalllong' think 'pytest' is not installed? > > Please find attached a 7z file of 'testalllong.log' and a screen capture. > > Thank you for your help. > > Regards, > > phiho > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/fafd5576-89b7-438e-b4f8-12a9c4f8f11dn%40googlegroups.com.