Bug#838197: sphinxcontrib-docbookrestapi: FTBFS: ImportError: Failed to import test module: test_utils

Chris Lamb lamby at debian.org
Sun Sep 18 10:20:42 UTC 2016


Source: sphinxcontrib-docbookrestapi
Version: 0.2.1-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

sphinxcontrib-docbookrestapi fails to build from source in unstable/amd64:

  [..]

  Preparing to unpack .../48-python-tidylib_0.2.4~dfsg-4_all.deb ...
  Unpacking python-tidylib (0.2.4~dfsg-4) ...
  Selecting previously unselected package libsubunit-perl.
  Preparing to unpack .../49-libsubunit-perl_1.1.0-3_all.deb ...
  Unpacking libsubunit-perl (1.1.0-3) ...
  Selecting previously unselected package python-extras.
  Preparing to unpack .../50-python-extras_0.0.3-3_all.deb ...
  Unpacking python-extras (0.0.3-3) ...
  Selecting previously unselected package python-linecache2.
  Preparing to unpack .../51-python-linecache2_1.0.0-2_all.deb ...
  Unpacking python-linecache2 (1.0.0-2) ...
  Selecting previously unselected package python-mimeparse.
  Preparing to unpack .../52-python-mimeparse_0.1.4-1_all.deb ...
  Unpacking python-mimeparse (0.1.4-1) ...
  Selecting previously unselected package python-traceback2.
  Preparing to unpack .../53-python-traceback2_1.4.0-3_all.deb ...
  Unpacking python-traceback2 (1.4.0-3) ...
  Selecting previously unselected package python-unittest2.
  Preparing to unpack .../54-python-unittest2_1.1.0-6.1_all.deb ...
  Unpacking python-unittest2 (1.1.0-6.1) ...
  Selecting previously unselected package python-testtools.
  Preparing to unpack .../55-python-testtools_1.8.0-3_all.deb ...
  Unpacking python-testtools (1.8.0-3) ...
  Selecting previously unselected package python-subunit.
  Preparing to unpack .../56-python-subunit_1.1.0-3_all.deb ...
  Unpacking python-subunit (1.1.0-3) ...
  Selecting previously unselected package python3-extras.
  Preparing to unpack .../57-python3-extras_0.0.3-3_all.deb ...
  Unpacking python3-extras (0.0.3-3) ...
  Selecting previously unselected package python3-linecache2.
  Preparing to unpack .../58-python3-linecache2_1.0.0-2_all.deb ...
  Unpacking python3-linecache2 (1.0.0-2) ...
  Selecting previously unselected package python3-mimeparse.
  Preparing to unpack .../59-python3-mimeparse_0.1.4-1_all.deb ...
  Unpacking python3-mimeparse (0.1.4-1) ...
  Selecting previously unselected package python3-pbr.
  Preparing to unpack .../60-python3-pbr_1.8.0-4.1_all.deb ...
  Unpacking python3-pbr (1.8.0-4.1) ...
  Selecting previously unselected package python3-traceback2.
  Preparing to unpack .../61-python3-traceback2_1.4.0-3_all.deb ...
  Unpacking python3-traceback2 (1.4.0-3) ...
  Selecting previously unselected package python3-unittest2.
  Preparing to unpack .../62-python3-unittest2_1.1.0-6.1_all.deb ...
  Unpacking python3-unittest2 (1.1.0-6.1) ...
  Selecting previously unselected package python3-testtools.
  Preparing to unpack .../63-python3-testtools_1.8.0-3_all.deb ...
  Unpacking python3-testtools (1.8.0-3) ...
  Selecting previously unselected package python3-subunit.
  Preparing to unpack .../64-python3-subunit_1.1.0-3_all.deb ...
  Unpacking python3-subunit (1.1.0-3) ...
  Selecting previously unselected package subunit.
  Preparing to unpack .../65-subunit_1.1.0-3_all.deb ...
  Unpacking subunit (1.1.0-3) ...
  Selecting previously unselected package python-fixtures.
  Preparing to unpack .../66-python-fixtures_1.3.1-2_all.deb ...
  Unpacking python-fixtures (1.3.1-2) ...
  Selecting previously unselected package python-testrepository.
  Preparing to unpack .../67-python-testrepository_0.0.20-2_all.deb ...
  Unpacking python-testrepository (0.0.20-2) ...
  Selecting previously unselected package python3-fixtures.
  Preparing to unpack .../68-python3-fixtures_1.3.1-2_all.deb ...
  Unpacking python3-fixtures (1.3.1-2) ...
  Selecting previously unselected package python3-testrepository.
  Preparing to unpack .../69-python3-testrepository_0.0.20-2_all.deb ...
  Unpacking python3-testrepository (0.0.20-2) ...
  Selecting previously unselected package testrepository.
  Preparing to unpack .../70-testrepository_0.0.20-2_all.deb ...
  Unpacking testrepository (0.0.20-2) ...
  Setting up python-linecache2 (1.0.0-2) ...
  Setting up libjs-jquery (1.12.4-1) ...
  Setting up madison-lite (0.22) ...
  Setting up libapt-inst2.0:amd64 (1.3~rc4) ...
  Setting up python-setuptools (27.1.2-1) ...
  Setting up python3-linecache2 (1.0.0-2) ...
  Setting up python-extras (0.0.3-3) ...
  Setting up libhttp-date-perl (6.02-1) ...
  Setting up libtidy5 (1:5.2.0-2) ...
  Setting up libjs-underscore (1.8.3~dfsg-1) ...
  Setting up python-mimeparse (0.1.4-1) ...
  Setting up libencode-locale-perl (1.05-1) ...
  Setting up apt-utils (1.3~rc4) ...
  Setting up libio-html-perl (1.001-1) ...
  Setting up python3-six (1.10.0-3) ...
  Setting up python-tz (2015.7+dfsg-0.1) ...
  Setting up python-imagesize (0.7.1-1) ...
  Setting up libjs-sphinxdoc (1.4.6-1) ...
  Setting up python3-extras (0.0.3-3) ...
  Setting up python-alabaster (0.7.8-1) ...
  Setting up sgml-base (1.28) ...
  Setting up python3-pkg-resources (27.1.2-1) ...
  Setting up python-roman (2.0.0-2) ...
  Setting up python-markupsafe (0.23-2+b2) ...
  Setting up libhtml-tree-perl (5.03-2) ...
  Setting up python3-traceback2 (1.4.0-3) ...
  Setting up liblwp-mediatypes-perl (6.02-1) ...
  Setting up python-pygments (2.1.3+dfsg-1) ...
  Processing triggers for libc-bin (2.24-3) ...
  Setting up python3-chardet (2.3.0-2) ...
  Setting up python3-unittest2 (1.1.0-6.1) ...
  update-alternatives: using /usr/bin/python3-unit2 to provide /usr/bin/unit2 (unit2) in auto mode
  Setting up python-pbr (1.8.0-4.1) ...
  update-alternatives: using /usr/bin/python2-pbr to provide /usr/bin/pbr (pbr) in auto mode
  Setting up python-babel-localedata (2.3.4+dfsg.1-2) ...
  Setting up openssl (1.0.2h-1) ...
  Setting up sphinx-common (1.4.6-1) ...
  Setting up libfile-listing-perl (6.04-1) ...
  Processing triggers for man-db (2.7.5-1) ...
  Setting up libhttp-message-perl (6.11-1) ...
  Setting up python3-mimeparse (0.1.4-1) ...
  Setting up libnet-http-perl (6.09-1) ...
  Setting up xml-core (0.13+nmu2) ...
  Setting up python-traceback2 (1.4.0-3) ...
  Setting up libsubunit-perl (1.1.0-3) ...
  Setting up ca-certificates (20160104) ...
  Setting up python-all (2.7.11-2) ...
  Setting up libwww-robotrules-perl (6.01-1) ...
  Setting up python3-debian (0.1.29) ...
  Setting up libhttp-negotiate-perl (6.00-2) ...
  Setting up autopkgtest (4.0.5) ...
  Setting up python3-pbr (1.8.0-4.1) ...
  Setting up python-tidylib (0.2.4~dfsg-4) ...
  Setting up libhttp-cookies-perl (6.01-1) ...
  Setting up python-jinja2 (2.8-1) ...
  Setting up python-babel (2.3.4+dfsg.1-2) ...
  update-alternatives: using /usr/bin/pybabel-python2 to provide /usr/bin/pybabel (pybabel) in auto mode
  Setting up python3-testtools (1.8.0-3) ...
  Setting up python-unittest2 (1.1.0-6.1) ...
  update-alternatives: using /usr/bin/python2-unit2 to provide /usr/bin/unit2 (unit2) in auto mode
  Setting up python3-fixtures (1.3.1-2) ...
  Setting up python-testtools (1.8.0-3) ...
  Setting up python-subunit (1.1.0-3) ...
  Setting up python-fixtures (1.3.1-2) ...
  Setting up python3-subunit (1.1.0-3) ...
  Setting up subunit (1.1.0-3) ...
  Setting up python-testrepository (0.0.20-2) ...
  update-alternatives: using /usr/bin/testr-python2 to provide /usr/bin/testr (testr) in auto mode
  Setting up python3-testrepository (0.0.20-2) ...
  Setting up testrepository (0.0.20-2) ...
  Processing triggers for sgml-base (1.28) ...
  Setting up docutils-common (0.12+dfsg-1) ...
  Processing triggers for sgml-base (1.28) ...
  Setting up python-docutils (0.12+dfsg-1) ...
  update-alternatives: using /usr/share/docutils/scripts/python2/rst-buildhtml to provide /usr/bin/rst-buildhtml (rst-buildhtml) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2html to provide /usr/bin/rst2html (rst2html) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2latex to provide /usr/bin/rst2latex (rst2latex) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2man to provide /usr/bin/rst2man (rst2man) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2odt to provide /usr/bin/rst2odt (rst2odt) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2odt_prepstyles to provide /usr/bin/rst2odt_prepstyles (rst2odt_prepstyles) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2pseudoxml to provide /usr/bin/rst2pseudoxml (rst2pseudoxml) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2s5 to provide /usr/bin/rst2s5 (rst2s5) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2xetex to provide /usr/bin/rst2xetex (rst2xetex) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rst2xml to provide /usr/bin/rst2xml (rst2xml) in auto mode
  update-alternatives: using /usr/share/docutils/scripts/python2/rstpep2html to provide /usr/bin/rstpep2html (rstpep2html) in auto mode
  Setting up python-sphinx (1.4.6-1) ...
  Setting up libwww-perl (6.15-1) ...
  Setting up liblwp-protocol-https-perl (6.06-2) ...
  Setting up libxml-parser-perl (2.44-2) ...
  Setting up libxml-xpath-perl (1.37-1) ...
  Setting up openstack-pkg-tools (52) ...
  Setting up sphinxcontrib-docbookrestapi-build-deps (0.2.1-1) ...
  Processing triggers for ca-certificates (20160104) ...
  Updating certificates in /etc/ssl/certs...
  173 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d...
  done.
  
  **************************************************************************************
  ** Environment                                                                      **
  **************************************************************************************
  
  PATH=/home/lamby/git/projects/dotfiles/dotfiles/..//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  HOSTNAME=07b7431001a4
  TERM=xterm
  PAGER=more
  DISPLAY=:0
  DOCKER_IMAGE=lamby-debian-sid
  DEB_BUILD_OPTIONS=parallel=9
  PIP_DOWNLOAD_CACHE=/home/lamby/.cache/pip
  HOME=/home/lamby
  LOGNAME=lamby
  SHLVL=1
  PWD=/home/lamby/temp/cdt.20160918110212.pHMooLLwyA.db.sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-0.2.1
  OLDPWD=/home/lamby/temp/cdt.20160918110212.pHMooLLwyA.db.sphinxcontrib-docbookrestapi
  GPG_TTY=/dev/console
  QUILT_PATCHES=debian/patches
  QUILT_NO_DIFF_INDEX=1
  QUILT_REFRESH_ARGS=-p ab --no-timestamps --no-index
  DEBEMAIL=lamby at debian.org
  DEBFULLNAME=Chris Lamb
  EDITOR=vim
  LESS=-cgiFx4M
  GPG_KEY=1E953E27D4311E58
  BLASTER=A220 I5 D1 H5 P330 T6
  _=/usr/bin/env
  
  **************************************************************************************
  ** Building sphinxcontrib-docbookrestapi 0.2.1-1 on amd64                           **
  **************************************************************************************
  
   dpkg-buildpackage -rfakeroot -D -us -uc -b
  dpkg-buildpackage: info: source package sphinxcontrib-docbookrestapi
  dpkg-buildpackage: info: source version 0.2.1-1
  dpkg-buildpackage: info: source distribution unstable
  dpkg-buildpackage: info: source changed by Thomas Goirand <zigo at debian.org>
   dpkg-source --before-build sphinxcontrib-docbookrestapi-0.2.1
  dpkg-buildpackage: info: host architecture amd64
  dpkg-source: info: using options from sphinxcontrib-docbookrestapi-0.2.1/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
   fakeroot debian/rules clean
  py3versions: no X-Python3-Version in control file, using supported versions
  dh clean --buildsystem=python_distutils --with python2
     dh_testdir -O--buildsystem=python_distutils
     dh_auto_clean -O--buildsystem=python_distutils
  	python setup.py clean -a
  running clean
  'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-2.7' does not exist -- can't clean it
  	find . -name \*.pyc -exec rm {} \+
     debian/rules override_dh_clean
  make[1]: Entering directory '/home/lamby/temp/cdt.20160918110212.pHMooLLwyA.db.sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-0.2.1'
  py3versions: no X-Python3-Version in control file, using supported versions
  dh_clean -O--buildsystem=python_distutils
  rm -rf build .testrepository
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160918110212.pHMooLLwyA.db.sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-0.2.1'
   debian/rules build
  py3versions: no X-Python3-Version in control file, using supported versions
  dh build --buildsystem=python_distutils --with python2
     dh_testdir -O--buildsystem=python_distutils
     dh_update_autotools_config -O--buildsystem=python_distutils
     dh_auto_configure -O--buildsystem=python_distutils
     dh_auto_build -O--buildsystem=python_distutils
  	python setup.py build --force
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/sphinxcontrib
  creating build/lib.linux-x86_64-2.7/sphinxcontrib/docbookrestapi
  copying sphinxcontrib/docbookrestapi/__init__.py -> build/lib.linux-x86_64-2.7/sphinxcontrib/docbookrestapi
  copying sphinxcontrib/docbookrestapi/setup.py -> build/lib.linux-x86_64-2.7/sphinxcontrib/docbookrestapi
  copying sphinxcontrib/docbookrestapi/docbook.py -> build/lib.linux-x86_64-2.7/sphinxcontrib/docbookrestapi
  copying sphinxcontrib/__init__.py -> build/lib.linux-x86_64-2.7/sphinxcontrib
  running egg_info
  creating sphinxcontrib_docbookrestapi.egg-info
  writing requirements to sphinxcontrib_docbookrestapi.egg-info/requires.txt
  writing sphinxcontrib_docbookrestapi.egg-info/PKG-INFO
  writing namespace_packages to sphinxcontrib_docbookrestapi.egg-info/namespace_packages.txt
  writing top-level names to sphinxcontrib_docbookrestapi.egg-info/top_level.txt
  writing dependency_links to sphinxcontrib_docbookrestapi.egg-info/dependency_links.txt
  [pbr] Processing SOURCES.txt
  writing manifest file 'sphinxcontrib_docbookrestapi.egg-info/SOURCES.txt'
  warning: no files found matching 'AUTHORS'
  warning: no files found matching 'ChangeLog'
  warning: no previously-included files found matching '.gitignore'
  warning: no previously-included files found matching '.gitreview'
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  writing manifest file 'sphinxcontrib_docbookrestapi.egg-info/SOURCES.txt'
     debian/rules override_dh_auto_test
  make[1]: Entering directory '/home/lamby/temp/cdt.20160918110212.pHMooLLwyA.db.sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-0.2.1'
  py3versions: no X-Python3-Version in control file, using supported versions
  rm -rf .testrepository
  testr init
  set -e && \
  	TEMP_REZ=`mktemp -t` && \
  	PYTHONPATH=/home/lamby/temp/cdt.20160918110212.pHMooLLwyA.db.sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-0.2.1 testr run --subunit | tee $TEMP_REZ | subunit2pyunit ; \
  	cat $TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
  	rm -f $TEMP_REZ ;
  running=${PYTHON:-python} -m subunit.run discover sphinxcontrib/docbookrestapi/tests  
  unittest2.loader._FailedTest.test_utils
  unittest2.loader._FailedTest.test_utils ... FAIL
  
  ======================================================================
  FAIL: unittest2.loader._FailedTest.test_utils
  unittest2.loader._FailedTest.test_utils
  ----------------------------------------------------------------------
  _StringException: Traceback (most recent call last):
  ImportError: Failed to import test module: test_utils
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
      __import__(name)
    File "/home/lamby/temp/cdt.20160918110212.pHMooLLwyA.db.sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-0.2.1/sphinxcontrib/docbookrestapi/tests/test_utils.py", line 20, in <module>
      from sphinxcontrib.docbookrestapi.docbook import clean_up_xml, generate_id
    File "sphinxcontrib/docbookrestapi/docbook.py", line 23, in <module>
      import tidylib
    File "/usr/lib/python2.7/dist-packages/tidylib/__init__.py", line 68, in <module>
      raise OSError("Could not load libtidy using any of these names: %s" % (",".join(LIB_NAMES)))
  OSError: Could not load libtidy using any of these names: libtidy,libtidy.so,libtidy-0.99.so.0,cygtidy-0-99-0,tidylib,libtidy.dylib,tidy
  
  
  ----------------------------------------------------------------------
  Ran 1 test in 0.319s
  
  FAILED (failures=1)
  debian/rules:25: recipe for target 'override_dh_auto_test' failed
  make[1]: *** [override_dh_auto_test] Error 1
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160918110212.pHMooLLwyA.db.sphinxcontrib-docbookrestapi/sphinxcontrib-docbookrestapi-0.2.1'
  debian/rules:11: recipe for target 'build' failed
  make: *** [build] Error 2

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sphinxcontrib-docbookrestapi.0.2.1-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 6799 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160918/e06fde53/attachment.obj>


More information about the Reproducible-builds mailing list