Ask Your Question
0

Problems with running sage.all command

asked 2025-12-14 16:05:11 +0100

Xxxharsh gravatar image

updated 2025-12-14 16:11:57 +0100

I've just installed sagemath 10.7 on ubuntu 22.04 WSL and when running the command I get the following traceback:

ModuleNotFoundError                       Traceback (most recent call last)

----> 1 from sage.all import *

File ~/sage/src/sage/all.py:108

--> 108 from sage.calculus.all import *


File ~/sage/src/sage/calculus/all.py:6

----> 6 from .integration import numerical_integral, monte_carlo_integral

File ~/sage/src/sage/calculus/integration.pyx:1, in init sage.calculus.integration()

ModuleNotFoundError: No module named 'sage.ext.interpreters.wrapper_rdf'

although I do have neccessary files:

wrapper_rdf.c, wrapper_rdf.cpython-312-x86_64-linux-gnu.so, wrapper_rdf.pxd, wrapper_rdf.pyx

in ~/sage/src/sage/ext/interpreters directory.

One more thing that I noticed is that I have /mnt/d directory in my sys.path and when running sage -n for first time I get the folder /mnt/d/sage/ext/interpreters, which contents are practically the same, except it lacks wrapper_?.c and wrapper _?.cpython.so files. I tried to remove /mnt/d from sys.path, but the error is still the same. Any help would be appreciated

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2025-12-14 16:28:34 +0100

Xxxharsh gravatar image

I've managed to solve the problem. Some other repo, imported * from setup.py file, which generatied interpreters for fast_callable in /mnt/d/sage/ext/interpreters, so everything broke down once I imported something.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2025-12-14 16:05:11 +0100

Seen: 17 times

Last updated: yesterday