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/[email protected]/msg1686014.html