[Debian-med-packaging] Bug#916706: python-cobra FTBFS with python-pip 18.1

Adrian Bunk bunk at debian.org
Mon Dec 17 18:03:10 GMT 2018


Source: python-cobra
Version: 0.13.4-2
Severity: serious
Tags: ftbfs

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-cobra.html

...
============================= test session starts ==============================
platform linux -- Python 3.6.8rc1, pytest-3.10.1, py-1.7.0, pluggy-0.8.0
benchmark: 3.1.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /build/1st/python-cobra-0.13.4, inifile: setup.cfg
plugins: benchmark-3.1.1
collected 0 items / 1 errors

==================================== ERRORS ====================================
______________________________ ERROR collecting  _______________________________
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:430: in _importconftest
    return self._conftestpath2mod[conftestpath]
E   KeyError: local('/build/1st/python-cobra-0.13.4/.pybuild/cpython3_3.6_cobra/build/cobra/test/conftest.py')

During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/pipdeptree.py:17: in <module>
    from pip._internal import get_installed_distributions
E   ImportError: cannot import name 'get_installed_distributions'

During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:436: in _importconftest
    mod = conftestpath.pyimport()
/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport
    __import__(modname)
cobra/__init__.py:11: in <module>
    from cobra import flux_analysis, io
cobra/flux_analysis/__init__.py:3: in <module>
    from cobra.flux_analysis.gapfilling import gapfill
cobra/flux_analysis/gapfilling.py:8: in <module>
    from cobra.core import Model
cobra/core/__init__.py:6: in <module>
    from cobra.core.gene import Gene
cobra/core/gene.py:13: in <module>
    from cobra.util import resettable
cobra/util/__init__.py:7: in <module>
    from cobra.util.util import *
cobra/util/util.py:5: in <module>
    from depinfo import print_dependencies
/usr/lib/python3/dist-packages/depinfo/__init__.py:27: in <module>
    from depinfo.info import *
/usr/lib/python3/dist-packages/depinfo/info.py:24: in <module>
    from pipdeptree import build_dist_index, construct_tree
/usr/lib/python3/dist-packages/pipdeptree.py:20: in <module>
    from pip import get_installed_distributions, FrozenRequirement
E   ImportError: cannot import name 'get_installed_distributions'

During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/py/_path/common.py:377: in visit
    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
/usr/lib/python3/dist-packages/py/_path/common.py:429: in gen
    for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:418: in gen
    dirs = self.optsort([p for p in entries
/usr/lib/python3/dist-packages/py/_path/common.py:419: in <listcomp>
    if p.check(dir=1) and (rec is None or rec(p))])
/usr/lib/python3/dist-packages/_pytest/main.py:601: in _recurse
    ihook = self.gethookproxy(dirpath)
/usr/lib/python3/dist-packages/_pytest/main.py:418: in gethookproxy
    my_conftestmodules = pm._getconftestmodules(fspath)
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:414: in _getconftestmodules
    mod = self._importconftest(conftestpath)
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:453: in _importconftest
    raise ConftestImportFailure(conftestpath, sys.exc_info())
E   _pytest.config.ConftestImportFailure: (local('/build/1st/python-cobra-0.13.4/.pybuild/cpython3_3.6_cobra/build/cobra/test/conftest.py'), (<class 'ImportError'>, ImportError("cannot import name 'get_installed_distributions'",), <traceback object at 0x7f6136b65bc8>))
=============================== warnings summary ===============================
cobra/flux_analysis/gapfilling.py:83
  /build/1st/python-cobra-0.13.4/.pybuild/cpython3_3.6_cobra/build/cobra/flux_analysis/gapfilling.py:83: DeprecationWarning: invalid escape sequence \s
    """

cobra/core/gene.py:248
  /build/1st/python-cobra-0.13.4/.pybuild/cpython3_3.6_cobra/build/cobra/core/gene.py:248: DeprecationWarning: invalid escape sequence \(
    the_gene_re = re.compile('(^|(?<=( |\()))%s(?=( |\)|$))' %

cobra/core/gene.py:262
  /build/1st/python-cobra-0.13.4/.pybuild/cpython3_3.6_cobra/build/cobra/core/gene.py:262: DeprecationWarning: invalid escape sequence \(
    other_gene_re = re.compile('(^|(?<=( |\()))%s(?=( |\)|$))' %

/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:49
  /usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:49: DeprecationWarning: invalid escape sequence \[

/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:50
  /usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:50: DeprecationWarning: invalid escape sequence \]

/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:49
  /usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:49: DeprecationWarning: invalid escape sequence \[

/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:50
  /usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py:50: DeprecationWarning: invalid escape sequence \]

-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
===================== 7 warnings, 1 error in 12.40 seconds =====================
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=2: cd /build/1st/python-cobra-0.13.4/.pybuild/cpython3_3.6_cobra/build; python3.6 -m pytest 
dh_auto_test: pybuild --test --test-pytest -i python{version} -p "3.6 3.7" returned exit code 13
make: *** [debian/rules:10: build] Error 25



More information about the Debian-med-packaging mailing list