[Debian-med-packaging] Bug#860624: python-multipletau: FTBFS on i386: dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
Lucas Nussbaum
lucas at debian.org
Wed Apr 19 07:41:58 UTC 2017
Source: python-multipletau
Version: 0.1.6+ds-1
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20170418-i386 qa-ftbfs
Justification: FTBFS in stretch on i386
Hi,
During a rebuild of all packages in stretch (in a stretch chroot, not a
sid chroot), your package failed to build on i386.
Relevant part (hopefully):
> make[1]: Entering directory '/<<BUILDDIR>>/python-multipletau-0.1.6+ds'
> dh_auto_build
> I: pybuild base:184: /usr/bin/python setup.py build
> /usr/lib/python2.7/dist-packages/setuptools/dist.py:333: UserWarning: Normalizing '2016.07.11.dev18' to '2016.7.11.dev18'
> normalized_version,
> running build
> running build_py
> creating /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_2.7/build/multipletau
> copying multipletau/_version.py -> /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_2.7/build/multipletau
> copying multipletau/_multipletau.py -> /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_2.7/build/multipletau
> copying multipletau/__init__.py -> /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_2.7/build/multipletau
> copying multipletau/_version_save.py -> /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_2.7/build/multipletau
> I: pybuild base:184: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_3.5/build/multipletau
> copying multipletau/_version.py -> /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_3.5/build/multipletau
> copying multipletau/_multipletau.py -> /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_3.5/build/multipletau
> copying multipletau/__init__.py -> /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_3.5/build/multipletau
> copying multipletau/_version_save.py -> /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_3.5/build/multipletau
> /usr/lib/python3/dist-packages/setuptools/dist.py:333: UserWarning: Normalizing '2016.07.11.dev18' to '2016.7.11.dev18'
> normalized_version,
> PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/ build/html
> Running Sphinx v1.4.9
> making output directory...
> loading pickled environment... not yet created
> loading intersphinx inventory from http://docs.scipy.org/doc/scipy/reference/objects.inv...
> WARNING: intersphinx inventory 'http://docs.scipy.org/doc/scipy/reference/objects.inv' not fetchable due to <class 'urllib2.URLError'>: <urlopen error [Errno 111] Connection refused>
> loading intersphinx inventory from http://docs.scipy.org/doc/numpy/objects.inv...
> WARNING: intersphinx inventory 'http://docs.scipy.org/doc/numpy/objects.inv' not fetchable due to <class 'urllib2.URLError'>: <urlopen error [Errno 111] Connection refused>
> loading intersphinx inventory from http://docs.python.org/2.7/objects.inv...
> WARNING: intersphinx inventory 'http://docs.python.org/2.7/objects.inv' not fetchable due to <class 'urllib2.URLError'>: <urlopen error [Errno 111] Connection refused>
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 1 source files that are out of date
> updating environment: 1 added, 0 changed, 0 removed
> reading sources... [100%] index
>
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [100%] index
>
> generating indices... genindex py-modindex
> highlighting module code... [100%] multipletau._multipletau
>
> writing additional pages... search
> copying images... [100%] ../examples/compare_correlation_methods.png
>
> copying downloadable files... [100%] examples/compare_correlation_methods.py
>
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en) ... done
> dumping object inventory... done
> build succeeded, 3 warnings.
> # see d/patches/packaged-mathjax.path
> # Link mathjax in _static
> ln -s /usr/share/javascript/mathjax \
> build/html/_static/mathjax
> make[1]: Leaving directory '/<<BUILDDIR>>/python-multipletau-0.1.6+ds'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:184: cd /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest tests
> ============================= test session starts ==============================
> platform linux2 -- Python 2.7.13, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
> rootdir: /<<BUILDDIR>>/python-multipletau-0.1.6+ds, inifile:
> collected 23 items
>
> tests/test_ac_cc.py ...
> tests/test_autocorrelate.py FFF...
> tests/test_basic.py ..
> tests/test_correlate.py FFF....
> tests/test_ref_numpy.py FFFFF
>
> =================================== FAILURES ===================================
> ________________________________ test_ac_simple ________________________________
>
> def test_ac_simple():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> arrs = get_sample_arrays()
>
> res = []
> for a in arrs:
> r = multipletau.autocorrelate(a=a,
> m=16,
> deltat=1,
> normalize=False,
> copy=True,
> dtype=np.float)
> res.append(r)
>
> res = np.concatenate(res)
> #np.save(os.path.dirname(__file__)+"/data/"+os.path.basename(__file__)+"_"+myname+".npy", res)
> ref = get_reference_data(myname, __file__)
>
> > assert np.all(res==ref)
> E assert False
> E + where False = <function all at 0xf62f16bc>(array([[ 0.0...4640390e+21]]) == array([[ 0.00...4640390e+21]])
> E + where <function all at 0xf62f16bc> = np.all
> E Use -v to get the full diff)
>
> tests/test_autocorrelate.py:65: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> running test_ac_simple
> ______________________________ test_ac_normalize _______________________________
>
> def test_ac_normalize():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> arrs = get_sample_arrays()
>
> res = []
> for a in arrs:
> r = multipletau.autocorrelate(a=a,
> m=16,
> deltat=1,
> normalize=True,
> copy=True,
> dtype=np.float)
> res.append(r)
>
> res = np.concatenate(res)
> #np.save(os.path.dirname(__file__)+"/data/"+os.path.basename(__file__)+"_"+myname+".npy", res)
> ref = get_reference_data(myname, __file__)
>
> > assert np.all(res==ref)
> E assert False
> E + where False = <function all at 0xf62f16bc>(array([[ 0.0...9496198e+00]]) == array([[ 0.00...9496198e+00]])
> E + where <function all at 0xf62f16bc> = np.all
> E Use -v to get the full diff)
>
> tests/test_autocorrelate.py:89: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> running test_ac_normalize
> __________________________________ test_ac_m ___________________________________
>
> def test_ac_m():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> arrs = get_sample_arrays()
>
> ms = [8, 16, 32, 64, 128]
> a = np.concatenate(arrs)
>
> res = []
> for m in ms:
> r = multipletau.autocorrelate(a=a,
> m=m,
> deltat=1,
> normalize=False,
> copy=True,
> dtype=np.float)
> res.append(r)
>
> # test minimal length of array
> _r2 = multipletau.autocorrelate(a=a[:2*m],
> m=m,
> deltat=1,
> normalize=False,
> copy=True,
> dtype=np.float)
>
> res = np.concatenate(res)
> #np.save(os.path.dirname(__file__)+"/data/"+os.path.basename(__file__)+"_"+myname+".npy", res)
> ref = get_reference_data(myname, __file__)
>
> > assert np.all(res==ref)
> E assert False
> E + where False = <function all at 0xf62f16bc>(array([[ 0.0...0955749e+28]]) == array([[ 0.00...0955749e+28]])
> E + where <function all at 0xf62f16bc> = np.all
> E Use -v to get the full diff)
>
> tests/test_autocorrelate.py:124: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> running test_ac_m
> ________________________________ test_cc_simple ________________________________
>
> def test_cc_simple():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> arrs = get_sample_arrays_cplx()
>
> res = []
> for a in arrs:
> r = multipletau.correlate(a=a,
> v=a,
> m=16,
> deltat=1,
> normalize=False,
> copy=True,
> dtype=np.complex)
> res.append(r)
> res = np.concatenate(res)
>
> #np.save(os.path.dirname(__file__)+"/data/"+os.path.basename(__file__)+"_"+myname+".npy", res)
> ref = get_reference_data(myname, __file__)
>
> > assert np.all(res==ref)
> E assert False
> E + where False = <function all at 0xf62f16bc>(array([[ 0.0...031106e+14j]]) == array([[ 0.00...031106e+14j]])
> E + where <function all at 0xf62f16bc> = np.all
> E Use -v to get the full diff)
>
> tests/test_correlate.py:64: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> running test_cc_simple
> ______________________________ test_cc_normalize _______________________________
>
> def test_cc_normalize():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> arrs = get_sample_arrays_cplx()
>
> res = []
> for a in arrs:
> r = multipletau.correlate(a=a.real,
> v=a.imag,
> m=16,
> deltat=1,
> normalize=True,
> copy=True,
> dtype=np.float)
> res.append(r)
>
> res = np.concatenate(res)
> #np.save(os.path.dirname(__file__)+"/data/"+os.path.basename(__file__)+"_"+myname+".npy", res)
> ref = get_reference_data(myname, __file__)
>
> > assert np.all(res==ref)
> E assert False
> E + where False = <function all at 0xf62f16bc>(array([[ 0.0...8489514e-01]]) == array([[ 0.00...8489514e-01]])
> E + where <function all at 0xf62f16bc> = np.all
> E Use -v to get the full diff)
>
> tests/test_correlate.py:103: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> running test_cc_normalize
> __________________________________ test_cc_m ___________________________________
>
> def test_cc_m():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> arrs = get_sample_arrays_cplx()
>
> ms = [4, 8, 10, 16, 20, 64, 128]
> a = np.concatenate(arrs)
>
> res = []
> for m in ms:
> r = multipletau.correlate(a=a,
> v=a,
> m=m,
> deltat=1,
> normalize=False,
> copy=True,
> dtype=np.complex)
> res.append(r)
>
> # test minimal length of array
> _r2 = multipletau.correlate(a=a[:2*m],
> v=a[:2*m],
> m=m,
> deltat=1,
> normalize=False,
> copy=True,
> dtype=np.complex)
>
> res = np.concatenate(res)
> #np.save(os.path.dirname(__file__)+"/data/"+os.path.basename(__file__)+"_"+myname+".npy", res)
> ref = get_reference_data(myname, __file__)
>
> > assert np.all(res==ref)
> E assert False
> E + where False = <function all at 0xf62f16bc>(array([[ 0.0...005901e+18j]]) == array([[ 0.00...005901e+18j]])
> E + where <function all at 0xf62f16bc> = np.all
> E Use -v to get the full diff)
>
> tests/test_correlate.py:140: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> running test_cc_m
> _____________________________ test_corresponds_ac ______________________________
>
> def test_corresponds_ac():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> a = np.concatenate(get_sample_arrays_cplx()).real
> m=16
>
> restau = multipletau.autocorrelate(a=1*a,
> m=m,
> copy=True,
> normalize=True,
> > dtype=np.float128)
> E AttributeError: 'module' object has no attribute 'float128'
>
> tests/test_ref_numpy.py:30: AttributeError
> ----------------------------- Captured stdout call -----------------------------
> ('running ', 'test_corresponds_ac')
> _______________________ test_corresponds_ac_nonormalize ________________________
>
> def test_corresponds_ac_nonormalize():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> a = np.concatenate(get_sample_arrays_cplx()).real
> m=16
>
> restau = multipletau.autocorrelate(a=1*a,
> m=m,
> copy=True,
> normalize=False,
> > dtype=np.float128)
> E AttributeError: 'module' object has no attribute 'float128'
>
> tests/test_ref_numpy.py:55: AttributeError
> ----------------------------- Captured stdout call -----------------------------
> ('running ', 'test_corresponds_ac_nonormalize')
> _____________________________ test_corresponds_cc ______________________________
>
> def test_corresponds_cc():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> a = np.concatenate(get_sample_arrays_cplx())
> m=16
>
> restau = multipletau.correlate(a=a,
> v=a.imag+1j*a.real,
> m=m,
> copy=True,
> normalize=True,
> > dtype=np.complex256)
> E AttributeError: 'module' object has no attribute 'complex256'
>
> tests/test_ref_numpy.py:81: AttributeError
> ----------------------------- Captured stdout call -----------------------------
> ('running ', 'test_corresponds_cc')
> _______________________ test_corresponds_cc_nonormalize ________________________
>
> def test_corresponds_cc_nonormalize():
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> a = np.concatenate(get_sample_arrays_cplx())
> m=16
>
> restau = multipletau.correlate(a=a,
> v=a.imag+1j*a.real,
> m=m,
> copy=True,
> normalize=False,
> > dtype=np.complex256)
> E AttributeError: 'module' object has no attribute 'complex256'
>
> tests/test_ref_numpy.py:107: AttributeError
> ----------------------------- Captured stdout call -----------------------------
> ('running ', 'test_corresponds_cc_nonormalize')
> ________________________ test_corresponds_ac_first_loop ________________________
>
> def test_corresponds_ac_first_loop():
> """
> numpy correlation:
> G_m = sum_i(a_i*a_{i+m})
>
> multipletau correlation 2nd order:
> b_j = (a_{2i} + a_{2i+1} / 2)
> G_m = sum_j(b_j*b_{j+1})
> = 1/4*sum_i(a_{2i} * a_{2i+m} +
> a_{2i} * a_{2i+m+1} +
> a_{2i+1} * a_{2i+m} +
> a_{2i+1} * a_{2i+m+1}
> )
>
> The values after the first m+1 lag times in the multipletau
> correlation differ from the normal correlation, because the
> traces are averaged over two consecutive items, effectively
> halving the size of the trace. The multiple-tau correlation
> can be compared to the regular correlation by using an even
> sized sequence (here 222) in which the elements 2i and 2i+1
> are equal, as is done in this test.
> """
> myframe = sys._getframe()
> myname = myframe.f_code.co_name
> print("running ", myname)
>
> a = [ arr / np.average(arr) for arr in get_sample_arrays_cplx() ]
> a = np.concatenate(a)[:222]
> # two consecutive elements are the same, so the multiple-tau method
> # corresponds to the numpy correlation for the first loop.
> a[::2] = a[1::2]
>
> for m in [2,4,6,8,10,12,14,16]:
> restau = multipletau.correlate(a=a,
> v=a.imag+1j*a.real,
> m=m,
> copy=True,
> normalize=False,
> > dtype=np.complex256)
> E AttributeError: 'module' object has no attribute 'complex256'
>
> tests/test_ref_numpy.py:158: AttributeError
> ----------------------------- Captured stdout call -----------------------------
> ('running ', 'test_corresponds_ac_first_loop')
> ===================== 11 failed, 12 passed in 0.50 seconds =====================
> E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /<<BUILDDIR>>/python-multipletau-0.1.6+ds/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest tests
> dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
The full build log is available from:
http://aws-logs.debian.net/2017/04/18/python-multipletau_0.1.6+ds-1_testing-i386.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Debian-med-packaging
mailing list