Re: [sage-devel] Re: Question about cysignals installation

2023-08-16 Thread JC
Thanks for your replies! So is there a way to let cysignals use an older 
version of Cython?

On Wednesday, August 16, 2023 at 12:36:49 PM UTC-4 Dima Pasechnik wrote:

> this seems to be the CI  error, something with setuptools version
>
> 2023-08-04T14:47:05.9834230Z config.status: creating src/config.h
> 2023-08-04T14:47:06.0117040Z config.status: creating 
> src/cysignals/cysignals_config.h
> 2023-08-04T14:47:06.0928570Z python3 -m pip -v install --no-index 
> --ignore-installed --no-deps .
> 2023-08-04T14:47:06.5479190Z Using pip 23.2.1 from 
> /Users/runner/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/pip
>  
> (python 3.10)
> 2023-08-04T14:47:06.7102480Z Processing 
> /Users/runner/work/cysignals/cysignals
> 2023-08-04T14:47:06.7169520Z Running command pip subprocess to install 
> build dependencies
> 2023-08-04T14:47:06.7169990Z Installing build dependencies: started
> 2023-08-04T14:47:07.3324070Z ERROR: Could not find a version that 
> satisfies the requirement setuptools>=40.8.0 (from versions: none)
> 2023-08-04T14:47:07.3326280Z ERROR: No matching distribution found for 
> setuptools>=40.8.0
> 2023-08-04T14:47:07.4154720Z error: subprocess-exited-with-error
> 2023-08-04T14:47:07.4155590Z   
> 2023-08-04T14:47:07.4156570Z × pip subprocess to install build 
> dependencies did not run successfully.
> 2023-08-04T14:47:07.4157390Z │ exit code: 1
>
>
> On Wed, 16 Aug 2023, 16:20 'Martin R. Albrecht' via sage-devel, <
> sage-...@googlegroups.com> wrote:
>
>> FWIW this PR https://github.com/sagemath/cysignals/pull/174 does this 
>> porting, I think.
>>
>> CI complaints but I don’t understand the complaint.
>>
>> On Wed, Aug 16 2023, Dima Pasechnik wrote:
>> > I think your cython is too new (3.0.0).
>> >
>> > Cysignals has not been ported to it yet.
>> >
>> > On Wednesday, August 16, 2023 at 4:00:24 PM UTC+1 JC wrote:
>> >
>> >> Dear Sage developers,
>> >>
>> >> I'm trying to install the cysignals 1.11.2 package in Python 3.9.7 
>> using 
>> >> pip (on a computer with macOS system and Apple M2 chip) and have 
>> already 
>> >> installed the prerequisite packages Cython and Sphinx, but still 
>> failed 
>> >> with some Cython compiling errors (please see the error message 
>> attached). 
>> >> Do you know what the problem might be and how I can fix it?
>> >>
>> >> Thank you very much!
>> >>
>>
>>
>> -- 
>>
>> _pgp: https://keybase.io/martinralbrecht
>> _www: https://malb.io
>> _prn: he/him or they/them
>>
>> -- 
>> 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/87jztvui7p.fsf%40googlemail.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/4545fa4a-35b1-4e5c-8e5b-fe14709889fan%40googlegroups.com.


Re: [sage-devel] Re: Question about cysignals installation

2023-08-16 Thread Dima Pasechnik
this seems to be the CI  error, something with setuptools version

2023-08-04T14:47:05.9834230Z config.status: creating src/config.h
2023-08-04T14:47:06.0117040Z config.status: creating
src/cysignals/cysignals_config.h
2023-08-04T14:47:06.0928570Z python3 -m pip -v install --no-index
--ignore-installed --no-deps .
2023-08-04T14:47:06.5479190Z Using pip 23.2.1 from
/Users/runner/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/pip
(python 3.10)
2023-08-04T14:47:06.7102480Z Processing
/Users/runner/work/cysignals/cysignals
2023-08-04T14:47:06.7169520Z Running command pip subprocess to install
build dependencies
2023-08-04T14:47:06.7169990Z Installing build dependencies: started
2023-08-04T14:47:07.3324070Z ERROR: Could not find a version that satisfies
the requirement setuptools>=40.8.0 (from versions: none)
2023-08-04T14:47:07.3326280Z ERROR: No matching distribution found for
setuptools>=40.8.0
2023-08-04T14:47:07.4154720Z error: subprocess-exited-with-error
2023-08-04T14:47:07.4155590Z
2023-08-04T14:47:07.4156570Z × pip subprocess to install build dependencies
did not run successfully.
2023-08-04T14:47:07.4157390Z │ exit code: 1


On Wed, 16 Aug 2023, 16:20 'Martin R. Albrecht' via sage-devel, <
sage-devel@googlegroups.com> wrote:

> FWIW this PR https://github.com/sagemath/cysignals/pull/174 does this
> porting, I think.
>
> CI complaints but I don’t understand the complaint.
>
> On Wed, Aug 16 2023, Dima Pasechnik wrote:
> > I think your cython is too new (3.0.0).
> >
> > Cysignals has not been ported to it yet.
> >
> > On Wednesday, August 16, 2023 at 4:00:24 PM UTC+1 JC wrote:
> >
> >> Dear Sage developers,
> >>
> >> I'm trying to install the cysignals 1.11.2 package in Python 3.9.7
> using
> >> pip (on a computer with macOS system and Apple M2 chip) and have
> already
> >> installed the prerequisite packages Cython and Sphinx, but still failed
> >> with some Cython compiling errors (please see the error message
> attached).
> >> Do you know what the problem might be and how I can fix it?
> >>
> >> Thank you very much!
> >>
>
>
> --
>
> _pgp: https://keybase.io/martinralbrecht
> _www: https://malb.io
> _prn: he/him or they/them
>
> --
> 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/87jztvui7p.fsf%40googlemail.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/CAAWYfq2M7gV6hriFL914KX5DYFpyKse_jp5MTbfDxXAtgqKQNQ%40mail.gmail.com.


Re: [sage-devel] Re: Question about cysignals installation

2023-08-16 Thread 'Martin R. Albrecht' via sage-devel
FWIW this PR https://github.com/sagemath/cysignals/pull/174 does this porting, 
I think.

CI complaints but I don’t understand the complaint.

On Wed, Aug 16 2023, Dima Pasechnik wrote:
> I think your cython is too new (3.0.0).
>
> Cysignals has not been ported to it yet.
>
> On Wednesday, August 16, 2023 at 4:00:24 PM UTC+1 JC wrote:
>
>> Dear Sage developers,
>>
>> I'm trying to install the cysignals 1.11.2 package in Python 3.9.7 using 
>> pip (on a computer with macOS system and Apple M2 chip) and have already 
>> installed the prerequisite packages Cython and Sphinx, but still failed 
>> with some Cython compiling errors (please see the error message attached). 
>> Do you know what the problem might be and how I can fix it?
>>
>> Thank you very much!
>>


-- 

_pgp: https://keybase.io/martinralbrecht
_www: https://malb.io
_prn: he/him or they/them

-- 
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/87jztvui7p.fsf%40googlemail.com.


[sage-devel] Re: Question about cysignals installation

2023-08-16 Thread Dima Pasechnik
I think your cython is too new (3.0.0).

Cysignals has not been ported to it yet.

On Wednesday, August 16, 2023 at 4:00:24 PM UTC+1 JC wrote:

> Dear Sage developers,
>
> I'm trying to install the cysignals 1.11.2 package in Python 3.9.7 using 
> pip (on a computer with macOS system and Apple M2 chip) and have already 
> installed the prerequisite packages Cython and Sphinx, but still failed 
> with some Cython compiling errors (please see the error message attached). 
> Do you know what the problem might be and how I can fix it?
>
> Thank you very much!
>

-- 
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/645c3bca-1e2c-4bb3-84c8-f71c33ce25den%40googlegroups.com.


[sage-devel] Question about cysignals installation

2023-08-16 Thread JC
Dear Sage developers,

I'm trying to install the cysignals 1.11.2 package in Python 3.9.7 using 
pip (on a computer with macOS system and Apple M2 chip) and have already 
installed the prerequisite packages Cython and Sphinx, but still failed 
with some Cython compiling errors (please see the error message attached). 
Do you know what the problem might be and how I can fix it?

Thank you very much!

-- 
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/a24a536d-02ef-42a2-acb0-ccdffbd88f69n%40googlegroups.com.


cysignals_output
Description: Binary data


[sage-devel] Re: Python PEP 703: no more Interpreter lock

2023-08-16 Thread Nils Bruin
On Wednesday, 16 August 2023 at 04:20:21 UTC-4 Thierry Dumont wrote:

With PEP 703, Cpython will move (slowly) to a non GIL implementation, 
allowing true multi-threading. It will take time (-> 3.15) and will be 
optional at the beginning. See: 
https://peps.python.org/pep-0703/ 
Which consequences for the Python part of Sage ? Are there many parts 
which could be multi-threaded ? 


For each library used, we'll need to assess if it can operate in a 
thread-safe way and if it currently is used in a thread-safe way. 

There are some parts that will be fundamentally very hard to make 
multi-threaded: maxima through the ECL binary interface, for instance, will 
probably fundamentally be problematic. The design of maxima is rather 
fundamentally not multi-threaded, but even if you lock maxima to only run 
in one thread, there will be problems to let it operate in a multi-threaded 
process: ECL itself does support multi-threaded operation, but requires 
signal handling control (*particularly* when it's multi-threaded, because 
signals are used to coordinate critical sections garbage collection), so 
currently upon entry of ECL, it swaps the signal handlers and upon exit 
swaps them back. As far as I know, signal handlers are on process level; 
not thread-local. So I don't think we'll be able to allow multiple threads 
safely whenever ECL is entered. Perhaps the ECL people are willing to 
consider developing other designs that are more appropriate for supporting 
ECL as a library (it is "embedded common lisp" after all) in a 
multi-threaded environment or perhaps we can integrate ECL's signal 
handling requirements more closely with those of sagemath so that switching 
the handlers is no longer required.

Note that in sage it is very hard to predict which libraries get invoked 
when running high-level code, because operations may get dispatched 
depending on implementation details of objects (which, for instance, for 
finite fields, may depend on the field size!)

-- 
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/297ca580-2f4e-4436-9d16-221625d9f027n%40googlegroups.com.


Re: [sage-devel] Python PEP 703: no more Interpreter lock

2023-08-16 Thread Dima Pasechnik
On Wed, 16 Aug 2023, 09:20 Thierry Dumont, 
wrote:

> With PEP 703, Cpython will move (slowly) to a non GIL implementation,
> allowing true multi-threading. It will take time (-> 3.15) and will be
> optional at the beginning. See:
>   https://peps.python.org/pep-0703/
> Which consequences for the Python part of Sage ? Are there many parts
> which could be multi-threaded ?
>

there are many parts, certainly - and it's a huge project, involving doing
novel research in algorithms, to use this.

One of the difficulties is that without the help from the language,
parallelism is a hard work to make good use of.

E.g. Pari/GP multithreading can't be described as huge success, as in some
cases it slows code down, rather than speeding it up.

GAP's multi-year attempts at HPC GAP cannot be described as success. It's
stalled at alpha-stage.

Dima


> t.d.
>
> --
> 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/7ea5fa49-2438-4f0b-b350-cbbb0852a6bb%40math.univ-lyon1.fr
> .
>

-- 
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/CAAWYfq3f%2BFUvCKVxA5PCM%3DZ89i9iJNetUptr0ABP0LRadyCx-A%40mail.gmail.com.


[sage-devel] Python PEP 703: no more Interpreter lock

2023-08-16 Thread Thierry Dumont
With PEP 703, Cpython will move (slowly) to a non GIL implementation, 
allowing true multi-threading. It will take time (-> 3.15) and will be 
optional at the beginning. See:

 https://peps.python.org/pep-0703/
Which consequences for the Python part of Sage ? Are there many parts 
which could be multi-threaded ?


t.d.

--
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/7ea5fa49-2438-4f0b-b350-cbbb0852a6bb%40math.univ-lyon1.fr.