[Python-modules-team] Bug#854496: python-qtpy: FTBFS randomly (failing tests)

Santiago Vila sanvila at debian.org
Tue Feb 7 18:04:55 UTC 2017


Package: src:python-qtpy
Version: 1.2.1-1
Severity: important

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_autoreconf -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python3.5 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:184: /usr/bin/python setup.py build 
running build
running build_py

[... snipped ...]

copying qtpy/QtTest.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/QtDesigner.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/_version.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/QtWebEngineWidgets.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/QtPrintSupport.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/QtCore.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/compat.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/QtGui.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/QtSvg.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/QtMultimedia.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/py3compat.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
copying qtpy/QtWidgets.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy/_patch
copying qtpy/_patch/qheaderview.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy/_patch
copying qtpy/_patch/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy/_patch
copying qtpy/_patch/qcombobox.py -> /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/qtpy/_patch
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
xvfb-run dh_auto_test
I: pybuild pybuild:212: cp -r /<<PKGBUILDDIR>>/qtpy/tests /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build
I: pybuild base:184: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest 
============================= test session starts ==============================
platform linux2 -- Python 2.7.13, pytest-3.0.5, py-1.4.32, pluggy-0.4.0

PyQt4: not installed
PyQt5: PyQt: 5.7 - Qt: 5.7.1
PySide: not installed

rootdir: /<<PKGBUILDDIR>>, inifile: 
collected 8 items

tests/test_main.py .
tests/test_patch_qcombobox.py ..
tests/test_patch_qheaderview.py .
tests/test_qtmultimedia.py .
tests/test_uic.py Aborted
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=134: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest 
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13
debian/rules:15: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:11: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

This is just how the build ends, not necessarily the relevant part.

I've put several build logs here:

https://people.debian.org/~sanvila/build-logs/python-qtpy/

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.

The bug should be reproducible with sbuild on a single CPU virtual machine,
provided you try enough times (as the failure happens randomly).

Thanks.



More information about the Python-modules-team mailing list