Bug#1040630: gavodachs autopkg tests fail with pillow 10.0.0

2023-07-10 Thread Matthias Klose

reported upstream: https://github.com/python-pillow/Pillow/issues/7275



Bug#1040630: gavodachs autopkg tests fail with pillow 10.0.0

2023-07-10 Thread Markus Demleitner
On Sat, Jul 08, 2023 at 09:23:21AM +0200, Matthias Klose wrote:
> 110s From it/q:
> 110s  ERROR SCS has a valid response
> 110s  ERROR TAP query with pgsphere yields plausible result

Interesting -- this fails because the server that's being tested
does not come up because:

  module 'PIL.Image' has no attribute 'ANTIALIAS'

And indeed, it does not:

  >>> from PIL import Image
  >>> Image.ANTIALIAS
  Traceback (most recent call last):
File "", line 1, in 
  AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

Now... this seems to be a fairly breaking change (or at least I
suspect there's a lot of code with Image.ANTIALIAS out there).
However, when looking for resize or ANTIALIAS in the upstream
changelog, I don't see it mentioned:
https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst

That made me curious; ANTIALIAS as an alias of LANCZOS was dropped in
upstream commit f8e4e9c2dd94c6f4789639dd891b8a6d5fb16e14 with the
terse commit message "Added enums", where there's this:

  ...
  -LANCZOS = ANTIALIAS = 1

  -_filters_support = {BOX: 0.5, BILINEAR: 1.0, HAMMING: 1.0, BICUBIC: 2.0, 
LANCZOS: 3.0}
  +# resampling filters (also defined in Imaging.h)
  +class Resampling(IntEnum):
  +NEAREST = 0
  +BOX = 4
  +BILINEAR = 2
  +HAMMING = 5
  +BICUBIC = 3
  +LANCZOS = 1

Whether dropping the widely-documented ANTIALIAS alias was done
deliberately or not I can't say.  And hence I'll not decide whether or
not that's worth an upstream bug.  Instead, I'lljust move to LANCZOS
in DaCHS.

DaCHS users: if you urgently need the package on unstable, please use
our beta repo (https://soft.g-vo.org/repo) for the time being.
Release 2.8 wasn't our best one anyway.  Release 2.9 ought to come
around October-ish anyhow, at which time I'll close this bug (or
should be reminded to close it).



Bug#1040630: gavodachs autopkg tests fail with pillow 10.0.0

2023-07-08 Thread Matthias Klose

Package: src:gavodachs
Version: 2.8+dfsg-1
Severity: serious
Tags: sid trixie

see
https://ci.debian.net/data/autopkgtest/testing/amd64/g/gavodachs/35498774/log.gz

107s autopkgtest [17:24:20]: test integration-test: [---
108s Making data it/q#import_t5
108s Shipped 5/5
108s Create index t5_spoint_t5
108s Rows affected: 5
108s Making data it/q#import_t25
108s Shipped 25/30
108s Create index t25_spoint_t25
108s Rows affected: 25
110s EE
110s 2 of 2 bad.  avg 0.01, min 0.01, max 0.01. 178.7/s, par 1.3
110s From it/q:
110sERROR SCS has a valid response
110sERROR TAP query with pgsphere yields plausible result
110s
110s
111s autopkgtest [17:24:24]: test integration-test: ---]
111s integration-test FAIL non-zero exit status 1
111s autopkgtest [17:24:24]: test integration-test:  - - - - - - - - - - results 
- - - - - - - - - -

111s autopkgtest [17:24:24]:  summary
111s integration-test FAIL non-zero exit status 1