Bug#999533: python-cartopy: FTBFS with matplotlib 3.5 (in experimental): dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit code 13

Lucas Nussbaum lucas at debian.org
Fri Nov 12 07:19:23 GMT 2021


Source: python-cartopy
Version: 0.20.1+dfsg-1
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-matplotlib35

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64, using matplotlib 3.5 currently in experimental. This version
will soon be uploaded to unstable.

If you have questions about this, please contact Sandro Tosi
<morph at debian.org>.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> xvfb-run -a -n 1 -s "-screen 0 1280x1024x24 -dpi 96" dh_auto_test
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_cartopy/build; python3.9 -m pytest --pyargs -m "not network and not natural_earth"
> ============================= test session starts ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 0 items / 1 error
> 
> ==================================== ERRORS ====================================
> ________________________ ERROR collecting test session _________________________
> /usr/lib/python3.9/importlib/__init__.py:127: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> <frozen importlib._bootstrap>:1030: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1007: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:972: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:228: in _call_with_frames_removed
>     ???
> <frozen importlib._bootstrap>:1030: in _gcd_import
>     ???
> <frozen importlib._bootstrap>:1007: in _find_and_load
>     ???
> <frozen importlib._bootstrap>:986: in _find_and_load_unlocked
>     ???
> <frozen importlib._bootstrap>:680: in _load_unlocked
>     ???
> <frozen importlib._bootstrap_external>:850: in exec_module
>     ???
> <frozen importlib._bootstrap>:228: in _call_with_frames_removed
>     ???
> cartopy/tests/mpl/__init__.py:15: in <module>
>     import matplotlib.pyplot as plt
> /usr/lib/python3/dist-packages/matplotlib/pyplot.py:2226: in <module>
>     switch_backend(rcParams["backend"])
> /usr/lib/python3/dist-packages/matplotlib/pyplot.py:267: in switch_backend
>     class backend_mod(matplotlib.backend_bases._Backend):
> /usr/lib/python3/dist-packages/matplotlib/pyplot.py:268: in backend_mod
>     locals().update(vars(importlib.import_module(backend_name)))
> /usr/lib/python3.9/importlib/__init__.py:127: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> /usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py:1: in <module>
>     from . import _backend_tk
> /usr/lib/python3/dist-packages/matplotlib/backends/_backend_tk.py:14: in <module>
>     from PIL import Image, ImageTk
> E   ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)
> =========================== short test summary info ============================
> ERROR ../../.. - ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/l...
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> =============================== 1 error in 1.00s ===============================
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_cartopy/build; python3.9 -m pytest --pyargs -m "not network and not natural_earth"
> dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/http://qa-logs.debian.net/2021/11/numpy-matplotlib/matplotlib-exp/python-cartopy_0.20.1+dfsg-1_unstable_matplotlib-exp.log

If you reassign this bug to another package, please marking 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.



More information about the Pkg-grass-devel mailing list