Source: sorl-thumbnail
Version: 12.9.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231027 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> py3versions: no X-Python3-Version in control file, using supported versions
> mkdir -p tmp-locales
> localedef -i en_US -c -f UTF-8 tmp-locales/en_US.UTF-8
> set -e; \
> for python in python3.11; do \
>     for name in pil pgmagick imagemagick graphicsmagick; do \
>         LOCPATH=/<<PKGBUILDDIR>>/tmp-locales LC_ALL=en_US.UTF-8 PYTHONPATH=. 
> LOCAL_BUILD=1 DJANGO_SETTINGS_MODULE=tests.settings.$name $python -m pytest ; 
> \
>     done; \
> done
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0
> django: settings: tests.settings.pil (from env)
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> testpaths: tests
> plugins: django-4.5.2
> collected 76 items
> 
> tests/thumbnail_tests/test_alternative_resolutions.py .                  [  
> 1%]
> tests/thumbnail_tests/test_backends.py ............                      [ 
> 17%]
> tests/thumbnail_tests/test_commands.py ....                              [ 
> 22%]
> tests/thumbnail_tests/test_engines.py ...........................ss      [ 
> 60%]
> tests/thumbnail_tests/test_filters.py s.s.                               [ 
> 65%]
> tests/thumbnail_tests/test_storage.py ....                               [ 
> 71%]
> tests/thumbnail_tests/test_templatetags.py ........ss.....               [ 
> 90%]
> tests/thumbnail_tests/test_admin.py .                                    [ 
> 92%]
> tests/thumbnail_tests/test_kvstore.py .                                  [ 
> 93%]
> tests/thumbnail_tests/test_parsers.py .....                              
> [100%]
> 
> =============================== warnings summary 
> ===============================
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:241
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:241: 
> RemovedInDjango50Warning: The default value of USE_TZ will change from False 
> to True in Django 5.0. Set USE_TZ to False in your project settings if you 
> want to keep the current default behavior.
>     warnings.warn(
> 
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:278
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:278: 
> RemovedInDjango51Warning: The DEFAULT_FILE_STORAGE setting is deprecated. Use 
> STORAGES instead.
>     warnings.warn(DEFAULT_FILE_STORAGE_DEPRECATED_MSG, 
> RemovedInDjango51Warning)
> 
> sorl/__init__.py:1
>   /<<PKGBUILDDIR>>/sorl/__init__.py:1: DeprecationWarning: pkg_resources is 
> deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>     from pkg_resources import get_distribution, DistributionNotFound
> 
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:193
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:193: 
> RemovedInDjango51Warning: The DEFAULT_FILE_STORAGE setting is deprecated. Use 
> STORAGES instead.
>     self._show_deprecation_warning(
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ================== 70 passed, 6 skipped, 4 warnings in 1.60s 
> ===================
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0
> django: settings: tests.settings.pgmagick (from env)
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> testpaths: tests
> plugins: django-4.5.2
> collected 76 items
> 
> tests/thumbnail_tests/test_alternative_resolutions.py .                  [  
> 1%]
> tests/thumbnail_tests/test_backends.py ............                      [ 
> 17%]
> tests/thumbnail_tests/test_commands.py ....                              [ 
> 22%]
> tests/thumbnail_tests/test_engines.py .............s......s...s..ss      [ 
> 60%]
> tests/thumbnail_tests/test_filters.py s.s.                               [ 
> 65%]
> tests/thumbnail_tests/test_storage.py ....                               [ 
> 71%]
> tests/thumbnail_tests/test_templatetags.py ........ss.....               [ 
> 90%]
> tests/thumbnail_tests/test_admin.py .                                    [ 
> 92%]
> tests/thumbnail_tests/test_kvstore.py .                                  [ 
> 93%]
> tests/thumbnail_tests/test_parsers.py .....                              
> [100%]
> 
> =============================== warnings summary 
> ===============================
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:241
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:241: 
> RemovedInDjango50Warning: The default value of USE_TZ will change from False 
> to True in Django 5.0. Set USE_TZ to False in your project settings if you 
> want to keep the current default behavior.
>     warnings.warn(
> 
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:278
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:278: 
> RemovedInDjango51Warning: The DEFAULT_FILE_STORAGE setting is deprecated. Use 
> STORAGES instead.
>     warnings.warn(DEFAULT_FILE_STORAGE_DEPRECATED_MSG, 
> RemovedInDjango51Warning)
> 
> sorl/__init__.py:1
>   /<<PKGBUILDDIR>>/sorl/__init__.py:1: DeprecationWarning: pkg_resources is 
> deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>     from pkg_resources import get_distribution, DistributionNotFound
> 
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:193
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:193: 
> RemovedInDjango51Warning: The DEFAULT_FILE_STORAGE setting is deprecated. Use 
> STORAGES instead.
>     self._show_deprecation_warning(
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ================== 67 passed, 9 skipped, 4 warnings in 1.36s 
> ===================
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0
> django: settings: tests.settings.imagemagick (from env)
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> testpaths: tests
> plugins: django-4.5.2
> collected 76 items
> 
> tests/thumbnail_tests/test_alternative_resolutions.py .                  [  
> 1%]
> tests/thumbnail_tests/test_backends.py ............                      [ 
> 17%]
> tests/thumbnail_tests/test_commands.py ....                              [ 
> 22%]
> tests/thumbnail_tests/test_engines.py .............s......s...s..ss      [ 
> 60%]
> tests/thumbnail_tests/test_filters.py s.s.                               [ 
> 65%]
> tests/thumbnail_tests/test_storage.py ....                               [ 
> 71%]
> tests/thumbnail_tests/test_templatetags.py ....F...ss.....               [ 
> 90%]
> tests/thumbnail_tests/test_admin.py .                                    [ 
> 92%]
> tests/thumbnail_tests/test_kvstore.py .                                  [ 
> 93%]
> tests/thumbnail_tests/test_parsers.py .....                              
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ______________________ TemplateTestCaseA.test_orientation 
> ______________________
> 
> self = <tests.thumbnail_tests.test_templatetags.TemplateTestCaseA 
> testMethod=test_orientation>
> 
>     def test_orientation(self):
>         ref = Image.open(os.path.join(DATA_DIR, '1_topleft.jpg'))
>         top = ref.getpixel((14, 7))
>         left = ref.getpixel((7, 14))
>         engine = PILEngine()
>     
>         def epsilon(x, y):
>             if isinstance(x, (tuple, list)):
>                 x = sum(x) / len(x)
>             if isinstance(y, (tuple, list)):
>                 y = sum(y) / len(y)
>             return abs(x - y)
>     
>         data_images = (
>             '1_topleft.jpg',
>             '2_topright.jpg',
>             '3_bottomright.jpg',
>             '4_bottomleft.jpg',
>             '5_lefttop.jpg',
>             '6_righttop.jpg',
>             '7_rightbottom.jpg',
>             '8_leftbottom.jpg'
>         )
>     
>         for name in data_images:
>             th = self.BACKEND.get_thumbnail('data/%s' % name, '30x30')
>             im = engine.get_image(th)
>     
>             self.assertLess(epsilon(top, im.getpixel((14, 7))), 10)
> >           self.assertLess(epsilon(left, im.getpixel((7, 14))), 10)
> E           AssertionError: 62 not less than 10
> 
> tests/thumbnail_tests/test_templatetags.py:111: AssertionError
> ------------------------------ Captured log call 
> -------------------------------
> DEBUG    slog:storage.py:49 exists: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:25 open: data/1_topleft.jpg
> DEBUG    slog:storage.py:29 save: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:37 get_available_name: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:49 exists: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:25 open: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> =============================== warnings summary 
> ===============================
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:241
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:241: 
> RemovedInDjango50Warning: The default value of USE_TZ will change from False 
> to True in Django 5.0. Set USE_TZ to False in your project settings if you 
> want to keep the current default behavior.
>     warnings.warn(
> 
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:278
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:278: 
> RemovedInDjango51Warning: The DEFAULT_FILE_STORAGE setting is deprecated. Use 
> STORAGES instead.
>     warnings.warn(DEFAULT_FILE_STORAGE_DEPRECATED_MSG, 
> RemovedInDjango51Warning)
> 
> sorl/__init__.py:1
>   /<<PKGBUILDDIR>>/sorl/__init__.py:1: DeprecationWarning: pkg_resources is 
> deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>     from pkg_resources import get_distribution, DistributionNotFound
> 
> ../../../usr/lib/python3/dist-packages/django/conf/__init__.py:193
>   /usr/lib/python3/dist-packages/django/conf/__init__.py:193: 
> RemovedInDjango51Warning: The DEFAULT_FILE_STORAGE setting is deprecated. Use 
> STORAGES instead.
>     self._show_deprecation_warning(
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED 
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseA::test_orientation
> ============= 1 failed, 66 passed, 9 skipped, 4 warnings in 4.98s 
> ==============
> make[1]: *** [debian/rules:20: override_dh_auto_test] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/10/27/sorl-thumbnail_12.9.0-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231027;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231027&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to