Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread 'Michel VAN DEN BERGH' via sage-support
I was unable to get the distro sage to work. I compiled sage from source 
and this solved the problem. Sad though since I would have preferred to use 
the distro version.

On Sunday, August 13, 2023 at 6:55:16 PM UTC+2 Jan Groenewald wrote:

> Hi
>
> Does this happen with a user other than your own? Even root will do for a 
> quick test.
> Perhaps pip installed packages or other repositories are conflicting. Also 
> try 
> LC_ALL=C sage
>
> Regards,
> Jan
>
>
>
> On Sun, 13 Aug 2023 at 18:14, 'Michel VAN DEN BERGH' via sage-support <
> sage-s...@googlegroups.com> wrote:
>
>> Hi,
>>
>> Today I installed sage on Ubuntu 22.04 using 
>>
>> apt install sagemath
>>
>> Sadly after typing 'sage' the program crashes. The crash seems to be 
>> related to Cython. I am attaching the crash report.
>>
>> What are my options?
>>
>> Best regards,
>> Michel
>>
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-support...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread Henri Girard

Did you make a link to your compiled version ?

I compiled sage in sage (which us the base dir) after I sudo ln -s /sage 
/usr/bin/sage then you get sage wide


I installed the ubuntu version which is working fine : sudo apt install 
sagemath* jupyter* to get all libs working


hope that can help

best

Henri

Le 14/08/2023 à 10:32, 'Michel VAN DEN BERGH' via sage-support a écrit :
I was unable to get the distro sage to work. I compiled sage from 
source and this solved the problem. Sad though since I would have 
preferred to use the distro version.


On Sunday, August 13, 2023 at 6:55:16 PM UTC+2 Jan Groenewald wrote:

Hi

Does this happen with a user other than your own? Even root will
do for a quick test.
Perhaps pip installed packages or other repositories are
conflicting. Also try
LC_ALL=C sage

Regards,
Jan



On Sun, 13 Aug 2023 at 18:14, 'Michel VAN DEN BERGH' via
sage-support  wrote:

Hi,

Today I installed sage on Ubuntu 22.04 using

apt install sagemath

Sadly after typing 'sage' the program crashes. The crash seems
to be related to Cython. I am attaching the crash report.

What are my options?

Best regards,
Michel




-- 
You received this message because you are subscribed to the

Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com

.

--
You received this message because you are subscribed to the Google 
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ca0ffb0a-d2f9-929b-fbf7-8d7ce4d5a294%40gmail.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread Dima Pasechnik
On Mon, 14 Aug 2023, 09:32 'Michel VAN DEN BERGH' via sage-support, <
sage-support@googlegroups.com> wrote:

> I was unable to get the distro sage to work. I compiled sage from source
> and this solved the problem. Sad though since I would have preferred to use
> the distro version.
>

we are not involved in building distribution packages - this should be an
Ubuntu bug report.


> On Sunday, August 13, 2023 at 6:55:16 PM UTC+2 Jan Groenewald wrote:
>
>> Hi
>>
>> Does this happen with a user other than your own? Even root will do for a
>> quick test.
>> Perhaps pip installed packages or other repositories are conflicting.
>> Also try
>> LC_ALL=C sage
>>
>> Regards,
>> Jan
>>
>>
>>
>> On Sun, 13 Aug 2023 at 18:14, 'Michel VAN DEN BERGH' via sage-support <
>> sage-s...@googlegroups.com> wrote:
>>
>>> Hi,
>>>
>>> Today I installed sage on Ubuntu 22.04 using
>>>
>>> apt install sagemath
>>>
>>> Sadly after typing 'sage' the program crashes. The crash seems to be
>>> related to Cython. I am attaching the crash report.
>>>
>>> What are my options?
>>>
>>> Best regards,
>>> Michel
>>>
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "sage-support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to sage-support...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq18uBu8_c14BVx5ZUzruN0nLs_pmZ_cQoBXcgr-47RWfQ%40mail.gmail.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread 'Michel VAN DEN BERGH' via sage-support


On Monday, August 14, 2023 at 1:41:51 PM UTC+2 Dima Pasechnik wrote:



On Mon, 14 Aug 2023, 09:32 'Michel VAN DEN BERGH' via sage-support, <
sage-s...@googlegroups.com> wrote:

I was unable to get the distro sage to work. I compiled sage from source 
and this solved the problem. Sad though since I would have preferred to use 
the distro version.


we are not involved in building distribution packages - this should be an 
Ubuntu bug report.


Fair enough. Next time I try and it still doesn't work I will file one! 

- 

You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to sage-support...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/bd9d3fb3-d8f8-4a55-b51c-38ea8e8d0de5n%40googlegroups.com
 

.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to sage-support...@googlegroups.com.

To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com
 

.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d43226ab-d419-43d6-ad35-531f97c8c62an%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread 'Michel VAN DEN BERGH' via sage-support


On Monday, August 14, 2023 at 10:45:32 AM UTC+2 Henri Girard wrote:

Did you make a link to your compiled version ?

I compiled sage in sage (which us the base dir) after I sudo ln -s /sage 
/usr/bin/sage then you get sage wide


I don't use the sage executable, but I do "import sage" inside the python 
interpreter (I only run scripts). This used to work with the distro sage, 
but I have not found how to make that work with the compiled sage.  Do you 
know how to achieve this?

Michel


 

I installed the ubuntu version which is working fine : sudo apt install 
sagemath* jupyter* to get all libs working 

hope that can help

best

Henri
-- 

You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to sage-support...@googlegroups.com.

To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8670c2f2-b506-473b-ae59-f6c1166e9829n%40googlegroups.com
 

.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/31670cfe-19d9-4963-9054-32a6783ad24fn%40googlegroups.com.


Re: [sage-support] Freshly installed sage crashes

2023-08-14 Thread 'Michel VAN DEN BERGH' via sage-support


On Tuesday, August 15, 2023 at 8:11:35 AM UTC+2 Michel VAN DEN BERGH wrote:

On Monday, August 14, 2023 at 10:45:32 AM UTC+2 Henri Girard wrote:

Did you make a link to your compiled version ?

I compiled sage in sage (which us the base dir) after I sudo ln -s /sage 
/usr/bin/sage then you get sage wide


I don't use the sage executable, but I do "import sage" inside the python 
interpreter (I only run scripts). This used to work with the distro sage, 
but I have not found how to make that work with the compiled sage.  Do you 
know how to achieve this?

Michel


I did some investigating and it seems that the distro sage installs sage as 
an honest module (it is in the file system as 
/usr/lib/python3/dist-packages/sage/) whereas the python that comes with 
the compiled sage has sage as a built-in module (it seems to be not in the 
file system). So it is not accessible to the global python I think.

The following is for the sage python.

$ sage --python
>>> import sage
>>> import inspect
>>> inspect.getfile(sage)
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/home/sage_user/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/inspect.py",
 
line 901, in getfile
raise TypeError('{!r} is a built-in module'.format(object))
TypeError: )> is a built-in module
>>> 



 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/cdf03f5c-2ad1-4d0a-a4c5-06a1b3fec632n%40googlegroups.com.