The problem here is that py3versions -r falls back to supported versions when no X-Python3-Versions header field is present in debian/control and pythonmagic is only built for the current version:
https://packages.debian.org/sid/amd64/python3-pythonmagick/filelist (shows only python3.8 objects) This is hidden behind redirecting stderr to /Dev/null. Solutions: Preferred: build for all supported python3 versions, change the -r to -s and ditch the redirect. Less preferred:. Change the -r to -d (default) and ditch the redirect. You may also need to allow stderr in debian/tests/control. Scott K On March 23, 2020 8:43:19 PM UTC, Paul Gevers <elb...@debian.org> wrote: >Source: pythonmagick >Version: 0.9.19-6 >X-Debbugs-CC: debian...@lists.debian.org >Severity: serious >User: debian...@lists.debian.org >Usertags: regression > >Dear maintainer(s), > >With a recent upload of pythonmagick the autopkgtest of pythonmagick >fails in testing when that autopkgtest is run with the binary packages >of pythonmagick from unstable. It passes when run with only packages >from testing. In tabular form: > > pass fail >pythonmagick from testing 0.9.19-6 >versioned deps [0] from testing from unstable >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 to testing [1]. Can >you please investigate the situation and fix it? > >More information about this bug and the reason for filing it can be >found on >https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation > >Paul > >[0] You can see what packages were added from the second line of the >log >file quoted below. The migration software adds source package from >unstable to the list if they are needed to install packages from >pythonmagick/0.9.19-6. I.e. due to versioned dependencies or >breaks/conflicts. >[1] https://qa.debian.org/excuses.php?package=pythonmagick > >https://ci.debian.net/data/autopkgtest/testing/amd64/p/pythonmagick/4632912/log.gz >autopkgtest [18:24:16]: test python3: [----------------------- >+ py3versions -r >+ cd /tmp/autopkgtest-lxc.eflqupv1/downtmp/autopkgtest_tmp >+ echo Testing with python3.7: >Testing with python3.7: >+ python3.7 >Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python3/dist-packages/PythonMagick/__init__.py", line >1, in <module> > from . import _PythonMagick >ImportError: cannot import name '_PythonMagick' from 'PythonMagick' >(/usr/lib/python3/dist-packages/PythonMagick/__init__.py) >autopkgtest [18:24:17]: test python3: -----------------------]