Sage 9.5 won't launch nor install (any version ? ) on debian testing/sid and ubuntu 23.10

256 views
Skip to first unread message

Laurent Bakri

unread,
Nov 7, 2023, 7:00:55 AM11/7/23
to sage-devel

Hi all,

I am using Debian Testing (now "Sid" because I was wondering if it could help; it doesn't) and Ubuntu (23.10). Since a recent (a few months ago?) upgrade of Singular, SageMath won't launch on my Debian machines (laptop and desktop) or on my recently upgraded Ubuntu. I'm encountering the following error:

Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3.11/pathlib.py", line 1251, in is_dir return S_ISDIR(self.stat().st_mode) ^^^^^^^^^ AttributeError: 'str' object has no attribute 'stat' See the file debug-launching-sage.log.

So I tried to install Sage from source on my Debian desktop, but it won't compile because it fails to build Brial (something related to libboost, if I understand correctly):

"/../libbrial/include/polybori/common/traits.h:26:10: fatal error: boost/preprocessor/cat.hpp: No such file or directory 26 | #include <boost/preprocessor/cat.hpp>

I'm not sure which direction I should take now. Historically, it has been easy because there were some "vanilla" binaries available for Linux. Currently, I am limited to using Sage 9.2, which, if I understand correctly, is the last version that comes with a "generic" compiled version.

Any help would be greatly appreciated. 

Regards, 

Laurent

debug-launching-sage.log
brial-1.2.8.log
config.log
install.log

Dima Pasechnik

unread,
Nov 7, 2023, 7:56:33 AM11/7/23
to sage-devel


On Tue, 7 Nov 2023, 12:01 Laurent Bakri, <lauren...@gmail.com> wrote:

Hi all,

I am using Debian Testing (now "Sid" because I was wondering if it could help; it doesn't) and Ubuntu (23.10). Since a recent (a few months ago?) upgrade of Singular, SageMath won't launch on my Debian machines (laptop and desktop) or on my recently upgraded Ubuntu. I'm encountering the following error:

Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3.11/pathlib.py", line 1251, in is_dir return S_ISDIR(self.stat().st_mode) ^^^^^^^^^ AttributeError: 'str' object has no attribute 'stat' See the file debug-launching-sage.log.


we don't do packaging of SageMath for Debian,
so that's not for us to fix.

So I tried to install Sage from source on my Debian desktop, but it won't compile because it fails to build Brial (something related to libboost, if I understand correctly):


what version of SageMath are you trying to build?
You might need a recent, 10.1, or 10.2.rc0,
if you're on Debian Testing.



"/../libbrial/include/polybori/common/traits.h:26:10: fatal error: boost/preprocessor/cat.hpp: No such file or directory 26 | #include <boost/preprocessor/cat.hpp>


looks like you need boost's headers installed. Run

      sudo apt install libboost-dev

I'm not sure which direction I should take now. Historically, it has been easy because there were some "vanilla" binaries available for Linux. Currently, I am limited to using Sage 9.2, which, if I understand correctly, is the last version that comes with a "generic" compiled version.


if you don't want to compile Sage yourself you'd e.g. use Conda route to install and run Sage:


HTH.


Any help would be greatly appreciated. 

Regards, 

Laurent

--
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 on the web visit https://groups.google.com/d/msgid/sage-devel/6f76bb3b-974c-4c96-82c9-4720bfe924a8n%40googlegroups.com.

Eric Gourgoulhon

unread,
Nov 7, 2023, 9:09:26 AM11/7/23
to sage-devel
Hi, 

In case it might help for the Ubuntu install, you may take a look at this page:

Best wishes,

Eric. 

Dima Pasechnik

unread,
Nov 7, 2023, 9:59:12 AM11/7/23
to sage-devel
On Tue, Nov 7, 2023 at 12:56 PM Dima Pasechnik <dim...@gmail.com> wrote:
>
>
>
> On Tue, 7 Nov 2023, 12:01 Laurent Bakri, <lauren...@gmail.com> wrote:
>>
>> Hi all,
>>
>> I am using Debian Testing (now "Sid" because I was wondering if it could help; it doesn't) and Ubuntu (23.10). Since a recent (a few months ago?) upgrade of Singular, SageMath won't launch on my Debian machines (laptop and desktop) or on my recently upgraded Ubuntu. I'm encountering the following error:
>>
>> Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3.11/pathlib.py", line 1251, in is_dir return S_ISDIR(self.stat().st_mode) ^^^^^^^^^ AttributeError: 'str' object has no attribute 'stat' See the file debug-launching-sage.log.
>
>
> we don't do packaging of SageMath for Debian,
> so that's not for us to fix.
>
>> So I tried to install Sage from source on my Debian desktop, but it won't compile because it fails to build Brial (something related to libboost, if I understand correctly):
>
>
> what version of SageMath are you trying to build?
> You might need a recent, 10.1, or 10.2.rc0,
> if you're on Debian Testing.
>
>
>
>> "/../libbrial/include/polybori/common/traits.h:26:10: fatal error: boost/preprocessor/cat.hpp: No such file or directory 26 | #include <boost/preprocessor/cat.hpp>
>
>
> looks like you need boost's headers installed. Run
>
> sudo apt install libboost-dev
>>
>> I'm not sure which direction I should take now. Historically, it has been easy because there were some "vanilla" binaries available for Linux. Currently, I am limited to using Sage 9.2, which, if I understand correctly, is the last version that comes with a "generic" compiled version.
>
>
> if you don't want to compile Sage yourself you'd e.g. use Conda route to install and run Sage:
>
> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda

On the other hand I see in your PATH:

PATH: /home/laurent/mambaforge/bin/
PATH: /home/laurent/mambaforge/condabin/
PATH: /home/laurent/.config/guix/current/bin/
PATH: /usr/local/bin/
PATH: /usr/bin/

which means you have potentially a lot of way to shoot yourself in the
foot while trying to build Sage from the source. Unless you have there
things you want to use for building Sage, sanitise
your PATH before trying to build from source.

Laurent Bakri

unread,
Nov 8, 2023, 9:26:33 AM11/8/23
to sage-devel
Thanks for your answers I think I tried  10.1 and that also tried with conda but I will investigate the lasts remarks.  (PATH and ubuntu's method to build)
Regards,
Laurent

Laurent Bakri

unread,
Nov 21, 2023, 8:16:56 AM11/21/23
to sage-devel
Hi there,
A few words to say that conda/mamba method  was working nicely and give me a working sage on each machines.
Now I will look on a possible way (if any) to bypass  the 'conda activate sage ' and make this version available  from anywhere.
Best regards,
Laurent
Reply all
Reply to author
Forward
0 new messages