Replacing cypari2 with a local source installation

43 views
Skip to first unread message

Risan

unread,
Jul 14, 2025, 8:08:34 AMJul 14
to sage-...@googlegroups.com
Dear sage-devel,

I am attempting to test a cypari2 change (https://github.com/sagemath/cypari2/pull/180), which involves changing the Gen structure, on Sagemath. A simple:

sage -pip install ~/cypari2

did not work as it was causing the following error:

<frozen importlib._bootstrap>:488: RuntimeWarning: cypari2.gen.Gen size changed, may indicate binary incompatibility. Expected 56 from C header, got 64 from PyObject

when running:

sage -c "import cypari2"

However, I did not get the same warning when using a normal non-sage pip install.

Could anyone help point me to the right way to do this instead?

Thank you in advance.

--
Best regards,
Risan

Risan

unread,
Jul 14, 2025, 11:19:53 AMJul 14
to Dima Pasechnik, sage-...@googlegroups.com
Thank you for your reply! I provided more details in the PR.

On Tue, Jul 15, 2025 at 12:06 AM Dima Pasechnik <dim...@gmail.com> wrote:
Hi,
how is your Sagemath installed?
I suppose this is related to testing
https://github.com/sagemath/cypari2/pull/180 - let's discuss there.
I'm currently also trying to test this PR locally.

Dima
> --
> 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 visit https://groups.google.com/d/msgid/sage-devel/CAG9sLK9Lmik6ZBt0xN004jN_jBL%3DqRh4ZnOUDkey3%3DY1GZVPmQ%40mail.gmail.com.


--
Best regards,
Risan

Dima Pasechnik

unread,
Jul 14, 2025, 11:24:07 AMJul 14
to sage-...@googlegroups.com, #RISAN#
Hi,
how is your Sagemath installed?
I suppose this is related to testing
https://github.com/sagemath/cypari2/pull/180 - let's discuss there.
I'm currently also trying to test this PR locally.

Dima

On Mon, Jul 14, 2025 at 7:08 AM Risan <ptrr...@gmail.com> wrote:
>
Reply all
Reply to author
Forward
0 new messages