[Reproducible-builds] Bug#827688: python-ceilometermiddleware: FTBFS: ImportError: No module named 'mock'
Chris Lamb
lamby at debian.org
Sun Jun 19 16:41:36 UTC 2016
Source: python-ceilometermiddleware
Version: 0.3.0-2
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,
python-ceilometermiddleware fails to build from source in unstable/amd64:
[..]
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.4-1) ...
Setting up python-oslo.config (1:3.9.0-3) ...
update-alternatives: using /usr/bin/python2-oslo-config-generator to provide /usr/bin/oslo-config-generator (oslo-config-generator) in auto mode
Setting up python-oslo.log (3.2.0-2) ...
Setting up python-oslo.middleware (3.8.0-2) ...
Setting up python-oslo.concurrency (3.7.0-2) ...
update-alternatives: using /usr/bin/python2-lockutils-wrapper to provide /usr/bin/lockutils-wrapper (lockutils-wrapper) in auto mode
Setting up python-oslo.service (1.8.0-1) ...
Setting up python-oslo.messaging (4.6.1-2) ...
update-alternatives: using /usr/bin/python2-oslo-messaging-zmq-broker to provide /usr/bin/oslo-messaging-zmq-broker (oslo-messaging-zmq-broker) in auto mode
Setting up python-pycadf (2.2.0-2) ...
Setting up libwww-perl (6.15-1) ...
Setting up libxml-parser-perl (2.44-1+b1) ...
Setting up libxml-xpath-perl (1.36-1) ...
Setting up openstack-pkg-tools (51) ...
Setting up python-ceilometermiddleware-build-deps (0.3.0-2) ...
Setting up liblwp-protocol-https-perl (6.06-2) ...
Processing triggers for libc-bin (2.22-11) ...
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=45ffaa6e9589
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.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0
OLDPWD=/home/lamby/temp/cdt.20160619173839.mckcEeUfpN.python-ceilometermiddleware
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
BLASTER=A220 I5 D1 H5 P330 T6
_=/usr/bin/env
**************************************************************************************
** Building python-ceilometermiddleware 0.3.0-2 on amd64 **
**************************************************************************************
dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: info: source package python-ceilometermiddleware
dpkg-buildpackage: info: source version 0.3.0-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Thomas Goirand <zigo at debian.org>
dpkg-source --before-build python-ceilometermiddleware-0.3.0
dpkg-buildpackage: info: host architecture amd64
dpkg-source: info: using options from python-ceilometermiddleware-0.3.0/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
fakeroot debian/rules clean
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
dh clean --buildsystem=python_distutils --with python2,sphinxdoc
dh_testdir -O--buildsystem=python_distutils
dh_auto_clean -O--buildsystem=python_distutils
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
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.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
dh_clean -O--buildsystem=python_distutils
rm -rf build
make[1]: Leaving directory '/home/lamby/temp/cdt.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0'
debian/rules build
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
dh build --buildsystem=python_distutils --with python2,sphinxdoc
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
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
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/ceilometermiddleware
creating build/lib.linux-x86_64-2.7/ceilometermiddleware/tests
copying ceilometermiddleware/tests/test_swift.py -> build/lib.linux-x86_64-2.7/ceilometermiddleware/tests
copying ceilometermiddleware/tests/__init__.py -> build/lib.linux-x86_64-2.7/ceilometermiddleware/tests
copying ceilometermiddleware/tests/base.py -> build/lib.linux-x86_64-2.7/ceilometermiddleware/tests
copying ceilometermiddleware/__init__.py -> build/lib.linux-x86_64-2.7/ceilometermiddleware
copying ceilometermiddleware/swift.py -> build/lib.linux-x86_64-2.7/ceilometermiddleware
running egg_info
creating ceilometermiddleware.egg-info
writing requirements to ceilometermiddleware.egg-info/requires.txt
writing ceilometermiddleware.egg-info/PKG-INFO
writing top-level names to ceilometermiddleware.egg-info/top_level.txt
writing dependency_links to ceilometermiddleware.egg-info/dependency_links.txt
writing entry points to ceilometermiddleware.egg-info/entry_points.txt
[pbr] Processing SOURCES.txt
writing manifest file 'ceilometermiddleware.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
reading manifest template 'MANIFEST.in'
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 'ceilometermiddleware.egg-info/SOURCES.txt'
debian/rules override_dh_auto_test
make[1]: Entering directory '/home/lamby/temp/cdt.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
===> Running tests
set -e ; set -x ; for i in 2.7 3.5 ; do \
PYMAJOR=`echo $i | cut -d'.' -f1` ; \
echo "===> Testing with python$i (python$PYMAJOR)" ; \
rm -rf .testrepository ; \
testr-python$PYMAJOR init ; \
TEMP_REZ=`mktemp -t` ; \
PYTHONPATH=/home/lamby/temp/cdt.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0 PYTHON=python$i testr-python$PYMAJOR run --subunit | tee $TEMP_REZ | subunit2pyunit ; \
cat $TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
rm -f $TEMP_REZ ; \
testr-python$PYMAJOR slowest ; \
done
+ + echocut -d. -f1
2.7
+ PYMAJOR=2
+ echo ===> Testing with python2.7 (python2)
===> Testing with python2.7 (python2)
+ rm -rf .testrepository
+ testr-python2 init
+ mktemp -t
+ TEMP_REZ=/tmp/tmp.6inlJ5FT4N
+ PYTHONPATH=/home/lamby/temp/cdt.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0 PYTHON=python2.7 testr-python2 run --subunit
+ subunit2pyunit
+ tee /tmp/tmp.6inlJ5FT4N
running=${PYTHON:-python} -m subunit.run discover -t ./ ./ceilometermiddleware/tests
ceilometermiddleware.tests.test_swift.TestSwift.test_bogus_path
ceilometermiddleware.tests.test_swift.TestSwift.test_bogus_path ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_bogus_request
ceilometermiddleware.tests.test_swift.TestSwift.test_bogus_request ... ok
/usr/lib/python2.7/dist-packages/pycadf/identifier.py:60: UserWarning: Invalid uuid. To ensure interoperability, identifiersshould be a valid uuid.
warnings.warn('Invalid uuid. To ensure interoperability, identifiers'
ceilometermiddleware.tests.test_swift.TestSwift.test_custom_prefix
ceilometermiddleware.tests.test_swift.TestSwift.test_custom_prefix ... ok
ERROR [ceilometermiddleware.swift] An exception occurred processing the API call: a exception
Traceback (most recent call last):
File "ceilometermiddleware/swift.py", line 63, in wrapper
return fn(*args, **kwargs)
File "ceilometermiddleware/swift.py", line 202, in emit_event
now = timeutils.utcnow().isoformat()
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1062, in __call__
return _mock_self._mock_call(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1118, in _mock_call
raise effect
Exception: a exception
ceilometermiddleware.tests.test_swift.TestSwift.test_emit_event_fail
ceilometermiddleware.tests.test_swift.TestSwift.test_emit_event_fail ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_empty_reseller_prefix
ceilometermiddleware.tests.test_swift.TestSwift.test_empty_reseller_prefix ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_get
ceilometermiddleware.tests.test_swift.TestSwift.test_get ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_get_container
ceilometermiddleware.tests.test_swift.TestSwift.test_get_container ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_head
ceilometermiddleware.tests.test_swift.TestSwift.test_head ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_head_account
ceilometermiddleware.tests.test_swift.TestSwift.test_head_account ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_ignore_requests_from_multiple_projects
ceilometermiddleware.tests.test_swift.TestSwift.test_ignore_requests_from_multiple_projects ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_ignore_requests_from_project
ceilometermiddleware.tests.test_swift.TestSwift.test_ignore_requests_from_project ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_invalid_reseller_prefix
ceilometermiddleware.tests.test_swift.TestSwift.test_invalid_reseller_prefix ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_metadata_headers
ceilometermiddleware.tests.test_swift.TestSwift.test_metadata_headers ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_metadata_headers_on_not_existing_header
ceilometermiddleware.tests.test_swift.TestSwift.test_metadata_headers_on_not_existing_header ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_metadata_headers_unicode
ceilometermiddleware.tests.test_swift.TestSwift.test_metadata_headers_unicode ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_missing_resource_id
ceilometermiddleware.tests.test_swift.TestSwift.test_missing_resource_id ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_no_metadata_headers
ceilometermiddleware.tests.test_swift.TestSwift.test_no_metadata_headers ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_post
ceilometermiddleware.tests.test_swift.TestSwift.test_post ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_put
ceilometermiddleware.tests.test_swift.TestSwift.test_put ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_put_with_swift_source
ceilometermiddleware.tests.test_swift.TestSwift.test_put_with_swift_source ... ok
ceilometermiddleware.tests.test_swift.TestSwift.test_reseller_prefix
ceilometermiddleware.tests.test_swift.TestSwift.test_reseller_prefix ... ok
----------------------------------------------------------------------
Ran 21 tests in 0.535s
OK
+ cat /tmp/tmp.6inlJ5FT4N
+ subunit-stats
+ subunit-filter -s --no-passthrough
Total tests: 21
Passed tests: 21
Failed tests: 0
Skipped tests: 0
Seen tags: worker-0
+ rm -f /tmp/tmp.6inlJ5FT4N
+ testr-python2 slowest
Test id Runtime (s)
-------------------------------------------------------------------------------------------- -----------
ceilometermiddleware.tests.test_swift.TestSwift.test_bogus_path 0.108
ceilometermiddleware.tests.test_swift.TestSwift.test_head_account 0.003
ceilometermiddleware.tests.test_swift.TestSwift.test_custom_prefix 0.003
ceilometermiddleware.tests.test_swift.TestSwift.test_empty_reseller_prefix 0.003
ceilometermiddleware.tests.test_swift.TestSwift.test_bogus_request 0.003
ceilometermiddleware.tests.test_swift.TestSwift.test_get 0.003
ceilometermiddleware.tests.test_swift.TestSwift.test_get_container 0.002
ceilometermiddleware.tests.test_swift.TestSwift.test_emit_event_fail 0.002
ceilometermiddleware.tests.test_swift.TestSwift.test_invalid_reseller_prefix 0.002
ceilometermiddleware.tests.test_swift.TestSwift.test_metadata_headers_on_not_existing_header 0.002
+ cut -d. -f1
+ echo 3.5
+ PYMAJOR=3
+ echo ===> Testing with python3.5 (python3)
===> Testing with python3.5 (python3)
+ rm -rf .testrepository
+ testr-python3 init
+ mktemp -t
+ TEMP_REZ=/tmp/tmp.445DlIaRlZ
+ + tee /tmp/tmp.445DlIaRlZ
PYTHONPATH=/home/lamby/temp/cdt.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0 PYTHON=python3.5 testr-python3 run --subunit
+ subunit2pyunit
unittest2.loader._FailedTest.ceilometermiddleware.tests.test_swift
unittest2.loader._FailedTest.ceilometermiddleware.tests.test_swift ... FAIL
running=${PYTHON:-python} -m subunit.run discover -t ./ ./ceilometermiddleware/tests
======================================================================
FAIL: unittest2.loader._FailedTest.ceilometermiddleware.tests.test_swift
unittest2.loader._FailedTest.ceilometermiddleware.tests.test_swift
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: ceilometermiddleware.tests.test_swift
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "/home/lamby/temp/cdt.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0/ceilometermiddleware/tests/test_swift.py", line 16, in <module>
import mock
ImportError: No module named 'mock'
----------------------------------------------------------------------
Ran 1 test in 0.284s
FAILED (failures=1)
debian/rules:28: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/home/lamby/temp/cdt.20160619173839.mckcEeUfpN.python-ceilometermiddleware/python-ceilometermiddleware-0.3.0'
debian/rules:12: 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: python-ceilometermiddleware.0.3.0-2.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 11549 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160619/64fa9946/attachment.obj>
More information about the Reproducible-builds
mailing list