[Reproducible-builds] Bug#795940: vcr.py: FTBFS: Build requires internet access ("gaierror: [Errno -2] Name or service not known")
Chris Lamb
lamby at debian.org
Tue Aug 18 08:04:39 UTC 2015
Source: vcr.py
Version: 1.6.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,
vcr.py fails to build from source on unstable/amd64 as it tries to
connect to httpbin.org. Debian packages should not contact the internet
during build.
[..]
I: pybuild base:170: python2.7 -m pytest -v -x -rs
============================= test session starts
==============================
platform linux2 -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.2 --
/usr/bin/python2.7
rootdir: /tmp/buildd/vcr.py-1.6.1, inifile:
plugins: tornado, localserver
collecting ... collected 278 items / 2 skipped
tests/integration/test_basic.py::test_nonexistent_directory FAILED
=================================== FAILURES
===================================
__________________________ test_nonexistent_directory
__________________________
tmpdir = local('/tmp/pytest-0/test_nonexistent_directory0')
def test_nonexistent_directory(tmpdir):
'''If we load a cassette in a nonexistent directory, it can
save ok'''
# Check to make sure directory doesnt exist
assert not os.path.exists(str(tmpdir.join('nonexistent')))
# Run VCR to create dir and cassette file
with vcr.use_cassette(str(tmpdir.join('nonexistent',
'cassette.yml'))):
> urlopen('http://httpbin.org/').read()
tests/integration/test_basic.py:19:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _
/usr/lib/python2.7/urllib2.py:154: in urlopen
return opener.open(url, data, timeout)
/usr/lib/python2.7/urllib2.py:431: in open
response = self._open(req, data)
/usr/lib/python2.7/urllib2.py:449: in _open
'_open', req)
/usr/lib/python2.7/urllib2.py:409: in _call_chain
result = func(*args)
/usr/lib/python2.7/urllib2.py:1227: in http_open
return self.do_open(httplib.HTTPConnection, req)
/usr/lib/python2.7/urllib2.py:1200: in do_open
r = h.getresponse(buffering=True)
vcr/stubs/__init__.py:256: in getresponse
headers=self._vcr_request.headers,
/usr/lib/python2.7/httplib.py:1052: in request
self._send_request(method, url, body, headers)
/usr/lib/python2.7/httplib.py:1092: in _send_request
self.endheaders(body)
/usr/lib/python2.7/httplib.py:1048: in endheaders
self._send_output(message_body)
/usr/lib/python2.7/httplib.py:892: in _send_output
self.send(msg)
/usr/lib/python2.7/httplib.py:854: in send
self.connect()
/usr/lib/python2.7/httplib.py:831: in connect
self.timeout, self.source_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _
address = ('httpbin.org', 80), timeout = <object object at
0x7fbcb8adf0d0>
source_address = None
def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
source_address=None):
"""Connect to *address* and return the socket object.
Convenience function. Connect to *address* (a 2-tuple
``(host,
port)``) and return the socket object. Passing the optional
*timeout* parameter will set the timeout on the socket
instance
before attempting to connect. If no *timeout* is supplied,
the
global default timeout setting returned by
:func:`getdefaulttimeout`
is used. If *source_address* is set it must be a tuple of
(host, port)
for the socket to bind as a source address before making the
connection.
An host of '' or port 0 tells the OS to use the default.
"""
host, port = address
err = None
> for res in getaddrinfo(host, port, 0, SOCK_STREAM):
E gaierror: [Errno -2] Name or service not known
/usr/lib/python2.7/socket.py:557: gaierror
=========================== short test summary info
============================
SKIP [1] /tmp/buildd/vcr.py-1.6.1/tests/integration/test_boto.py:2:
could not import 'boto'
SKIP [1] /tmp/buildd/vcr.py-1.6.1/tests/integration/test_urllib3.py:8:
could not import 'certifi'
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures
!!!!!!!!!!!!!!!!!!!!
===================== 1 failed, 2 skipped in 2.82 seconds
======================
E: pybuild pybuild:262: test: plugin custom failed with: exit code=2:
python2.7 -m pytest -v -x -rs
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7
--dir . returned exit code 13
debian/rules:13: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/tmp/buildd/vcr.py-1.6.1'
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
[..]
The full build log is attached or can be viewed here:
https://reproducible.debian.net/logs/unstable/amd64/vcr.py_1.6.1-1.build1.log.gz
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vcr.py.1.6.1-1.unstable.amd64.log.txt
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150818/e28936e2/attachment.txt>
More information about the Reproducible-builds
mailing list