On Tue, Nov 7, 2023 at 12:56 PM Dima Pasechnik <dimp...@gmail.com> wrote: > > > > On Tue, 7 Nov 2023, 12:01 Laurent Bakri, <laurent.ba...@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. > > 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+unsubscr...@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. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq3Wtxnigz3JbGMuqKtTq%3Dos_PBiv%2B66Pp4kjpzVrgWxyw%40mail.gmail.com.