On 30/06/2019 02:47, Dima Pasechnik wrote: > On Sat, Jun 29, 2019 at 11:58 AM Jerome BENOIT <calcu...@rezozer.net> wrote: >> >> Hello, >> >> On 29/06/2019 12:26, Dima Pasechnik wrote: >>> On Fri, Jun 28, 2019 at 3:56 PM Jerome BENOIT <calcu...@rezozer.net> wrote: >>>> >>>> >>>> >>>> >>>> -------- Forwarded Message -------- >>>> Subject: sagemath: sage test fails to test sagetex example_doctest.sage >>>> generated from sagetex example.tex >>>> Date: Fri, 28 Jun 2019 18:25:20 +0400 >>>> From: Jerome Benoit <calcu...@rezozer.net> >>>> To: Debian Bug Tracking System <sub...@bugs.debian.org> >>>> >>>> Source: sagemath >>>> Version: 8.6-6 >>>> Severity: normal >>>> >>>> Dear Maintainer, >>>> >>>> for the sake of curiosity, I have just tried to doctest the sage script >>>> generated >>>> by SageTeX for the example.tex : the test reveals an issue with >>>> sage-runtests . >>>> The issue can be reproduce as follows (when sagetex-doc is installed): >>>> >>>> cd <A FOLDER> >>>> cp -p /usr/share/doc/sagetex/examples/example.tex . >>>> pdflatex example.tex >>>> sage -t example_doctest.sage >>>> >>>> The last command gives: >>>> >>>> Traceback (most recent call last): >>> >>> Start Sage shell before doing `sage -t ...`, by running >>> `sage -sh`. Then everything should be set up properly to let >>> `sage -t` work. >> >> The issue remains. This is consistent with the remark previously made by >> Tobias. > > However, the `sage -sh` way works for me on a recent vanilla Sage > install, so it must be a discrepancy with Debian here.
This is what Tobias told, and it is why it is a bug. Jerome > > Dima > >> >> Thanks, >> Jerome >> >>> >>> HTH >>> Dima >>> >>> >>>> File "/usr/share/sagemath/bin/sage-runtests", line 162, in <module> >>>> DC = DocTestController(options, args) >>>> File "/usr/lib/python2.7/dist-packages/sage/doctest/control.py", >>>> line 357, in __init__ >>>> for pkg in list_packages('optional', local=True).values(): >>>> File "/usr/lib/python2.7/dist-packages/sage/misc/package.py", line >>>> 228, in list_packages >>>> for p in os.listdir(SAGE_PKGS): >>>> OSError: [Errno 2] No such file or directory: >>>> '/usr/share/sagemath/build/pkgs' >>>> >>>> As it does not look as a sagetex issue but rather as a sagemath issue, I >>>> submitted this issue >>>> as sagemath bug. >>>> >>>> Thanks, >>>> Jerome >>>> >>>> >>>> >>>> -- System Information: >>>> Debian Release: Stretch* >>>> APT prefers stable >>>> APT policy: (990, 'stable'), (500, 'stable-updates') >>>> Architecture: amd64 (x86_64) >>>> Foreign Architectures: i386 >>>> >>>> Kernel: Linux 4.15.0-0.bpo.2-amd64 (SMP w/8 CPU cores) >>>> Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), >>>> LANGUAGE=en_GB:en (charmap=UTF-8) >>>> Shell: /bin/sh linked to /bin/dash >>>> Init: sysvinit (via /sbin/init) >>>> >>>> _______________________________________________ >>>> Debian-science-sagemath mailing list >>>> debian-science-sagem...@alioth-lists.debian.net >>>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath >>> >>> _______________________________________________ >>> Debian-science-sagemath mailing list >>> debian-science-sagem...@alioth-lists.debian.net >>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath >>> >> >> -- >> Jerome BENOIT | calculus+at-rezozer^dot*net >> https://qa.debian.org/developer.php?login=calcu...@rezozer.net >> AE28 AE15 710D FF1D 87E5 A762 3F92 19A6 7F36 C68B >> >> _______________________________________________ >> Debian-science-sagemath mailing list >> debian-science-sagem...@alioth-lists.debian.net >> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath > > _______________________________________________ > Debian-science-sagemath mailing list > debian-science-sagem...@alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath > -- Jerome BENOIT | calculus+at-rezozer^dot*net https://qa.debian.org/developer.php?login=calcu...@rezozer.net AE28 AE15 710D FF1D 87E5 A762 3F92 19A6 7F36 C68B
signature.asc
Description: OpenPGP digital signature