Dear Maintainer,
I cannot start sage on my computer. Simply running 'sage' in console leads to
the following errors:
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.5, Release Date: 2022-01-30 │
│ Using Python 3.11.5. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3.11/pathlib.py", line 1251, in is_dir
return S_ISDIR(self.stat().st_mode)
^^^^^^^^^
AttributeError: 'str' object has no attribute 'stat'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/sage-ipython", line 15, in <module>
app.initialize()
File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 110, in inner
return method(app, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/IPython/terminal/ipapp.py", line 279, in initialize
self.init_shell()
File "/usr/lib/python3/dist-packages/sage/repl/interpreter.py", line 789, in init_shell
self.shell.extension_manager.load_extension(SAGE_EXTENSION)
File "/usr/lib/python3/dist-packages/IPython/core/extensions.py", line 76, in load_extension
return self._load_extension(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/IPython/core/extensions.py", line 93, in _load_extension
if self._call_load_ipython_extension(mod):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/IPython/core/extensions.py", line 145, in _call_load_ipython_extension
mod.load_ipython_extension(self.shell)
File "/usr/lib/python3/dist-packages/sage/repl/__init__.py", line 5, in load_ipython_extension
sage.repl.ipython_extension.load_ipython_extension(*args)
File "/usr/lib/python3/dist-packages/sage/repl/ipython_extension.py", line 617, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sage/repl/ipython_extension.py", line 630, in load_ipython_extension
SageCustomizations(shell=ip)
File "/usr/lib/python3/dist-packages/sage/repl/ipython_extension.py", line 434, in __init__
import sage.all # until sage's import hell is fixed
^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sage/all.py", line 169, in <module>
from sage.rings.all import *
File "/usr/lib/python3/dist-packages/sage/rings/all.py", line 87, in <module>
from .qqbar import (AlgebraicRealField, AA,
File "/usr/lib/python3/dist-packages/sage/rings/qqbar.py", line 2810, in <module>
QQxy = QQ['x', 'y']
~~^^^^^^^^^^
File "sage/structure/parent.pyx", line 1276, in sage.structure.parent.Parent.__getitem__ (build/cythonized/sage/structure/parent.c:11543)
File "/usr/lib/python3/dist-packages/sage/categories/rings.py", line 1177, in __getitem__
return PolynomialRing(self, elts)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 647, in PolynomialRing
return _multi_variate(base_ring, names, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 775, in _multi_variate
from sage.rings.polynomial.multi_polynomial_libsingular import MPolynomialRing_libsingular
ImportError: libsingular-Singular-4.3.1.so: cannot open shared object file: No such file or directory
It used to work and I am not sure what I updated since the last time I tried (a few weeks ago I think).
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.4.0-3-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages sagemath depends on:
ii python3 3.11.4-5+b1
ii python3-sage 9.5-6
Versions of packages sagemath recommends:
pn sagemath-doc <none>
ii sagemath-jupyter 9.5-6
pn sagetex <none>
ii texlive-latex-base 2023.20230613-3
Versions of packages sagemath suggests:
ii dot2tex 2.11.3-3
pn gap-design <none>
ii gap-factint 1.6.3+ds-2
pn gap-grape <none>
pn gap-guava <none>
ii gap-laguna 3.9.5+ds-2
pn gap-sonata <none>
pn gap-toric <none>
-- no debconf information
Dear maintainer,
it seems there is a dependency issue: downgrading package
libsingular4m3n0
to stable version
1:4.3.1-p3+ds-2
instead of the testing/unstable version
1:4.3.2-p7+ds-1
solves the two present issues:
. sage starts
. in python3,
from sage.all import *
now works well.
Otherwise, i confirm that both sage and python-sage fail with the error messages below
best
Ara
_______ sagemath failure to start with version 1:4.3.2-p7+ds-1 of libsingular4m3n0
sage
ImportError: libsingular-polys-4.3.1.so: cannot open shared object file: No such file or directory
_____ python3 failure with version 1:4.3.2-p7+ds-1 of libsingular4m3n0
python3
Python 3.11.5 (main, Aug 29 2023, 15:31:31) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sage.all import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/sage/all.py", line 169, in <module>
from sage.rings.all import *
File "/usr/lib/python3/dist-packages/sage/rings/all.py", line 87, in <module>
from .qqbar import (AlgebraicRealField, AA,
File "/usr/lib/python3/dist-packages/sage/rings/qqbar.py", line 2810, in <module>
QQxy = QQ['x', 'y']
~~^^^^^^^^^^
File "sage/structure/parent.pyx", line 1276, in sage.structure.parent.Parent.__getitem__ (build/cythonized/sage/structure/parent.c:11543)
File "/usr/lib/python3/dist-packages/sage/categories/rings.py", line 1177, in __getitem__
return PolynomialRing(self, elts)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 647, in PolynomialRing
return _multi_variate(base_ring, names, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 775, in _multi_variate
from sage.rings.polynomial.multi_polynomial_libsingular import MPolynomialRing_libsingular
ImportError: libsingular-polys-4.3.1.so: cannot open shared object file: No such file or directory
___________
-- System Information:
Debian Release: trixie/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.5.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages sagemath depends on:
ii python3 3.11.4-5+b1
ii python3-sage 9.5-6
Versions of packages sagemath recommends:
pn sagemath-doc <none>
pn sagemath-jupyter <none>
pn sagetex <none>
ii texlive-latex-base 2023.20230613-3
Versions of packages sagemath suggests:
pn dot2tex <none>
pn gap-design <none>
ii gap-factint 1.6.3+ds-2
pn gap-grape <none>
pn gap-guava <none>
ii gap-laguna 3.9.6+ds-1