Ask Your Question

Revision history [back]

Import Error libgsl.25.dylib no such file

I have from sage.all import * in a python file. When I run python3 (filename).py, I get the error

from sage.rings.complex_double import CDF

ImportError: dlopen(/Users/yogeshmore/mambaforge/envs/sage/lib/python3.10/site-packages/sage/rings/complex_double.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libgsl.25.dylib

... (omitted some lines similar to the following)

'/usr/local/lib/libgsl.25.dylib' (no such file), '/usr/lib/libgsl.25.dylib' (no such file, not in dyld cache)

Here is how I tried to install sagemath on my computer, following instructions at stackoverflow as well as on SageMath github

I tried mamba install sage when I type sage into the command line, I get a REPL that seems to indicate installation was done

SageMath version 10.0, Release Date: 2023-05-20 │ │ Using Python 3.10.12. Type "help()" for help. │ └──────────────────────

also when I type mamba list gsl I get gsl 2.7.1 hdbe807d_1

So I don't know how to fix the error I am getting.

Thank you