Regarding failing build of sage

67 views
Skip to first unread message

James

unread,
Mar 5, 2026, 8:35:46 AM (2 days ago) Mar 5
to sage-...@googlegroups.com
I started setting up sage and as reference followed the https://doc-develop--sagemath.netlify.app/html/en/developer/walkthrough.html, I am using environment-3.11.yml but  after I ran pip install --no-build-isolation -e . it fails saying cpython is missing then I also installed that but after then like each missing installation I do again fails (kinda chain of missing packages), so do we require to install them manually, ig it should be installed from environment-3.11.yml ? I thought to take help for this before manually building using steps of make configure, ./configure and make. I am attaching the error log image this is of cpython even after installing then it gives of other missing package.
image.png
Thank you
James 

Dima Pasechnik

unread,
Mar 5, 2026, 10:12:23 AM (2 days ago) Mar 5
to sage-...@googlegroups.com
On March 5, 2026 6:42:15 AM CST, James <jrdav...@gmail.com> wrote:
I started setting up sage and as reference followed the https://doc-develop--sagemath.netlify.app/html/en/developer/walkthrough.html, I am using environment-3.11.yml

we don't support Python 3.11 any more, and environment-3.11.yml is gone from our betas -- which you should use for development, anyway.

Tobia...@gmx.de

unread,
Mar 5, 2026, 11:30:47 AM (2 days ago) Mar 5
to sage-devel
It may be that you the conda env is not activated correctly? Please try `conda activate sage-dev` before running the pip command. Also, as Dima said, I would advice to use the latest development branch and the env file for Python 3.13.

If all of this is not working, please post the meson-log.txt file (path is towards the end of your screenshot)

James

unread,
Mar 5, 2026, 12:01:41 PM (2 days ago) Mar 5
to sage-...@googlegroups.com
I actually done that twice because I was also feeling that may be there is some issue with conda environment activation but it is not indeed, and also I tried with environment 3.13 as well 3.12 and I got error 

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides __glibc >=2.39 needed by sysroot_linux-64-2.39-hc4b9eeb_5

Could not solve for environment specs
The following package could not be installed
└─ sysroot_linux-64 ==2.39 hc4b9eeb_5 is not installable because it requires
   └─ __glibc >=2.39 *, which is missing on the system.

My system has glibc 2.35, so the solver cannot satisfy the sysroot requirement. (using wsl environment with ubuntu 22.04 lts (jammy)
Now I am thinking of using docker sagemath/sagemath:develop and test there. 
(I think I had to upgrade wsl to may be 24 as it comes with libc 2.39/higher, but may be it can break existing things of mine).


--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sage-devel/8241d82e-ea0d-49b3-a479-9ffc3f3b5f49n%40googlegroups.com.

James

unread,
Mar 5, 2026, 12:01:52 PM (2 days ago) Mar 5
to sage-...@googlegroups.com
Also attaching meson-log for reference:

meson-log.txt

James

unread,
Mar 5, 2026, 4:39:45 PM (2 days ago) Mar 5
to sage-...@googlegroups.com
I setup sage in docker container of ubuntu 24.04 with volume and it worked fine with env 3.13, but after installation I faced one issue that if I run like ./sage then it gives error of missing modules like if I ran ./sage -t --optional=pip,pygambit,sage it throws error attached below, but if I ran ./src/build/sage-runtests -t --optional=pip,pygambit,sage .src/sage/game_theory/normal_form_game.py then it works fine and tests ran. 
image.png
I know this is some issue with the PATH and I tried some ways to fix it but its not working. Would be great if someone can help with this.
Thank you for your time.
James

Dima Pasechnik

unread,
Mar 6, 2026, 1:21:28 AM (yesterday) Mar 6
to sage-...@googlegroups.com
You might try a hack like 

 ./sage --pip install pytest pytest-xdist pytest-mock

and see if it gets you anywhere



James

unread,
Mar 6, 2026, 2:16:30 AM (23 hours ago) Mar 6
to sage-...@googlegroups.com
Actually I tried this one earlier but it was giving error /bin/python3: No module named pip found. But when I run like ./sage -sh in that sage shell, if I run pip show pytest it is there it shows version and details, so does sage has its own python? because when I ran ./sage -python -V I got python 3.12.3 but conda env that I set up was with env3.13 and has python version 3.13.11 ? 

Tobia...@gmx.de

unread,
Mar 6, 2026, 5:07:48 AM (20 hours ago) Mar 6
to sage-devel
It looks indeed like your conda environment is not containing a few required packages. This is strange. What should work is that you simply install them manually via `conda install cython pytest <whatever else is missing`.
Reply all
Reply to author
Forward
0 new messages