Question about cysignals installation

27 views
Skip to first unread message

JC

unread,
Aug 16, 2023, 9:57:05 AMAug 16
to sage-support
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!
cysignals_output

Glen Whitney

unread,
Aug 27, 2023, 1:23:27 AMAug 27
to sage-support
I am observing extremely similar error messages, perhaps identical, on OpenSUSE Tumbleweed linux in Python 3.11.4, also attempting to install cysignals-1.11.2. As with the original post, the first seemingly substantive error message is
```
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      import sys
      from gc import collect
     
     
      cdef extern from "implementation.c":
          cysigs_t cysigs
          ^
      ------------------------------------------------------------
     
      src/cysignals/signals.pyx:39:4: 'cysigs_t' is not a type identifier
```
Hence I too would be interested in any help/guidance, thanks.

Nils Bruin

unread,
Aug 27, 2023, 3:22:15 AMAug 27
to sage-support
I think it was written elsewhere that cysignals has not been ported to cython 3.0.0 yet. In fact, sage as a whole hasn't been upgraded to compile with cython 3.0.0 yet.

Dima Pasechnik

unread,
Aug 27, 2023, 4:02:44 AMAug 27
to sage-s...@googlegroups.com
On Sun, Aug 27, 2023 at 10:22 AM Nils Bruin <nbr...@sfu.ca> wrote:
>
> I think it was written elsewhere that cysignals has not been ported to cython 3.0.0 yet. In fact, sage as a whole hasn't been upgraded to compile with cython 3.0.0 yet.

This part of Sage - cysignals+cypari2 - is not in a good shape.
Cypari2 leaks memory on serious computations, because reference
counting is not a good combo with Pari's memory model of putting
everything on stack, with caching.
Cysignals has a test which fails.

>
> On Wednesday, 16 August 2023 at 06:57:05 UTC-7 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-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/188ebeef-8ee7-44cb-861e-110d6079fad6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages