10.9.beta5 startup failure

11 views
Skip to first unread message

Trevor Karn

unread,
4:32 PM (5 hours ago) 4:32 PM
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,
7:59 PM (2 hours ago) 7:59 PM
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.
Reply all
Reply to author
Forward
0 new messages