[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1002589: pyresample: (autopkgtest) needs update for python3.10: cannot import name 'ft2font' from partially

Source: pyresample
Version: 1.22.3-2
Severity: serious
X-Debbugs-CC: debian-ci@lists.debian.org
Tags: sid bookworm
User: debian-ci@lists.debian.org
Usertags: needs-update
User: debian-python@lists.debian.org
Usertags: python3.10
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.10 to the supported Python versions [0]. With a recent upload of python3-defaults the autopkgtest of pyresample fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python3-defaults       from testing    3.9.8-1
pyresample             from testing    1.22.3-2
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.10.html lists what's new in Python3.10, it may help to identify what needs to be updated.

More information about this bug and the reason for filing it can be found on


[0] https://bugs.debian.org/996584
[1] https://qa.debian.org/excuses.php?package=python3-defaults


=================================== FAILURES =================================== ___________________________ Test.test_add_gridlines ____________________________
/usr/lib/python3.10/unittest/mock.py:1366: in patched
    with self.decoration_helper(patched,
/usr/lib/python3.10/contextlib.py:135: in __enter__
    return next(self.gen)
/usr/lib/python3.10/unittest/mock.py:1348: in decoration_helper
    arg = exit_stack.enter_context(patching)
/usr/lib/python3.10/contextlib.py:492: in enter_context
    result = _cm_type.__enter__(cm)
/usr/lib/python3.10/unittest/mock.py:1421: in __enter__
    self.target = self.getter()
/usr/lib/python3.10/unittest/mock.py:1608: in <lambda>
    getter = lambda: _importer(target)
/usr/lib/python3.10/unittest/mock.py:1247: in _importer
    thing = __import__(import_path)
/usr/lib/python3/dist-packages/matplotlib/__init__.py:174: in <module>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    def _check_versions():
            # Quickfix to ensure Microsoft Visual C++ redistributable
        # DLLs are loaded before importing kiwisolver
      from . import ft2font
E ImportError: cannot import name 'ft2font' from partially initialized module 'matplotlib' (most likely due to a circular import) (/usr/lib/python3/dist-packages/matplotlib/__init__.py)

/usr/lib/python3/dist-packages/matplotlib/__init__.py:159: ImportError

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply to: