Bug#1020456: cypari2 FTBFS with PARI 2.15.0

2022-11-02 Thread Bill Allombert
On Fri, Oct 28, 2022 at 07:26:09PM +, Tobias Hansen wrote:
> Thanks! I will apply the patch once the pari version with the other fixes is 
> uploaded.

Great! I uploaded it today (pari 2.15.1~pre1-1). I hope it will be OK.

Cheers,
-- 
Bill. 

Imagine a large red swirl here. 

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1020456: cypari2 FTBFS with PARI 2.15.0

2022-10-28 Thread Tobias Hansen
Thanks! I will apply the patch once the pari version with the other fixes is 
uploaded.

Best wishes,
Tobias

On 10/26/22 10:55, Bill Allombert wrote:
> Also I consider the error message change
> - PariError: call_python: forbidden multiplication t_VEC (1 elts) * t_VEC 
> (1 elts)
> + PariError: call_python: incorrect type in qfbcomp (t_VEC)
> to be a bug in PARI/GP that I will fix too.
>
> For the others, I join a patch.
>
> Cheers,

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1020456: cypari2 FTBFS with PARI 2.15.0

2022-10-26 Thread Bill Allombert
On Wed, Oct 05, 2022 at 10:41:58PM +0200, Bill Allombert wrote:
> On Wed, Sep 21, 2022 at 11:57:40PM +0300, Adrian Bunk wrote:
> > Testing cypari2.gen
> > **
> > File 
> > "/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/gen.cpython-310-x86_64-linux-gnu.so",
> >  line ?, in cypari2.gen.Gen.__complex__
> > Failed example:
> > complex(g)
> > Differences (ndiff with -expected +actual):
> > - (2.2847006554165614+0j)
> > + (1.118033988749895+0j)
> > **
> > File 
> > "/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/gen.cpython-310-x86_64-linux-gnu.so",
> >  line ?, in cypari2.gen.__test__.Gen.__complex__ (line 2006)
> > Failed example:
> > complex(g)
> > Differences (ndiff with -expected +actual):
> > - (2.2847006554165614+0j)
> > + (1.118033988749895+0j)
> > **
> > 2 items had failures:
> >1 of  13 in cypari2.gen.Gen.__complex__
> >1 of  13 in cypari2.gen.__test__.Gen.__complex__ (line 2006)
> 
> This one is a bug in PARI/GP, that has been fixed in master.
> Once we get to the point it is the only remaining show stopper, I will
> update PARI/GP in sid.

Also I consider the error message change
- PariError: call_python: forbidden multiplication t_VEC (1 elts) * t_VEC 
(1 elts)
+ PariError: call_python: incorrect type in qfbcomp (t_VEC)
to be a bug in PARI/GP that I will fix too.

For the others, I join a patch.

Cheers,
-- 
Bill. 

Imagine a large red swirl here. 
Index: cypari2-2.1.2/cypari2/handle_error.pyx
===
--- cypari2-2.1.2.orig/cypari2/handle_error.pyx
+++ cypari2-2.1.2/cypari2/handle_error.pyx
@@ -123,7 +123,7 @@ class PariError(RuntimeError):
 >>> pari('!@#$%^&*()')
 Traceback (most recent call last):
 ...
-PariError: syntax error, unexpected $undefined
+PariError: syntax error, unexpected invalid token
 """
 return self.errtext().rstrip(" .:")
 
Index: cypari2-2.1.2/cypari2/pari_instance.pyx
===
--- cypari2-2.1.2.orig/cypari2/pari_instance.pyx
+++ cypari2-2.1.2/cypari2/pari_instance.pyx
@@ -1325,9 +1325,9 @@ cdef class Pari(Pari_auto):
 >>> pari = cypari2.Pari()
 >>> x = pari('x')
 >>> pari.genus2red([-5*x**5, x**3 - 2*x**2 - 2*x + 1])
-[1416875, [2, -1; 5, 4; 2267, 1], x^6 - 240*x^4 - 2550*x^3 - 11400*x^2 
- 24100*x - 19855, [[2, [2, [Mod(1, 2)]], []], [5, [1, []], ["[V] page 156", 
[3]]], [2267, [2, [Mod(432, 2267)]], ["[I{1-0-0}] page 170", []
+[1416875, [2, -1; 5, 4; 2267, 1], [-6*x^5 + 2*x^3 - x, x^3 + 1], [[2, 
[2, [Mod(1, 2)]], []], [5, [1, []], ["[V] page 156", [3]]], [2267, [2, 
[Mod(432, 2267)]], ["[I{1-0-0}] page 170", []
 >>> pari.genus2red([-5*x**5, x**3 - 2*x**2 - 2*x + 1],2267)
-[2267, Mat([2267, 1]), x^6 - 24*x^5 + 10*x^3 - 4*x + 1, [2267, [2, 
[Mod(432, 2267)]], ["[I{1-0-0}] page 170", [
+[2267, Mat([2267, 1]), [-6*x^5 + 2*x^3 - x, x^3 + 1], [2267, [2, 
[Mod(432, 2267)]], ["[I{1-0-0}] page 170", [
 """
 cdef Gen t0 = objtogen(P)
 if p is None:
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1020456: cypari2 FTBFS with PARI 2.15.0

2022-10-05 Thread Bill Allombert
On Wed, Sep 21, 2022 at 11:57:40PM +0300, Adrian Bunk wrote:
> Testing cypari2.gen
> **
> File 
> "/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/gen.cpython-310-x86_64-linux-gnu.so",
>  line ?, in cypari2.gen.Gen.__complex__
> Failed example:
> complex(g)
> Differences (ndiff with -expected +actual):
> - (2.2847006554165614+0j)
> + (1.118033988749895+0j)
> **
> File 
> "/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/gen.cpython-310-x86_64-linux-gnu.so",
>  line ?, in cypari2.gen.__test__.Gen.__complex__ (line 2006)
> Failed example:
> complex(g)
> Differences (ndiff with -expected +actual):
> - (2.2847006554165614+0j)
> + (1.118033988749895+0j)
> **
> 2 items had failures:
>1 of  13 in cypari2.gen.Gen.__complex__
>1 of  13 in cypari2.gen.__test__.Gen.__complex__ (line 2006)

This one is a bug in PARI/GP, that has been fixed in master.
Once we get to the point it is the only remaining show stopper, I will
update PARI/GP in sid.

Cheers,
-- 
Bill. 

Imagine a large red swirl here. 

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#1020456: cypari2 FTBFS with PARI 2.15.0

2022-10-01 Thread Bill Allombert
On Wed, Sep 21, 2022 at 11:57:40PM +0300, Adrian Bunk wrote:
> Source: cypari2
> Version: 2.1.2-2
> Severity: serious
> Tags: ftbfs bookworm sid
> 
> https://buildd.debian.org/status/logs.php?pkg=cypari2&ver=2.1.2-2%2Bb3
> 
> Differences (ndiff with -expected +actual):
>   Traceback (most recent call last):
> - ...
> - PariError: call_python: forbidden multiplication t_VEC (1 elts) * t_VEC 
> (1 elts)
> +   File "/usr/lib/python3.10/doctest.py", line 1350, in __run
> + exec(compile(example.source, filename, "single",
> +   File " 145)[18]>", line 1, in 
> + mul([1], [2])
> +   File "cypari2/gen.pyx", line 4107, in cypari2.gen.Gen.__call__
> + sig_on()
> +   File "cypari2/handle_error.pyx", line 213, in 
> cypari2.handle_error._pari_err_handle
> + raise PariError(errnum, pari_error_string, clone_gen_noclear(E))
> + PariError: call_python: incorrect type in qfbcomp (t_VEC)
a

Some explanation for the failure.

PARI has merged t_QFI and t_QFR to a new type t_QFB. This explains this error.
This might requires some actual fix in cpari2.

> **
> File 
> "/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/closure.cpython-310-x86_64-linux-gnu.so",
>  line ?, in cypari2.closure.objtoclosure
> Failed example:
> mul([1], [2])
> Differences (ndiff with -expected +actual):
>   Traceback (most recent call last):
> - ...
> - PariError: call_python: forbidden multiplication t_VEC (1 elts) * t_VEC 
> (1 elts)
> +   File "/usr/lib/python3.10/doctest.py", line 1350, in __run
> + exec(compile(example.source, filename, "single",
> +   File "", line 1, in 
> + mul([1], [2])
> +   File "cypari2/gen.pyx", line 4107, in cypari2.gen.Gen.__call__
> + sig_on()
> +   File "cypari2/handle_error.pyx", line 213, in 
> cypari2.handle_error._pari_err_handle
> + raise PariError(errnum, pari_error_string, clone_gen_noclear(E))
> + PariError: call_python: incorrect type in qfbcomp (t_VEC)

Idem

> **
> 2 items had failures:
>1 of  19 in cypari2.closure.__test__.objtoclosure (line 145)
>1 of  19 in cypari2.closure.objtoclosure
> ***Test Failed*** 2 failures.
> 
> Testing cypari2.convert
> 
> Testing cypari2.gen
> **
> File 
> "/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/gen.cpython-310-x86_64-linux-gnu.so",
>  line ?, in cypari2.gen.Gen.__complex__
> Failed example:
> complex(g)
> Differences (ndiff with -expected +actual):
> - (2.2847006554165614+0j)
> + (1.118033988749895+0j)
> **
> File 
> "/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/gen.cpython-310-x86_64-linux-gnu.so",
>  line ?, in cypari2.gen.__test__.Gen.__complex__ (line 2006)
> Failed example:
> complex(g)
> Differences (ndiff with -expected +actual):
> - (2.2847006554165614+0j)
> + (1.118033988749895+0j)
> **
> 2 items had failures:
>1 of  13 in cypari2.gen.Gen.__complex__
>1 of  13 in cypari2.gen.__test__.Gen.__complex__ (line 2006)
> ***Test Failed*** 2 failures.
> 
> Testing cypari2.handle_error
> **
> File 
> "/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/handle_error.cpython-310-x86_64-linux-gnu.so",
>  line ?, in cypari2.handle_error.__test__.PariError.__str__ (line 104)
> Failed example:
> pari('!@#$%^&*()')
> Differences (ndiff with -expected +actual):
>   Traceback (most recent call last):
> - ...
> +   File "/usr/lib/python3.10/doctest.py", line 1350, in __run
> + exec(compile(example.source, filename, "single",
> +   File " 104)[3]>", line 1, in 
> + pari('!@#$%^&*()')
> +   File "cypari2/pari_instance.pyx", line 832, in 
> cypari2.pari_instance.Pari.__call__
> + cdef Gen g = objtogen(s)
> +   File "cypari2/gen.pyx", line 4810, in cypari2.gen.objtogen
> + cdef GEN g = PyObject_AsGEN(s)
> +   File "cypari2/convert.pyx", line 557, in 
> cypari2.convert.PyObject_AsGEN
> + sig_on()
> +   File "cypari2/handle_error.pyx", line 213, in 
> cypari2.handle_error._pari_err_handle
> + raise PariError(errnum, pari_error_string, clone_gen_noclear(E))
> - PariError: syntax error, unexpected $undefined
> ? --   ^
> + PariError: syntax error, unexpected invalid token
> ?   + ^

This is actuall

Bug#1020456: cypari2 FTBFS with PARI 2.15.0

2022-09-21 Thread Adrian Bunk
Source: cypari2
Version: 2.1.2-2
Severity: serious
Tags: ftbfs bookworm sid

https://buildd.debian.org/status/logs.php?pkg=cypari2&ver=2.1.2-2%2Bb3

...
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<>'
python3 tests/rundoctest.py
  ***   user warning: test
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 197450664 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 241740752 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 248010168 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 252956360 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 258607552 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 209447264 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 215847936 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 190613912 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 178484864 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",
/usr/lib/python3.10/doctest.py:1350: RuntimeWarning: cypari2 leaked 180449432 
bytes on the PARI stack
  exec(compile(example.source, filename, "single",

Testing cypari2.closure
**
File 
"/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/closure.cpython-310-x86_64-linux-gnu.so",
 line ?, in cypari2.closure.__test__.objtoclosure (line 145)
Failed example:
mul([1], [2])
Differences (ndiff with -expected +actual):
  Traceback (most recent call last):
- ...
- PariError: call_python: forbidden multiplication t_VEC (1 elts) * t_VEC 
(1 elts)
+   File "/usr/lib/python3.10/doctest.py", line 1350, in __run
+ exec(compile(example.source, filename, "single",
+   File "", 
line 1, in 
+ mul([1], [2])
+   File "cypari2/gen.pyx", line 4107, in cypari2.gen.Gen.__call__
+ sig_on()
+   File "cypari2/handle_error.pyx", line 213, in 
cypari2.handle_error._pari_err_handle
+ raise PariError(errnum, pari_error_string, clone_gen_noclear(E))
+ PariError: call_python: incorrect type in qfbcomp (t_VEC)
**
File 
"/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/closure.cpython-310-x86_64-linux-gnu.so",
 line ?, in cypari2.closure.objtoclosure
Failed example:
mul([1], [2])
Differences (ndiff with -expected +actual):
  Traceback (most recent call last):
- ...
- PariError: call_python: forbidden multiplication t_VEC (1 elts) * t_VEC 
(1 elts)
+   File "/usr/lib/python3.10/doctest.py", line 1350, in __run
+ exec(compile(example.source, filename, "single",
+   File "", line 1, in 
+ mul([1], [2])
+   File "cypari2/gen.pyx", line 4107, in cypari2.gen.Gen.__call__
+ sig_on()
+   File "cypari2/handle_error.pyx", line 213, in 
cypari2.handle_error._pari_err_handle
+ raise PariError(errnum, pari_error_string, clone_gen_noclear(E))
+ PariError: call_python: incorrect type in qfbcomp (t_VEC)
**
2 items had failures:
   1 of  19 in cypari2.closure.__test__.objtoclosure (line 145)
   1 of  19 in cypari2.closure.objtoclosure
***Test Failed*** 2 failures.

Testing cypari2.convert

Testing cypari2.gen
**
File 
"/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/gen.cpython-310-x86_64-linux-gnu.so",
 line ?, in cypari2.gen.Gen.__complex__
Failed example:
complex(g)
Differences (ndiff with -expected +actual):
- (2.2847006554165614+0j)
+ (1.118033988749895+0j)
**
File 
"/<>/.pybuild/cpython3_3.10_cypari2/build/cypari2/gen.cpython-310-x86_64-linux-gnu.so",
 line ?, in cypari2.gen.__test__.Gen.__complex__ (line 2006)
Failed example:
complex(g)
Differences (ndiff with -expected +actual):
- (2.2847006554165614+0j)
+ (1.118033988749895+0j)
*