Your message dated Fri, 12 Nov 2021 21:33:15 +0100
with message-id <[email protected]>
and subject line Re: 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
has caused the Debian Bug report #999533,
regarding 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
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
999533: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=999533
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-cartopy
Version: 0.20.1+dfsg-1
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
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
<[email protected]>.

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.

--- End Message ---
--- Begin Message ---
On 11/12/21 08:19, Lucas Nussbaum wrote:
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)

This is not a bug in cartopy, matplotlib tries to use ImageTk but the package is not installed.

python3-matplotlib only Recommends python3-pil.imagetk, this should be a Depends.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1

--- End Message ---

Reply via email to