Ask Your Question

Revision history [back]

import sage.all; ImportError: libgsl.so.25: cannot open shared object file: No such file or directory

Hello: How Can I import sage.all? Thanks a lot

```{bash} ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 10.4, Release Date: 2024-07-19 │ │ Using Python 3.11.10. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Warning: sage.all is not available; this is a limited REPL. ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

sage: import sage.all

ImportError Traceback (most recent call last) Cell In[1], line 1 ----> 1 import sage.all

File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/all.py:84 81 from sage.data_structures.all import * 83 from sage.structure.all import * ---> 84 from sage.rings.all import * 85 from sage.arith.all import * 86 from sage.matrix.all import *

File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/rings/all.py:57 54 from sage.rings.finite_rings.all import * 56 # Number field ---> 57 from sage.rings.number_field.all import * 59 # Function field 60 from sage.rings.function_field.all import *

File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/rings/number_field/all.py:2 ----> 2 from sage.rings.number_field.number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, 3 is_fundamental_discriminant, is_real_place) 4 from sage.rings.number_field.number_field_element import NumberFieldElement 6 from sage.rings.number_field.order import EquationOrder, GaussianIntegers, EisensteinIntegers

File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/rings/number_field/number_field.py:84 82 import sage.libs.ntl.all as ntl 83 import sage.rings.abc ---> 84 import sage.rings.complex_mpfr 85 from sage.rings.polynomial.polynomial_element import Polynomial 86 import sage.rings.real_mpfr

File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/rings/complex_mpfr.pyx:1, in init sage.rings.complex_mpfr (build/cythonized/sage/rings/complex_mpfr.c:44581)() ----> 1 """ 2 Arbitrary precision floating point complex numbers using GNU MPFR 3

ImportError: libgsl.so.25: cannot open shared object file: No such file or directory ```

import sage.all; ImportError: libgsl.so.25: cannot open shared object file: No such file or directory

Hello: How Can I import sage.all? Thanks a lot

```{bash}

{bash}
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.4, Release Date: 2024-07-19                    │
│ Using Python 3.11.10. Type "help()" for help.                      │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: sage.all is not available; this is a limited REPL.        ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ sage: import sage.all

sage.all --------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[1], line 1 ----> 1 import sage.all

sage.all File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/all.py:84 81 from sage.data_structures.all import * 83 from sage.structure.all import * ---> 84 from sage.rings.all import * 85 from sage.arith.all import * 86 from sage.matrix.all import *

* File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/rings/all.py:57 54 from sage.rings.finite_rings.all import * 56 # Number field ---> 57 from sage.rings.number_field.all import * 59 # Function field 60 from sage.rings.function_field.all import *

* File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/rings/number_field/all.py:2 ----> 2 from sage.rings.number_field.number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, 3 is_fundamental_discriminant, is_real_place) 4 from sage.rings.number_field.number_field_element import NumberFieldElement 6 from sage.rings.number_field.order import EquationOrder, GaussianIntegers, EisensteinIntegers

EisensteinIntegers File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/rings/number_field/number_field.py:84 82 import sage.libs.ntl.all as ntl 83 import sage.rings.abc ---> 84 import sage.rings.complex_mpfr 85 from sage.rings.polynomial.polynomial_element import Polynomial 86 import sage.rings.real_mpfr

sage.rings.real_mpfr File ~/miniconda3/envs/sage/lib/python3.11/site-packages/sage/rings/complex_mpfr.pyx:1, in init sage.rings.complex_mpfr (build/cythonized/sage/rings/complex_mpfr.c:44581)() ----> 1 """ 2 Arbitrary precision floating point complex numbers using GNU MPFR 3

3 ImportError: libgsl.so.25: cannot open shared object file: No such file or directory ```