Bug#907221: Missing test dep on matplotlib

Steve Langasek steve.langasek at canonical.com
Fri Aug 24 21:51:06 BST 2018


Source: python-bayespy
Version: 0.5.17-1
Severity: important
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu cosmic

Dear Ghislain,

python-bayespy 0.5.17-1 consistently fails its autopkgtests in both Debian
and Ubuntu, due to matplotlib being missing from the test environment:

[...]
Test random sampling from the Dirichlet distribution. ... ok
Failure: ModuleNotFoundError (No module named 'matplotlib') ... ERROR

======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'matplotlib')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.7/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.7/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/bayespy/tests/__init__.py", line 8, in <module>
    import bayespy.plot as bpplt
  File "/usr/lib/python3/dist-packages/bayespy/plot.py", line 60, in <module>
    import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'

----------------------------------------------------------------------
Ran 124 tests in 11.037s

FAILED (errors=1)
autopkgtest [03:39:56]: test command1: -----------------------]
[...]

  (https://ci.debian.net/packages/p/python-bayespy/unstable/amd64/)

It should be possible to work around this by adding python3-matplotlib as a
manual test dependency, but I notice that there are non-test-related
references to matplotlib within /usr/lib/python3/dist-packages/bayespy; so I
wonder if python3-matplotlib should also be a dependency of python3-bayespy
instead?  (Or at least a Recommends)

Regressed autopkgtests are blockers for inclusion of packages in Ubuntu
releases, and a previous version of python-bayespy had a successful
autopkgtest, so this is currently holding the package out of Ubuntu 18.10. 
However, since the python-bayespy was also removed from the previous Ubuntu
release due to other bugs, I think it's reasonable for us to reset the
baseline and let the package in as-is.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20180824/b3759888/attachment-0001.sig>


More information about the debian-science-maintainers mailing list