[Debian-med-packaging] Bug#955656: python-cobra: FTBFS: E ModuleNotFoundError: No module named 'matplotlib'

Andreas Tille tille at debian.org
Sat Apr 4 09:23:20 BST 2020


Control: tags -1 help

Hi,

this bug is fixed in Git.  Unfortunately there is an issue with python3-libsbml
which prevents successful building:

________________________ ERROR collecting test session _________________________
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:440: in _importconftest
    return self._conftestpath2mod[conftestpath]
E   KeyError: local('/build/python-cobra-0.18.0/.pybuild/cpython3_3.7_cobra/build/cobra/test/conftest.py')

During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:446: in _importconftest
    mod = conftestpath.pyimport()
/usr/lib/python3/dist-packages/py/_path/local.py:701: in pyimport
    __import__(modname)
cobra/__init__.py:40: in <module>
    from cobra import io
cobra/io/__init__.py:8: in <module>
    from cobra.io.sbml import read_sbml_model, write_sbml_model, \
cobra/io/sbml.py:41: in <module>
    import libsbml
/usr/lib/python3/dist-packages/libsbml/libsbml.py:22: in <module>
    import _libsbml
E   ModuleNotFoundError: No module named '_libsbml'

During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/py/_path/common.py:383: in visit
    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
/usr/lib/python3/dist-packages/py/_path/common.py:435: in gen
    for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:424: in gen
    dirs = self.optsort([p for p in entries
/usr/lib/python3/dist-packages/py/_path/common.py:425: in <listcomp>
    if p.check(dir=1) and (rec is None or rec(p))])
/usr/lib/python3/dist-packages/_pytest/main.py:667: in _recurse
    ihook = self.gethookproxy(dirpath)
/usr/lib/python3/dist-packages/_pytest/main.py:482: in gethookproxy
    my_conftestmodules = pm._getconftestmodules(fspath)
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:424: in _getconftestmodules
    mod = self._importconftest(conftestpath.realpath())
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:463: in _importconftest
    raise ConftestImportFailure(conftestpath, sys.exc_info())
E   _pytest.config.ConftestImportFailure: (local('/build/python-cobra-0.18.0/.pybuild/cpython3_3.7_cobra/build/cobra/test/conftest.py'), (<class 'ModuleNotFoundError'>, ModuleNotFoundError("No module named '_libsbml'"), <traceback object at 0x7f69e9276a50>))
=============================== warnings summary ===============================


Any help is really welcome

         Andreas.



-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list