Re: [sage-support] Re: sage 10.3.b2 build problem on OSX 12.7.1

2023-12-16 Thread John H Palmieri
Another quick solution (cherry-picked from the PR I mentioned) would be to 
change the first line of build/pkgs/editables/dependencies from 

 | $(PYTHON_TOOLCHAIN) $(PYTHON)

to 

 | flit_core $(PYTHON)


On Saturday, December 16, 2023 at 6:45:44 AM UTC-8 Heiko Knospe wrote:

> Hi, 
>
> same build problem with flit_core for sage 10.3.b2 on Debian 11:
>
> [editables-0.5] Thread model: posix
>
> [editables-0.5] Supported LTO compression algorithms: zlib zstd
>
> [editables-0.5] gcc version 10.2.1 20210110 (Debian 10.2.1-6) 
>
> [editables-0.5] 
>
> [editables-0.5] Package 'editables' is currently not installed
>
> [editables-0.5] No legacy uninstaller found for 'editables'; nothing to do
>
> [editables-0.5] Installing editables-0.5
>
> [editables-0.5] Looking in links: 
> /home/xxx/sage/local/var/lib/sage/venv-python3.9/var/lib/sage/wheels
>
> [editables-0.5] Processing 
> /home/xxx/sage/local/var/lib/sage/venv-python3.9/var/tmp/sage/build/editables-0.5/src
>
> [editables-0.5]   Installing build dependencies: started
>
> [editables-0.5]   Running command pip subprocess to install build 
> dependencies
>
> [editables-0.5]   Looking in links: 
> /home/xxx/sage/local/var/lib/sage/venv-python3.9/var/lib/sage/wheels
>
> [editables-0.5]   ERROR: Could not find a version that satisfies the 
> requirement flit_core>=3.3 (from versions: none)
>
> [editables-0.5]   ERROR: No matching distribution found for flit_core>=3.3
>
> [editables-0.5]   error: subprocess-exited-with-error
>
> [editables-0.5]   
>
> [editables-0.5]   × pip subprocess to install build dependencies did not 
> run successfully.
>
> [editables-0.5]   │ exit code: 1
>
> [editables-0.5]   ╰─> See above for output.
>
> My (quick and dirty) workaround was to copy 
> flit_core-3.9.0-py3-none-any.whl 
> 
>  from https://www.piwheels.org/project/flit-core/ to 
> local/var/lib/sage/venv-python3.9/var/lib/sage/wheels. Then compiling sage 
> works and flit_core-3.9.0 is installed.
>
> - Heiko
>
> David Joyner schrieb am Samstag, 16. Dezember 2023 um 12:40:00 UTC+1:
>
>> On Fri, Dec 15, 2023 at 3:04 PM John H Palmieri  
>> wrote:
>>
>>> In sage-release, Matthias pointed to missing dependencies for editables, 
>>> fixed in https://github.com/sagemath/sage/pull/36885. Maybe you can 
>>> just do "make flit_core" (to build the missing dependency) and then "make".
>>>
>>
>> That works, thanks!!
>>
>> BTW, on startup I got this:
>>
>> ./sage
>>
>> ┌┐
>>
>> │ SageMath version 10.3.beta2, Release Date: 2023-12-13  │
>>
>> │ Using Python 3.11.1. Type "help()" for help.   │
>>
>> └┘
>>
>> ┏┓
>>
>> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
>>
>> ┗┛
>>
>> /Users/davidjoyner/sagefiles/sage-10.3.beta2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/prompt_toolkit/application/application.py:988:
>>  
>> DeprecationWarning: There is no current event loop
>>   loop = asyncio.get_event_loop()
>>
>> Seems to be working fine though.
>>
>> Thanks again, John.
>>  
>>
>>>
>>>
>>> On Friday, December 15, 2023 at 10:52:10 AM UTC-8 David Joyner wrote:
>>>
 Hi:

 I tried to compile sage and got this:

 The following package(s) may have failed to build (not necessarily

 during this run of 'make all-start'):


 * package: editables-0.5

   last build time: Dec 15 10:48

   log file:
 /Users/davidjoyner/sagefiles/sage-10.3.beta2/logs/pkgs/editables-0.5.log


 The corresponding log is attached.


 Does anyone have any suggestions on how to fix this?

 - David


 -- 
>>> 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/ce30cd4c-f431-4eb8-ac35-f4ab5e941e49n%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 

Re: [sage-support] Problem with rebuilding Sage

2023-12-16 Thread Ruchit Jagodara
This worked, but it's still not convenient because ./sage -br was much 
faster than this. I noticed that I created some pull requests in Sage, and 
they are failing in the build and test check. However, I believe they 
should pass because I have taken care of everything, so I am not sure what 
the exact probelm is?
On Saturday, December 16, 2023 at 1:44:12 AM UTC+5:30 Dima Pasechnik wrote:

> On Fri, Dec 15, 2023 at 7:00 PM Ruchit Jagodara
>  wrote:
> >
> > I am trying to rebuild sage using ./sage -br but it is failing for some 
> reason ( I don't know exactly what is the reason.) This is happening to me 
> since yesterday when I pulled developer branch from sage to get the most 
> updated branch but after that whenever I am trying to rebuild sage it is 
> giving some errors below are few lines of error message that I am getting. 
> I am working on Linux and using 10.2 Sage version.
>
> Can you try
>
> make build
>
> (and not ./sage -br ?)
>
>
> >
> > ***
> > Error building Sage.
> >
> > The following package(s) may have failed to build (not necessarily
> > during this run of 'make sagelib-no-deps'):
> >
> > * package: sagelib-10.3.beta0
> > last build time: Dec 15 22:20
> > log file: /home/ruchitjagodara/sage/sage/logs/pkgs/sagelib-10.3.beta0.log
> >
> > It is safe to delete any log files and build directories, but they
> > contain information that is helpful for debugging build problems.
> > WARNING: If you now run 'make' again, the build directory of the
> > same version of the package will, by default, be deleted. Set the
> > environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
> >
> > --
> > 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/27b740b3-f0d5-4c68-8ee6-3f086ac17cd7n%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/268dc0f9-b563-4579-b961-c9ee42f76568n%40googlegroups.com.


[sage-support] Re: Problem with rebuilding Sage

2023-12-16 Thread Ruchit Jagodara
File 


On Saturday, December 16, 2023 at 1:46:44 AM UTC+5:30 David Ayotte wrote:

> Can you post the following log file:
>
> /home/ruchitjagodara/sage/sage/logs/pkgs/sagelib-10.3.beta0.log
>
> here? There might be some error message that would help us find the 
> problem.
>
> Best,
>
> David A.
>
> Le vendredi 15 décembre 2023 à 14:00:02 UTC-5, Ruchit Jagodara a écrit :
>
>> I am trying to rebuild sage using ./sage -br but it is failing for some 
>> reason ( I don't know exactly what is the reason.) This is happening to me 
>> since yesterday when I pulled developer branch from sage to get the most 
>> updated branch but after that whenever I am trying to rebuild sage it is 
>> giving some errors below are few lines of error message that I am getting. 
>> I am working on Linux and using 10.2 Sage version.
>>
>> ***
>> Error building Sage.
>>
>> The following package(s) may have failed to build (not necessarily
>> during this run of 'make sagelib-no-deps'):
>>
>> * package: sagelib-10.3.beta0
>>   last build time: Dec 15 22:20
>>   log file:   
>>  /home/ruchitjagodara/sage/sage/logs/pkgs/sagelib-10.3.beta0.log
>>
>> It is safe to delete any log files and build directories, but they
>> contain information that is helpful for debugging build problems.
>> WARNING: If you now run 'make' again, the build directory of the
>> same version of the package will, by default, be deleted. Set the
>> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>>
>

-- 
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/41df1c57-9f3e-41af-862a-bcead9aa7743n%40googlegroups.com.


Re: [sage-support] Re: sage 10.3.b2 build problem on OSX 12.7.1

2023-12-16 Thread 'Heiko Knospe' via sage-support
Hi, 

same build problem with flit_core for sage 10.3.b2 on Debian 11:

[editables-0.5] Thread model: posix

[editables-0.5] Supported LTO compression algorithms: zlib zstd

[editables-0.5] gcc version 10.2.1 20210110 (Debian 10.2.1-6) 

[editables-0.5] 

[editables-0.5] Package 'editables' is currently not installed

[editables-0.5] No legacy uninstaller found for 'editables'; nothing to do

[editables-0.5] Installing editables-0.5

[editables-0.5] Looking in links: 
/home/xxx/sage/local/var/lib/sage/venv-python3.9/var/lib/sage/wheels

[editables-0.5] Processing 
/home/xxx/sage/local/var/lib/sage/venv-python3.9/var/tmp/sage/build/editables-0.5/src

[editables-0.5]   Installing build dependencies: started

[editables-0.5]   Running command pip subprocess to install build 
dependencies

[editables-0.5]   Looking in links: 
/home/xxx/sage/local/var/lib/sage/venv-python3.9/var/lib/sage/wheels

[editables-0.5]   ERROR: Could not find a version that satisfies the 
requirement flit_core>=3.3 (from versions: none)

[editables-0.5]   ERROR: No matching distribution found for flit_core>=3.3

[editables-0.5]   error: subprocess-exited-with-error

[editables-0.5]   

[editables-0.5]   × pip subprocess to install build dependencies did not 
run successfully.

[editables-0.5]   │ exit code: 1

[editables-0.5]   ╰─> See above for output.

My (quick and dirty) workaround was to copy flit_core-3.9.0-py3-none-any.whl 

 from https://www.piwheels.org/project/flit-core/ to 
local/var/lib/sage/venv-python3.9/var/lib/sage/wheels. Then compiling sage 
works and flit_core-3.9.0 is installed.

- Heiko

David Joyner schrieb am Samstag, 16. Dezember 2023 um 12:40:00 UTC+1:

> On Fri, Dec 15, 2023 at 3:04 PM John H Palmieri  
> wrote:
>
>> In sage-release, Matthias pointed to missing dependencies for editables, 
>> fixed in https://github.com/sagemath/sage/pull/36885. Maybe you can just 
>> do "make flit_core" (to build the missing dependency) and then "make".
>>
>
> That works, thanks!!
>
> BTW, on startup I got this:
>
> ./sage
>
> ┌┐
>
> │ SageMath version 10.3.beta2, Release Date: 2023-12-13  │
>
> │ Using Python 3.11.1. Type "help()" for help.   │
>
> └┘
>
> ┏┓
>
> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
>
> ┗┛
>
> /Users/davidjoyner/sagefiles/sage-10.3.beta2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/prompt_toolkit/application/application.py:988:
>  
> DeprecationWarning: There is no current event loop
>   loop = asyncio.get_event_loop()
>
> Seems to be working fine though.
>
> Thanks again, John.
>  
>
>>
>>
>> On Friday, December 15, 2023 at 10:52:10 AM UTC-8 David Joyner wrote:
>>
>>> Hi:
>>>
>>> I tried to compile sage and got this:
>>>
>>> The following package(s) may have failed to build (not necessarily
>>>
>>> during this run of 'make all-start'):
>>>
>>>
>>> * package: editables-0.5
>>>
>>>   last build time: Dec 15 10:48
>>>
>>>   log file:
>>> /Users/davidjoyner/sagefiles/sage-10.3.beta2/logs/pkgs/editables-0.5.log
>>>
>>>
>>> The corresponding log is attached.
>>>
>>>
>>> Does anyone have any suggestions on how to fix this?
>>>
>>> - David
>>>
>>>
>>> -- 
>> 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/ce30cd4c-f431-4eb8-ac35-f4ab5e941e49n%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/6dd64921-8a78-4107-9af0-817bf2f5e26bn%40googlegroups.com.


Re: [sage-support] Re: Problem with plot

2023-12-16 Thread Dima Pasechnik
It's probably just a build error. I'd try something like

make sage_conf && make

On Sat, Dec 16, 2023 at 9:36 AM Emmanuel Charpentier
 wrote:
>
> Le mercredi 13 décembre 2023 à 12:35:42 UTC+1, Philippe Delavalade a écrit :
>
> Hi.
>
> I'm using sage-10.2 with linux (slint-15.0 based on slackware 15.0) on the
> console.
>
> When I run
> p=plot(x^2); p
> there is no graphics on the screen, just the line
> Launched png viewer for Graphics object consisting of 1 graphics primitive
>
> Is something missing in my configuration ?
>
> Maybe : WorksForMe(TM) on Debian testing installed from source. How did you 
> obtain your installation ?
>
> Moreover, in help(plot), the command sphinx_plot is often used but on my
> machine I obtain
> NameError: name 'sphinx_plot' is not defined
>
> Googling sagemath sphinx_plot leads you to the General conventions chapter of 
> the Sage developer Guide, where it appears that this function is part of the 
> Sphinx system of documentation (especially the mechanisms extracting 
> viewable/printable documentation from Python docstrings).
>
> This function appears to trigger the output of (some relevant form of) 
> graphics in the desired documentation. Since help gives you a text form of 
> the docstring, which does not have any useful form of graphics, what you get 
> in the output is the (unexecuted) function call.
>
> A complete explanation probably exists in the Sphinx documentation, which I’m 
> currently too lazy to chase on the ‘Net…
>
> HTH,
>
>
>
> Thanks for help.
>
> --
> Philippe
>
> --
> 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/5f5cf9f2-4bf5-4558-8417-6e31c50858d7n%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/CAAWYfq3NvSybt5QQ7jdH1S3rt28jCnPp2yXHSuq186LwNN_aYA%40mail.gmail.com.


Re: [sage-support] Re: sage 10.3.b2 build problem on OSX 12.7.1

2023-12-16 Thread David Joyner
On Fri, Dec 15, 2023 at 3:04 PM John H Palmieri 
wrote:

> In sage-release, Matthias pointed to missing dependencies for editables,
> fixed in https://github.com/sagemath/sage/pull/36885. Maybe you can just
> do "make flit_core" (to build the missing dependency) and then "make".
>

That works, thanks!!

BTW, on startup I got this:

./sage

┌┐

│ SageMath version 10.3.beta2, Release Date: 2023-12-13  │

│ Using Python 3.11.1. Type "help()" for help.   │

└┘

┏┓

┃ Warning: this is a prerelease version, and it may be unstable. ┃

┗┛

/Users/davidjoyner/sagefiles/sage-10.3.beta2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/prompt_toolkit/application/application.py:988:
DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()

Seems to be working fine though.

Thanks again, John.


>
>
> On Friday, December 15, 2023 at 10:52:10 AM UTC-8 David Joyner wrote:
>
>> Hi:
>>
>> I tried to compile sage and got this:
>>
>> The following package(s) may have failed to build (not necessarily
>>
>> during this run of 'make all-start'):
>>
>>
>> * package: editables-0.5
>>
>>   last build time: Dec 15 10:48
>>
>>   log file:
>> /Users/davidjoyner/sagefiles/sage-10.3.beta2/logs/pkgs/editables-0.5.log
>>
>>
>> The corresponding log is attached.
>>
>>
>> Does anyone have any suggestions on how to fix this?
>>
>> - David
>>
>>
>> --
> 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/ce30cd4c-f431-4eb8-ac35-f4ab5e941e49n%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/CAEQuuAVnCueYBMNQWXYrcE5kvmYJvfaifKq-nz6UAkOsNUEkyw%40mail.gmail.com.


[sage-support] Re: Problem with plot

2023-12-16 Thread Emmanuel Charpentier


Le mercredi 13 décembre 2023 à 12:35:42 UTC+1, Philippe Delavalade a écrit :

Hi. 

I'm using sage-10.2 with linux (slint-15.0 based on slackware 15.0) on the 
console. 

When I run 
p=plot(x^2); p 
there is no graphics on the screen, just the line 
Launched png viewer for Graphics object consisting of 1 graphics primitive 

Is something missing in my configuration ?

Maybe : WorksForMe(TM) on Debian testing installed from source. How did you 
obtain your installation ?

Moreover, in help(plot), the command sphinx_plot is often used but on my 
machine I obtain 
NameError: name 'sphinx_plot' is not defined

Googling sagemath sphinx_plot leads you to the General conventions 
 chapter of 
the Sage developer Guide 
, where it appears 
that this function is part of the Sphinx system of documentation 
(especially the mechanisms extracting viewable/printable documentation from 
Python docstrings).

This function appears to trigger the output of (some relevant form of) 
graphics in the desired documentation. Since help gives you a *text* form 
of the docstring, which does not have any useful form of graphics, what you 
get in the output is the (unexecuted) function call.

A complete explanation probably exists in the Sphinx documentation, which 
I’m currently too lazy to chase on the ‘Net…

HTH,



Thanks for help. 

-- 
Philippe 

​

-- 
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/5f5cf9f2-4bf5-4558-8417-6e31c50858d7n%40googlegroups.com.