Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade SageMath in codespace #723

Open
StevenClontz opened this issue May 2, 2024 · 5 comments
Open

Upgrade SageMath in codespace #723

StevenClontz opened this issue May 2, 2024 · 5 comments

Comments

@StevenClontz
Copy link
Member

In TeamBasedInquiryLearning/precalculus#165 we hit an issue where the version 9.2 of SageMath in our codespace hits a bug when detect_poles=True, which is fixed at least in SageMath 9.7. Can we upgrade our codespace SageMath to the most recent version?

@oscarlevin
Copy link
Member

This turns out to be harder than I thought. Except for Arch and Void linux, no distribution seems to offer 10.x sagemath. So that means either completely redoing the pretext-docker using one of those linux distributions, or installing sagemath from source (which apparently requires 10GB of storage space, and takes upwards of 30 minutes after you have all the build dependencies).

So how necessary is this? Or perhaps, I'd welcome a PR on https://github.com/oscarlevin/pretext-docker.

@rbeezer
Copy link
Collaborator

rbeezer commented May 20, 2024 via email

@siwelwerd
Copy link

So how necessary is this?

From our project's perspective, I think we've managed to work around this particular bug in SageMath.

@StevenClontz
Copy link
Member Author

@oscarlevin any chance your experimentation here pushed a change to your Docker image that causes Sage to no longer be installed?

@oscarlevin
Copy link
Member

Fixed the issue with the docker image so at least the old 9.2 version gets installed now.

To get a more recent version,

  1. installing from source seems to be a no-go: codespaces run out of disk space during the build.
  2. Arch linux is a no-go: Playwright does not support Arch.
  3. Maybe working inside a Conda environment would work, although I'm not sure how to make sage available (the install directions say you need to activate with conda activate sage.
  4. Perhaps upgrading the debian version used in codespaces could bring us to 9.5.6, but that won't solve this particular bug, as far as I know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants