I got the following error while running the sage -t command.
$ sage -t test.py
Traceback (most recent call last):
File "/usr/share/sagemath/bin/sage-runtests", line 178, in <module>
DC = DocTestController(options, args)
File "/usr/lib/python3/dist-packages/sage/doctest/control.py", line 358,
in __init__
for pkg in list_packages('optional', local=True).values():
File "/usr/lib/python3/dist-packages/sage/misc/package.py", line 236, in
list_packages
for p in os.listdir(SAGE_PKGS):
FileNotFoundError: [Errno 2] No such file or directory:
'/usr/share/sagemath/build/pkgs'
I attached the following information about the version:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Python 3.8.10
$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.8.10. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage:
I have found that this issue is in Debian as well according to the following link: https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1686014.html
test.py
? Can you share its contents? – N0rbert Nov 27 '21 at 19:48pwd
sage -t --force-lib --optional=sage sage_numerical_backends_coin") if errno != 0: sys.exit(1) Or should I replace the value of: sage_numerical_backends_coin? – manzar Nov 27 '21 at 20:54pwd
sage -t --force-lib --optional=sage test.py") if errno != 0: sys.exit(1) but still received that error. – manzar Nov 27 '21 at 21:07