Closed fantognazza closed 6 months ago
Having the same issue on an M1 Mac.
Same issue on an aarch64 Raspberry Pi 4B running Arch Linux ARM.
The Arch ARM port doesn't seem to have a sagemath package in its repository, so if conda doesn't work, then I guess I have to fall back to compiling from source.
Same issue on aarch64 Raspberry Pi 3 (raspberry OS 64 lite). Trying with mamba and conda miniforge3.
The installer conveniently deletes that file:
2024-01-08T05:58:09.9744104Z Cleaning up stale file: build/lib.linux-aarch64-cpython-311/sage/cpython/string.cpython-311-aarch64-linux-gnu.so
On x86_64, this only deletes this single file:
Cleaning up stale file: $PREFIX/lib/python3.10/site-packages/sage/ext_data/nbconvert/__pycache__/postprocess.cpython-310.pyc
I believe that this is still going to segfault. At least that's what it used to do on M1s a while back.
Or did you ever get this to work @alexjbest ?
Yeah I'm not sure I ever got it to work on an M1 confirmed
Could somebody try (once build 4 of sagelib 10.2 is available, in a few hours) whether it works now on aarch64 and M1s?
In docker I cannot install sage=10.2 because of a tachyon problem, see linked PR.
I'll try to install sagelib=10.2 build 4 once it shows up on the CDN.
On aarch64, sagelib
now seems to work:
(base) root@abd235f463ad:/# uname -m
aarch64
(base) root@abd235f463ad:/# sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.2, Release Date: 2023-12-03 │
│ Using Python 3.11.8. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: 1+1
2
(with sagelib and ipywidgets installed)
Solution to issue cannot be found in the documentation.
Issue
I was building a CI container image for both
x86_64
andaarch64
architectures installing sage from micromamba as suggested by the documentation, and I realized that the same image was not working for the ARM architecture.I paste here a minimal Dockerfile to reproduce the error, which can be generated with
podman build . -t test_image
:I already tested:
By contrast, the sagemath package distributed through Debian repository is working fine.
Please note that:
podman
is a drop-in replacement todocker
command (within this context)Installed packages
Environment info