[Debian-science-sagemath] Fwd: sagemath: sage test fails to test sagetex example_doctest.sage generated from sagetex example.tex

Dima Pasechnik dimpase at gmail.com
Sat Jun 29 09:26:10 BST 2019


On Fri, Jun 28, 2019 at 3:56 PM Jerome BENOIT <calculus at 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 <calculus at rezozer.net>
> To: Debian Bug Tracking System <submit at 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.

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-sagemath at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath



More information about the Debian-science-sagemath mailing list