10.9.beta5 startup failure

228 views
Skip to first unread message

Trevor Karn

unread,
Feb 2, 2026, 4:32:58 PM (9 days ago) Feb 2
to sage-devel
Hi all,

I just "successfully" built 10.9.beta5 but am having an issue upon startup. I'll try to troubleshoot, but just wanted folks to be aware of it.

Please see the following: 

[sagelib-10.9.beta5] installing. Log file: /home/tkkarn/sage/sage/logs/pkgs/sagelib-10.9.beta5.log
  [sagelib-10.9.beta5] successfully installed (real 6m11.876s user 6m8.748s sys 0m2.932s).
make[2]: Leaving directory '/home/tkkarn/sage/sage/build/make'
Sage build/upgrade complete!
real 6m12.432s user 6m9.248s sys 0m2.987s
make[1]: Leaving directory '/home/tkkarn/sage/sage'
tkkarn@math:~/sage/sage$ ./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.9.beta5, Release Date: 2026-02-01              │
│ Using Python 3.12.5. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable.     ┃
┃ Warning: sage.all is not available; this is a limited REPL.        ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Error in sys.excepthook:
Traceback (most recent call last):
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/IPython/core/application.py", line 284, in excepthook
    return self.crash_handler(etype, evalue, tb)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/IPython/core/crashhandler.py", line 163, in __call__
    if rptdir is None or not Path.is_dir(rptdir):
                             ^^^^^^^^^^^^^^^^^^^
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/pathlib.py", line 875, in is_dir
    return S_ISDIR(self.stat().st_mode)
                   ^^^^^^^^^
AttributeError: 'str' object has no attribute 'stat'

Original exception was:
Traceback (most recent call last):
  File "/home/tkkarn/sage/sage/src/bin/sage-ipython", line 16, in <module>
    app.initialize()
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/traitlets/config/application.py", line 118, in inner
    return method(app, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/IPython/terminal/ipapp.py", line 278, in initialize
    self.init_shell()
  File "/home/tkkarn/sage/sage/src/sage/repl/interpreter.py", line 832, in init_shell
    self.shell = self.shell_class.instance(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/traitlets/config/configurable.py", line 583, in instance
    inst = cls(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/IPython/terminal/interactiveshell.py", line 853, in __init__
    super(TerminalInteractiveShell, self).__init__(*args, **kwargs)
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/IPython/core/interactiveshell.py", line 641, in __init__
    self.init_display_formatter()
  File "/home/tkkarn/sage/sage/src/sage/repl/interpreter.py", line 297, in init_display_formatter
    from sage.repl.rich_output.backend_ipython import BackendIPythonCommandline
  File "/home/tkkarn/sage/sage/src/sage/repl/rich_output/__init__.py", line 2, in <module>
    from .display_manager import get_display_manager
  File "/home/tkkarn/sage/sage/src/sage/repl/rich_output/display_manager.py", line 39, in <module>
    from sage.repl.rich_output.output_basic import (
  File "/home/tkkarn/sage/sage/src/sage/repl/rich_output/output_basic.py", line 44, in <module>
    from sage.structure.sage_object import SageObject
  File "/home/tkkarn/sage/sage/src/sage/structure/__init__.py", line 2, in <module>
    import sage.structure.element
  File "sage/structure/element.pyx", line 1, in init sage.structure.element
  File "sage/structure/sage_object.pyx", line 5, in init sage.structure.sage_object
  File "sage/misc/persist.pyx", line 41, in init sage.misc.persist
  File "/home/tkkarn/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/bz2.py", line 17, in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'

Dima Pasechnik

unread,
Feb 2, 2026, 7:59:18 PM (9 days ago) Feb 2
to sage-...@googlegroups.com
Have you built Python from source? That's very flaky, and should not
be done, IMHO.
> --
> 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/940b57ac-aa1b-4c62-870b-8a0a9474ed10n%40googlegroups.com.

Eric Gourgoulhon

unread,
Feb 3, 2026, 8:28:01 AM (8 days ago) Feb 3
to sage-devel
Le mardi 3 février 2026 à 01:59:18 UTC+1, dim...@gmail.com a écrit :
Have you built Python from source? That's very flaky, and should not
be done, IMHO.

Unfortunately, since Sage 10.9.beta4, it has to be done on Ubuntu 24.04 because the system python (3.12.3) is considered too old by Sage: from config.log, we have:

real_configure:157002: result: python3:                        no suitable system package; standard, SPKG version 3.12.5 will be installed

Is there any strong reason to prefer Python 3.12.5 over 3.12.3 in Sage >= 10.9.beta4 ?
(for Sage 10.9.beta3, the Ubuntu system python was considered OK). 


Eric. 

Dima Pasechnik

unread,
Feb 3, 2026, 9:54:49 AM (8 days ago) Feb 3
to sage-...@googlegroups.com
I cannot think of any reason for this, other than some system package not installed.

I can say more if you post the top level config.log

Dima

>
>Eric.
>

Eric Gourgoulhon

unread,
Feb 3, 2026, 12:18:17 PM (8 days ago) Feb 3
to sage-devel
Le mardi 3 février 2026 à 15:54:49 UTC+1, dim...@gmail.com a écrit :

>
>Is there any strong reason to prefer Python 3.12.5 over 3.12.3 in Sage >=
>10.9.beta4 ?
>(for Sage 10.9.beta3, the Ubuntu system python was considered OK).

I cannot think of any reason for this, other than some system package not installed.

I can say more if you post the top level config.log

Here it is (namely the config.log of Sage 10.9.beta5 on my Ubuntu 24.04 computer). Thanks.  

Eric. 
config.log

Michael Orlitzky

unread,
Feb 3, 2026, 1:51:04 PM (8 days ago) Feb 3
to sage-...@googlegroups.com
One of the ./configure checks for python is expecting the old format
for the license identifier in pyproject.toml, but all of the ones used
in sage have been updated.

We probably shouldn't check this so soon because the sage distro
installs a newer setuptools anyway (is setuptools to blame?). Then
again, we probably probably should have python as a prereq instead of
the hundreds of lines of m4 macros currently used validate it.

Ref:

0. https://github.com/sagemath/sage/commit/df46f6e4
1. https://packaging.python.org/en/latest/specifications/pyproject-toml/#license

Dima Pasechnik

unread,
Feb 3, 2026, 3:07:23 PM (8 days ago) Feb 3
to sage-...@googlegroups.com
On Tue, Feb 3, 2026 at 12:51 PM Michael Orlitzky <mic...@orlitzky.com> wrote:
>
> One of the ./configure checks for python is expecting the old format
> for the license identifier in pyproject.toml, but all of the ones used
> in sage have been updated.
>
> We probably shouldn't check this so soon because the sage distro
> installs a newer setuptools anyway (is setuptools to blame?).

This is something that happens during the check of the system python,
3.12.3, with its setuptools.
Do this mean that it fails its *own* checks?
Or does it does check Sage's pyproject.toml, but this check is too old
for our current pyproject.toml?

I don't get what's going on here. Is 3.12.3 too old now for us?


> Then
> again, we probably probably should have python as a prereq instead of
> the hundreds of lines of m4 macros currently used validate it.

https://github.com/sagemath/sage/pull/41120
is moving python to prereqs (more precisely, even to bootstrap's prereqs)

Dima
> --
> 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/aYJDktyjnOIGde62%40mertle.

Dima Pasechnik

unread,
Feb 3, 2026, 3:18:20 PM (8 days ago) Feb 3
to sage-...@googlegroups.com
On Tue, Feb 3, 2026 at 1:59 PM Dima Pasechnik <dim...@gmail.com> wrote:
>
> On Tue, Feb 3, 2026 at 12:51 PM Michael Orlitzky <mic...@orlitzky.com> wrote:
> >
> > One of the ./configure checks for python is expecting the old format
> > for the license identifier in pyproject.toml, but all of the ones used
> > in sage have been updated.
> >
> > We probably shouldn't check this so soon because the sage distro
> > installs a newer setuptools anyway (is setuptools to blame?).
>
> This is something that happens during the check of the system python,
> 3.12.3, with its setuptools.
> Do this mean that it fails its *own* checks?
> Or does it does check Sage's pyproject.toml, but this check is too old
> for our current pyproject.toml?
>
> I don't get what's going on here. Is 3.12.3 too old now for us?

it actually is almost 2 years old, and that's an Ubuntu fault for
keeping it that old.
On the other hand, Python 3.13 on Ununtu 24.04 should be at least
3.13.7, which is much newer,
and hopefully working.
Switch to 3.13?

Michael Orlitzky

unread,
Feb 3, 2026, 3:37:29 PM (8 days ago) Feb 3
to sage-...@googlegroups.com
On 2026-02-03 13:59:15, Dima Pasechnik wrote:
> I don't get what's going on here. Is 3.12.3 too old now for us?

I think it's setuptools and not python. Old setuptools doesn't
understand the new license field format.

In the sage distro, we'll build a newer setuptools anyway, but this
./configure check is implicitly testing that the system version of
setuptools can be used to build a C extension.

Trevor Karn

unread,
Feb 6, 2026, 9:16:17 PM (5 days ago) Feb 6
to sage-devel
When I manually install python 3.12.5 as my system python, I am having a hard time getting sage to see it. For example:

grep -E "result: (libffi|liblzma|python3):" config.log
real_configure:141199: result: libffi:                         using system package; SPKG will not be installed
real_configure:142050: result: liblzma:                        no suitable system package; standard, SPKG version 5.2.5 will be installed
real_configure:163376: result: python3:                        no suitable system package; standard, SPKG version 3.12.5 will be installed

tkkarn@math:~/sage/sage$ which python3 && python3 --version
/home/tkkarn/local/bin/python3
Python 3.12.5

I also posted my config log
config.log

Dima Pasechnik

unread,
Feb 6, 2026, 10:04:23 PM (5 days ago) Feb 6
to sage-...@googlegroups.com
## Checking whether SageMath should install SPKG python3... ##
## -------------------------------------------------------- ##
real_configure:41732: checking whether any of liblzma libffi is
installed as or will be installed as SPKG
real_configure:41737: result: yes; install python3 as well

please run

apt-get install xz-utils liblzma-dev libffi-dev

and try again
> --
> 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/a387619b-234f-4bfa-98cd-3171dfd7a15an%40googlegroups.com.

Michael Orlitzky

unread,
Feb 6, 2026, 10:06:29 PM (5 days ago) Feb 6
to 'Trevor Karn' via sage-devel
On 2026-02-06 17:38:29, 'Trevor Karn' via sage-devel wrote:
> When I manually install python 3.12.5 as my system python, I am having a
> hard time getting sage to see it. For example:

Sage wants to install python3 as an SPKG...

> ## -------------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG python3... ##
> ## -------------------------------------------------------- ##
> real_configure:41732: checking whether any of liblzma libffi is installed as or will be installed as SPKG
> real_configure:41737: result: yes; install python3 as well

Because xz is already installed as an SPKG:

> ## --------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG xz... ##
> ## --------------------------------------------------- ##
> real_configure:36275: xz has already been installed by SageMath

I don't remember how to uninstall an SPKG, but nuking the old
installation from might fix it if your system xz/liblzma are
acceptable to ./configure.

Trevor Karn

unread,
Feb 6, 2026, 10:08:51 PM (5 days ago) Feb 6
to sage-...@googlegroups.com
Unfortunately I can’t run apt get because I don’t have sudo on my university owned machine.  

On Fri, Feb 6, 2026 at 9:06 PM Michael Orlitzky <mic...@orlitzky.com> wrote:
On 2026-02-06 17: 38: 29, 'Trevor Karn' via sage-devel wrote: > When I manually install python 3. 12. 5 as my system python, I am having a > hard time getting sage to see it. For example: Sage wants to install python3 as an SPKG. . . > ##
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd
On 2026-02-06 17:38:29, 'Trevor Karn' via sage-devel wrote:
> When I manually install python 3.12.5 as my system python, I am having a 
> hard time getting sage to see it. For example:

Sage wants to install python3 as an SPKG...

> ## -------------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG python3... ##
> ## -------------------------------------------------------- ##
> real_configure:41732: checking whether any of liblzma libffi is installed as or will be installed as SPKG
> real_configure:41737: result: yes; install python3 as well

Because xz is already installed as an SPKG:

> ## --------------------------------------------------- ##
> ## Checking whether SageMath should install SPKG xz... ##
> ## --------------------------------------------------- ##
> real_configure:36275: xz has already been installed by SageMath

I don't remember how to uninstall an SPKG, but nuking the old
installation from might fix it if your system xz/liblzma are
acceptable to ./configure.

-- 
You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://urldefense.com/v3/__https://groups.google.com/d/topic/sage-devel/M_q-HEApeaU/unsubscribe__;!!KwNVnqRv!ACQUPz03-d1KyFBsWe9JbucTskqJzLLOmWw3G-JXbGNVNrnTMG8BC_z-TVqsoK3gC-7ZwzwESzFUwdCGfA$.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
To view this discussion visit https://urldefense.com/v3/__https://groups.google.com/d/msgid/sage-devel/aYasL6px0cU5q5Np*40mertle__;JQ!!KwNVnqRv!ACQUPz03-d1KyFBsWe9JbucTskqJzLLOmWw3G-JXbGNVNrnTMG8BC_z-TVqsoK3gC-7ZwzwESzFdas8_zA$.

Dima Pasechnik

unread,
Feb 6, 2026, 11:46:12 PM (4 days ago) Feb 6
to sage-...@googlegroups.com
On Fri, Feb 6, 2026 at 9:08 PM 'Trevor Karn' via sage-devel
<sage-...@googlegroups.com> wrote:
>
> Unfortunately I can’t run apt get because I don’t have sudo on my university owned machine.

Well, conda then. Or, read on...

Tell them to run apt-get now and then, cause it's their job then, to
ensure you can smoothly do research :-)
(chances are they'll give up and give you root---or not)

I ignore my IT support, and install whatever OS I want on
university-owned machines :-)
Once in a while I get emails about "software audits" which I
blissfully ignore... YMMV, of course.

By the way, at the moment a perfectly good refurbished Thinkpad costs
about $200-$300.

Dima
> 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/CAO5hkkRYWiCDtRVg1LKgf7jxe_7YinFUVSYnDijEAMw_RE1HOw%40mail.gmail.com.

Eric Gourgoulhon

unread,
Feb 9, 2026, 5:56:52 AM (2 days ago) Feb 9
to sage-devel
Le samedi 7 février 2026 à 03:16:17 UTC+1, tkk...@tamu.edu a écrit :
When I manually install python 3.12.5 as my system python, I am having a hard time getting sage to see it. For example:


It sounds cumbersome to have to install a system-wide python distinct from to the default one.
Python 3.12.3 is the default system python of the *current* Ubuntu LTS (24.04). It's true that Ubuntu will soon release a new LTS version (26.04), with a newer version of python, but many people will stay on 24.04 for a while. In this respect it would be preferable not to require Python 3.12.5 for Sage install, unless this is really necessary for some good reason. 

Eric.

Martin R

unread,
Feb 9, 2026, 6:33:48 AM (2 days ago) Feb 9
to sage-devel
I now have the same problem.  I am root on my computer, but 


apt-get install xz-utils liblzma-dev libffi-dev

did not help (it says that they are already the newest version).

What's the next best option?

Martin

Martin R

unread,
Feb 9, 2026, 7:40:38 AM (2 days ago) Feb 9
to sage-devel
never mind, I think it worked anyway.

Michael Orlitzky

unread,
Feb 9, 2026, 8:46:40 AM (2 days ago) Feb 9
to sage-...@googlegroups.com
On 2026-02-09 02:56:52, Eric Gourgoulhon wrote:
> It sounds cumbersome to have to install a system-wide python distinct from
> to the default one.
> Python 3.12.3 is the default system python of the *current* Ubuntu LTS
> (24.04). It's true that Ubuntu will soon release a new LTS version (26.04),
> with a newer version of python, but many people will stay on 24.04 for a
> while. In this respect it would be preferable not to require Python 3.12.5
> for Sage install, unless this is really necessary for some good reason.

We still don't know what the problem is. Python 3.12.3 should be fine,
but as long as xz/liblzma is installed as an SPKG, ./configure won't
let you use the system python.

Trevor Karn

unread,
Feb 9, 2026, 10:56:31 AM (2 days ago) Feb 9
to sage-...@googlegroups.com
So do you suspect that installing xz/liblzma as system packages would fix this problem?

On Mon, Feb 9, 2026 at 7:46 AM Michael Orlitzky <mic...@orlitzky.com> wrote:
On 2026-02-09 02: 56: 52, Eric Gourgoulhon wrote: > It sounds cumbersome to have to install a system-wide python distinct from > to the default one. > Python 3. 12. 3 is the default system python of the *current* Ubuntu LTS > (24. 04). 
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd
On 2026-02-09 02:56:52, Eric Gourgoulhon wrote:
> It sounds cumbersome to have to install a system-wide python distinct from 
> to the default one.
> Python 3.12.3 is the default system python of the *current* Ubuntu LTS 
> (24.04). It's true that Ubuntu will soon release a new LTS version (26.04), 
> with a newer version of python, but many people will stay on 24.04 for a 
> while. In this respect it would be preferable not to require Python 3.12.5 
> for Sage install, unless this is really necessary for some good reason. 

We still don't know what the problem is. Python 3.12.3 should be fine,
but as long as xz/liblzma is installed as an SPKG, ./configure won't
let you use the system python.

-- 
You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://urldefense.com/v3/__https://groups.google.com/d/topic/sage-devel/M_q-HEApeaU/unsubscribe__;!!KwNVnqRv!H95X1C2XH4CDxkUpdsaxm2psdwgo5CqWReeKQ8S07tB_AQqVU-2gt8xDPEcO1wFvOVsiglsl6a2eklQdSw$.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
To view this discussion visit https://urldefense.com/v3/__https://groups.google.com/d/msgid/sage-devel/aYnlP7KSsKCqjALN*40stitch__;JQ!!KwNVnqRv!H95X1C2XH4CDxkUpdsaxm2psdwgo5CqWReeKQ8S07tB_AQqVU-2gt8xDPEcO1wFvOVsiglsl6a3Fsnm3Fg$.

Dima Pasechnik

unread,
Feb 9, 2026, 11:41:02 AM (2 days ago) Feb 9
to sage-...@googlegroups.com
On Mon, Feb 9, 2026 at 9:56 AM 'Trevor Karn' via sage-devel
<sage-...@googlegroups.com> wrote:
>
> So do you suspect that installing xz/liblzma as system packages would fix this problem?

Haven't I wrtitten this already?
> 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/CAO5hkkSjbZtS7Sprw6NDxh2LBYE2Yk1ufZte9hQCpQoqAX4UTw%40mail.gmail.com.

Trevor Karn

unread,
Feb 9, 2026, 12:00:36 PM (2 days ago) Feb 9
to sage-...@googlegroups.com
Yep! I realized that after I hit send - sorry about that.

On Mon, Feb 9, 2026 at 10:41 AM Dima Pasechnik <dim...@gmail.com> wrote:
On Mon, Feb 9, 2026 at 9: 56 AM 'Trevor Karn' via sage-devel <sage-devel@ googlegroups. com> wrote: > > So do you suspect that installing xz/liblzma as system packages would fix this problem? Haven't I wrtitten this already? > >

Michael Orlitzky

unread,
Feb 9, 2026, 12:19:35 PM (2 days ago) Feb 9
to 'Trevor Karn' via sage-devel
On 2026-02-09 09:56:13, 'Trevor Karn' via sage-devel wrote:
> So do you suspect that installing xz/liblzma as system packages would fix
> this problem?

Actually no, because installing the system package does nothing to the
SPKG, which remains installed. If you have an SPKG installed, ./configure
will insist on using it.

Dima Pasechnik

unread,
Feb 9, 2026, 1:11:15 PM (2 days ago) Feb 9
to sage-...@googlegroups.com
yes, certainly, one would need to uninstall these Sage's spkgs them first.

make xz-clean xz-uninstall liblzma-clean liblzma-uninstall

will do the job.


>
> --
> 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/aYoXH4KVtyfroiaQ%40stitch.

Eric Gourgoulhon

unread,
Feb 9, 2026, 3:56:31 PM (2 days ago) Feb 9
to sage-devel
Hi, 

Le lundi 9 février 2026 à 17:41:02 UTC+1, dim...@gmail.com a écrit :
On Mon, Feb 9, 2026 at 9:56 AM 'Trevor Karn' via sage-devel
<sage-...@googlegroups.com> wrote:
>
> So do you suspect that installing xz/liblzma as system packages would fix this problem?

Haven't I wrtitten this already?


xz-utils, liblzma-devel and libffi-devel are installed as system packages on my computer, configure is saying (cf. the file config.log attached in a previous message):
real_configure:135728: result: libffi:                         using system package; SPKG will not be installed
real_configure:136544: result: liblzma:                    using system package; SPKG will not be installed
real_configure:175792: result: xz:                             not required on your platform; SPKG will not be installed

and yet, since Sage 10.9.beta4, building Sage triggers the installation of the SPKG Python 3.12.5.

Eric. 

Dima Pasechnik

unread,
Feb 9, 2026, 4:42:23 PM (2 days ago) Feb 9
to sage-...@googlegroups.com
once again, did we see config.log for this strange situation?

Michael Orlitzky

unread,
Feb 9, 2026, 5:27:40 PM (2 days ago) Feb 9
to sage-...@googlegroups.com
On 2026-02-09 15:06:01, Dima Pasechnik wrote:
> once again, did we see config.log for this strange situation?

It was posted a while back. It shows that the xz SPKG is installed,
so it won't even consider python

Eric Gourgoulhon

unread,
Feb 9, 2026, 6:19:03 PM (2 days ago) Feb 9
to sage-devel
Le lundi 9 février 2026 à 23:27:40 UTC+1, Michael Orlitzky a écrit :
On 2026-02-09 15:06:01, Dima Pasechnik wrote:
> once again, did we see config.log for this strange situation?

It was posted a while back.

 
It shows that the xz SPKG is installed,

Are you sure? It says in line 3007:

## --------------------------------------------------- ##
## Checking whether SageMath should install SPKG xz... ##
## --------------------------------------------------- ##
real_configure:35101: SPKG xz is not required on this system

and in line 6441:

real_configure:175792: result: xz:                             not required on your platform; SPKG will not be installed

Moreover, there is no xz in SAGE_ROOT/logs/pkgs and sage -standard says:
xz......................................5.2.5 (not_installed)

xz is instead installed as a system package on my computer (from the Ubuntu package xz-utils 5.6.1+really5.4.5-1ubuntu0.2):
xz --version returns:
xz (XZ Utils) 5.4.5
liblzma 5.4.5

Eric. 

Michael Orlitzky

unread,
Feb 9, 2026, 6:38:35 PM (2 days ago) Feb 9
to sage-...@googlegroups.com
On 2026-02-09 15:19:02, Eric Gourgoulhon wrote:
>
> It shows that the xz SPKG is installed,
>
> Are you sure? It says in line 3007:
>

Oh, no, sorry -- I was confusing your problem with Trevor's. Yours is
that setuptools is too old, and that ./configure tries to build
something with the old version before upgrading it.

We could probably revert to the old "license" field format to fix that
in the meantime, but we also have a PR to make python3 a prerequisite:

https://github.com/sagemath/sage/pull/41120

That would "fix" it to the extent that we no longer need to run a
buggy ./configure check.

Dima Pasechnik

unread,
Feb 10, 2026, 8:24:52 PM (14 hours ago) Feb 10
to sage-...@googlegroups.com
I think now that's a bug in ./configure

The ability to build extensions (with setuptools) is a property of setuptools,
so this test should not be done for python3 spkg, it should be done for setuptools spkg.

If the system wide setuptools is too old, nothing prevents us to install a newer version in the venv we are creating.


Dima
Reply all
Reply to author
Forward
0 new messages