[Debian-med-packaging] Bug#979625: autopkgtest: ModuleNotFoundError (ipytree) and AssertionError
Juhani Numminen
juhaninumminen0 at gmail.com
Sat Jan 9 10:05:46 GMT 2021
Package: src:python-cooler
Version: 0.8.8-1
Severity: serious
Dear Maintainer,
debci reports errors for this package's tests.
There is a ModuleNotFoundError and one error with the result of
`runner.invoke(show, [f_in, 'chr1', '-o', 'bla'])`.
=================================== FAILURES ===================================
__________________________________ test_show ___________________________________
def test_show():
runner = CliRunner()
with runner.isolated_filesystem():
f_in = op.join(datadir, "toy.symm.upper.2.cool")
result = runner.invoke(show, [f_in, 'chr1', '-o', 'bla'])
> assert result.exit_code == 0
E assert 1 == 0
E + where 1 = <Result SystemExit(1)>.exit_code
tests/test_cli_export.py:116: AssertionError
_______________________________ test_print_trees _______________________________
group = <Closed HDF5 file>, expand = False, level = None
def tree_widget(group, expand, level):
try:
> import ipytree
E ModuleNotFoundError: No module named 'ipytree'
/usr/lib/python3/dist-packages/cooler/fileops.py:299: ModuleNotFoundError
During handling of the above exception, another exception occurred:
def test_print_trees():
src_file = op.join(testdir, "data", "toy.symm.upper.2.mcool")
fileops.pprint_attr_tree(src_file, level=3)
fileops.pprint_data_tree(src_file, level=3)
with h5py.File(src_file) as f:
t = fileops.TreeViewer(f)
> t._ipython_display_()
tests/test_fileops.py:152:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/cooler/fileops.py:391: in _ipython_display_
tree = tree_widget(self.group, expand=self.expand, level=self.level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
group = <Closed HDF5 file>, expand = False, level = None
def tree_widget(group, expand, level):
try:
import ipytree
except ImportError as error:
> raise ImportError(
"{}: Run `pip install ipytree` or `conda install ipytree`"
"to get the required ipytree dependency for displaying the tree "
"widget. If using jupyterlab, you also need to run "
"`jupyter labextension install ipytree`".format(error)
)
E ImportError: No module named 'ipytree': Run `pip install ipytree` or `conda install ipytree`to get the required ipytree dependency for displaying the tree widget. If using jupyterlab, you also need to run `jupyter labextension install ipytree`
/usr/lib/python3/dist-packages/cooler/fileops.py:301: ImportError
More information about the Debian-med-packaging
mailing list