[Debian-med-packaging] Bug#999537: python-matplotlib-venn: FTBFS with matplotlib 3.5 (in experimental): dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13

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


Source: python-matplotlib-venn
Version: 0.11.6-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 --auto-servernum --server-args="-screen 0 1024x768x24" dh_auto_test
> 	pybuild --test --test-pytest -i python{version} -p 3.9
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_matplotlib-venn/build; python3.9 -m pytest 
> ============================= test session starts ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 0 items / 8 errors
> 
> ==================================== ERRORS ====================================
> _ ERROR collecting .pybuild/cpython3_3.9_matplotlib-venn/build/matplotlib_venn/__init__.py _
> matplotlib_venn/__init__.py:55: in <module>
>     from matplotlib_venn._venn2 import venn2, venn2_circles
> matplotlib_venn/_venn2.py:28: in <module>
>     from matplotlib.pyplot import gca
> /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)
> _ ERROR collecting .pybuild/cpython3_3.9_matplotlib-venn/build/matplotlib_venn/_arc.py _
> /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
>     ???
> matplotlib_venn/__init__.py:55: in <module>
>     from matplotlib_venn._venn2 import venn2, venn2_circles
> matplotlib_venn/_venn2.py:28: in <module>
>     from matplotlib.pyplot import gca
> /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)
> _ ERROR collecting .pybuild/cpython3_3.9_matplotlib-venn/build/matplotlib_venn/_common.py _
> /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
>     ???
> matplotlib_venn/__init__.py:55: in <module>
>     from matplotlib_venn._venn2 import venn2, venn2_circles
> matplotlib_venn/_venn2.py:28: in <module>
>     from matplotlib.pyplot import gca
> /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)
> _ ERROR collecting .pybuild/cpython3_3.9_matplotlib-venn/build/matplotlib_venn/_math.py _
> /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
>     ???
> matplotlib_venn/__init__.py:55: in <module>
>     from matplotlib_venn._venn2 import venn2, venn2_circles
> matplotlib_venn/_venn2.py:28: in <module>
>     from matplotlib.pyplot import gca
> /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)
> _ ERROR collecting .pybuild/cpython3_3.9_matplotlib-venn/build/matplotlib_venn/_region.py _
> /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
>     ???
> matplotlib_venn/__init__.py:55: in <module>
>     from matplotlib_venn._venn2 import venn2, venn2_circles
> matplotlib_venn/_venn2.py:28: in <module>
>     from matplotlib.pyplot import gca
> /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)
> _ ERROR collecting .pybuild/cpython3_3.9_matplotlib-venn/build/matplotlib_venn/_util.py _
> /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
>     ???
> matplotlib_venn/__init__.py:55: in <module>
>     from matplotlib_venn._venn2 import venn2, venn2_circles
> matplotlib_venn/_venn2.py:28: in <module>
>     from matplotlib.pyplot import gca
> /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)
> _ ERROR collecting .pybuild/cpython3_3.9_matplotlib-venn/build/matplotlib_venn/_venn2.py _
> matplotlib_venn/_venn2.py:28: in <module>
>     from matplotlib.pyplot import gca
> /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)
> _ ERROR collecting .pybuild/cpython3_3.9_matplotlib-venn/build/matplotlib_venn/_venn3.py _
> /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
>     ???
> matplotlib_venn/__init__.py:55: in <module>
>     from matplotlib_venn._venn2 import venn2, venn2_circles
> matplotlib_venn/_venn2.py:28: in <module>
>     from matplotlib.pyplot import gca
> /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 matplotlib_venn/__init__.py - ImportError: cannot import name 'ImageTk'...
> ERROR matplotlib_venn/_arc.py - ImportError: cannot import name 'ImageTk' fro...
> ERROR matplotlib_venn/_common.py - ImportError: cannot import name 'ImageTk' ...
> ERROR matplotlib_venn/_math.py - ImportError: cannot import name 'ImageTk' fr...
> ERROR matplotlib_venn/_region.py - ImportError: cannot import name 'ImageTk' ...
> ERROR matplotlib_venn/_util.py - ImportError: cannot import name 'ImageTk' fr...
> ERROR matplotlib_venn/_venn2.py - ImportError: cannot import name 'ImageTk' f...
> ERROR matplotlib_venn/_venn3.py - ImportError: cannot import name 'ImageTk' f...
> !!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!
> ============================== 8 errors in 1.49s ===============================
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_matplotlib-venn/build; python3.9 -m pytest 
> 	rm -fr -- /tmp/dh-xdg-rundir-rWz7BAUg
> dh_auto_test: error: pybuild --test --test-pytest -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-matplotlib-venn_0.11.6-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 Debian-med-packaging mailing list