Bug#1028040: pycoast: FTBFS with pillow 9.4.0
Graham Inggs
ginggs at debian.org
Fri Jan 6 07:51:18 GMT 2023
Source: pycoast
Version: 1.6.1+dfsg-1
Severity: serious
Tags: ftbfs
Hi Maintainer
As can be seen on reproducible builds [1], pycoast fails to build from
source since the upload of pillow 9.4.0. I've copied what I hope is
the relevant part of the log below.
Regards
Graham
[1] https://tests.reproducible-builds.org/debian/rb-pkg/pycoast.html
=================================== FAILURES ===================================
_____________________ TestContourWriterPIL.test_grid_germ ______________________
self = <pycoast.tests.test_pycoast.TestContourWriterPIL object at
0x7f210c9d1540>
def test_grid_germ(self):
"""Check that issue #26 is fixed."""
from pycoast import ContourWriterPIL
result_file = os.path.join(os.path.dirname(__file__), "grid_germ.png")
grid_img = Image.open(result_file)
grid_data = np.array(grid_img)
img = Image.new("RGB", (1024, 1024))
proj4_string = "+proj=stere +ellps=bessel +lat_0=90.0
+lon_0=5.0 +lat_ts=50.0 +a=6378144.0 +b=6356759.0"
area_extent = [-155100.436345, -4441495.37946, 868899.563655,
-3417495.37946]
area_def = (proj4_string, area_extent)
cw = ContourWriterPIL(gshhs_root_dir)
cw.add_coastlines(img, area_def, resolution="l", level=4)
font = ImageFont.truetype(os.path.join(os.path.dirname(__file__),
"test_data", "DejaVuSerif.ttf"), 16)
cw.add_grid(
img,
area_def,
(10.0, 10.0),
(2.0, 2.0),
font=font,
fill="yellow",
write_text=True,
outline="red",
minor_outline="white",
)
res = np.array(img)
> assert fft_metric(grid_data, res), "Writing of grid to germ failed"
E AssertionError: Writing of grid to germ failed
E assert False
E + where False = fft_metric(array([[[0, 0, 0],\n [0,
0, 0],\n [0, 0, 0],\n ...,\n [0, 0, 0],\n
[0, 0, 0],\n [0... [0, 0, 0],\n [0, 0, 0],\n
...,\n [0, 0, 0],\n [0, 0, 0],\n [0, 0, 0]]],
dtype=uint8), array([[[0, 0, 0],\n [0, 0, 0],\n [0, 0,
0],\n ...,\n [0, 0, 0],\n [0, 0, 0],\n
[0... [0, 0, 0],\n [0, 0, 0],\n ...,\n [0, 0,
0],\n [0, 0, 0],\n [0, 0, 0]]], dtype=uint8))
../../../pycoast/tests/test_pycoast.py:214: AssertionError
More information about the Pkg-grass-devel
mailing list