Bug#1094696: FTBFS on all architectures

Adrian Bunk bunk at debian.org
Thu Jan 30 12:59:55 GMT 2025


On Thu, Jan 30, 2025 at 11:25:32AM +0100, Stéphane Glondu wrote:
> Source: plplot
> Version: 5.15.0+dfsg2-12
> Severity: serious
> Tags: ftbfs
> User: debian-ocaml-maint at lists.debian.org
> Usertags: ocaml-5.3.0-transition
> 
> Dear Maintainer,
> 
> plplot FTBFS on all architectures:
> 
>   https://buildd.debian.org/status/package.php?p=plplot
> 
> Note that a binNMU was triggered as part of the OCaml transition, but
> the failure seems unrelated to OCaml (rather related to numpy).

Attached is a fix for the initial error.

But it fails later with the next error (also numpy related):

...
Generate python results for svg device
cd /tmp/plplot-5.15.0+dfsg2/obj-x86_64-linux-gnu/examples && env EXAMPLES_PREFIX=/tmp/plplot-5.15.0+dfsg2/obj-x86_64-linux-gnu/examples SRC_EXAMPLES_PREFIX=/tmp/plplot-5.15.0+dfsg2/examples OUTPUT_DIR=/tmp/plplot-5.15.0+dfsg2/obj-x86_64-linux-gnu/examples/test_examples_output_dir /bin/bash /tmp/plplot-5.15.0+dfsg2/obj-x86_64-linux-gnu/plplot_test/plplot-test.sh --verbose --front-end=python --device=svg
Testing front-end python
x00
x01
x02
x03
x04
x05
x06
x07
x08
Traceback (most recent call last):
  File "/tmp/plplot-5.15.0+dfsg2/obj-x86_64-linux-gnu/examples/python/x08", line 37, in <module>
    x08.main(w)
    ~~~~~~~~^^^
  File "/tmp/plplot-5.15.0+dfsg2/obj-x86_64-linux-gnu/examples/python/x08.py", line 107, in main
    square_root = sqrt(1. - min(1., ((double(i) - x0)/a)**2))
                            ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/_core/fromnumeric.py", line 3302, in min
    return _wrapreduction(a, np.minimum, 'min', axis, None, out,
                          keepdims=keepdims, initial=initial, where=where)
  File "/usr/lib/python3/dist-packages/numpy/_core/fromnumeric.py", line 86, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'numpy.float64' object cannot be interpreted as an integer
make[5]: *** [examples/CMakeFiles/test_python_svg.dir/build.make:440: 
examples/test_examples_output_dir/x00p01.svg] Error 1


> Cheers,

cu
Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numpy2.patch
Type: text/x-diff
Size: 1091 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20250130/e13b897e/attachment.patch>


More information about the debian-science-maintainers mailing list