Problems building Sage

67 views
Skip to first unread message

Alyssa Russell

unread,
Jan 14, 2022, 2:30:09 PM1/14/22
to sage-devel
I'm installing sage from source code via Cygwin because I have a windows computer. I'm getting an error message saying there was an error building package python3-3.9.9. I'm including the relevant log file.

Any help is appreciated!
python3-3.9.9.log

Samuel Lelievre

unread,
Jan 14, 2022, 4:40:13 PM1/14/22
to sage-devel
Hello, congratulations for attempting to build Sage
from source on Cygwin and thanks for reporting on
the build failure.

Which version of Sage were you trying to build?
Did you try SageMath 9.4 or SageMath 9.5.rc1?

Fixing the Python 3.9 build failure you described is tracked at:

  Sage Trac ticket #33079
  Fix python3 build failure on Cygwin
  https://trac.sagemath.org/ticket/33079

In general, Sage's build mechanism tries to use the ambient
system Python, if available, to avoid building its own Python.
However, the Python 3.9 in Cygwin, currently provided by the
Cygwin package "python39-3.9.9-1", does not work for that
purpose. That issue is discussed at:

  Sage Trac ticket #33078
  Update package info for system python3 on Cygwin
  https://trac.sagemath.org/ticket/33078

There is a newer version which can serve to build Sage upon;
that newer version is currently marked as a test version, so that
it does not get installed by default when you upgrade your Cygwin
packages. You can however choose to upgrade to it, as follows.

- Close all Cygwin windows.
- Open Cygwin's "setup.exe" installer, search for "python39",
  and select the version "python39-3.9.9-3 (TEST)".

Please try again building SageMath 9.5.rc1 after changing that.
Let us know if that works. Currently it does not work for me,
but I hope it works for you, and if not I hope we gather enough
data on the failure to figure out how to solve it.   --Samuel

Alyssa Russell

unread,
Jan 15, 2022, 4:55:09 PM1/15/22
to sage-devel
Hi Samuel, 

Thank you for your reply! I tried your suggestion and I was still running into the same problem. However, I tried installing some other packages on top of what you suggested, which seemed to do the trick. These packages are  idle39python39-debuginfopython39-develpython39-test, and python39-tkinter. I'm not really sure why this worked, but nonetheless SageMath is now up and running! I'm now going to figure out how to run it on Jupyter Notebooks. I used SathMath 9.5.rc1 by the way.

--Alyssa

Reply all
Reply to author
Forward
0 new messages