Source: python-bayespy
Version: 0.5.17-1
Severity: important
User: ubuntu-de...@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/
slanga...@ubuntu.com                                     vor...@debian.org

Attachment: signature.asc
Description: PGP signature

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to