Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Compilation fails with "ModuleNotFoundError: No module named 'Cython'"

A little history first: On a Desktop with Ubuntu 20.04 and an AMD Zen 3, I compiled Sage from source pulling it (cloning) from Git and following the instructions in the GitHub readme. It pulled the version 9.7, which is in beta, but I don't have a problem with that: it seems to be working fine for the limited use I'm making of it.

Now I tried to do the exact same on my laptop with Ubuntu 20.04 and an AMD Zen 2. Compilation is failing. I'm getting the following error (from the log, before that there's a long stack trace and a long list of directories):

[Inferior 1 (process 1190799) detached]
27  ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory.
Traceback (most recent call last):
File "<string>", line 25, in <module>
ModuleNotFoundError: No module named 'Cython'
Error while executing Python code.
Saved trace to /home/andrea/.sage/crash_logs/crash_tlqcuwtm.log
------------------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.
------------------------------------------------------------------------
Segmentation fault (core dumped)
Error: 'sage --docbuild --all-documents' failed
make[5]: *** [Makefile:40: doc-inventory-reference] Error 1

I will paste/attach the whole thing if you want.

How can I solve this problem?

Is there a way to tell make not to compile the docs, so that I can at least see if the programs themselves compile fine?