Ask Your Question
1

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

asked 2022-08-08 11:29:12 +0100

Andyfc gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-08-08 21:50:08 +0100

slelievre gravatar image

To compile Sage but not its documentation, use:

make build
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: 2022-08-08 11:29:12 +0100

Seen: 675 times

Last updated: Aug 08 '22