[Python-apps-team] Bug#876664: veusz FTBFS: test failure

Aurelien Jarno aurelien at aurel32.net
Sun Sep 24 16:42:35 UTC 2017


On 2017-09-24 19:20, Adrian Bunk wrote:
> Source: veusz
> Version: 1.21.1-1.2
> Severity: serious
> 
> https://buildd.debian.org/status/package.php?p=veusz&suite=sid
> 
> ...
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> set -e -x;\
> for py in 2.7; do \
> 	LC_ALL=C \
> 	PYTHONPATH=$(ls -d /<<PKGBUILDDIR>>/build/lib.*-$py) \
> 	VEUSZ_RESOURCE_DIR=. \
> 		xvfb-run -a \
> 		--server-args "-screen 0 640x480x24" \
> 		python$py tests/runselftest.py ;\
> 	LC_ALL=C \
> 	PYTHONPATH=$(ls -d /<<PKGBUILDDIR>>/build/lib.*-$py-pydebug 2>/dev/null || ls -d /<<PKGBUILDDIR>>/lib.*$py-pydebug) \
> 	VEUSZ_RESOURCE_DIR=. \
> 		xvfb-run -a \
> 		--server-args "-screen 0 640x480x24" \
> 		python$py-dbg tests/runselftest.py ;\
> done
> + ls -d /<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7
> + LC_ALL=C PYTHONPATH=/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7 VEUSZ_RESOURCE_DIR=. xvfb-run -a --server-args -screen 0 640x480x24 python2.7 tests/runselftest.py
> /usr/lib/python2.7/dist-packages/astropy/config/configuration.py:541: ConfigurationMissingWarning: Configuration defaults will be used due to OSError:2 on None
>   warn(ConfigurationMissingWarning(msg))
> Testing output
> 2d_irregular.vsz
>  PASS
> axis_function.vsz
>  PASS
> axis_function_linked.vsz
>  PASS
> bar_labels.vsz
> Traceback (most recent call last):
>   File "tests/runselftest.py", line 292, in <module>
>     test_unlink=options.test_unlink)
>   File "tests/runselftest.py", line 222, in runTests
>     test_unlink=test_unlink)
>   File "tests/runselftest.py", line 157, in renderVszTest
>     ifc.Export(outfile)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/document/commandinterface.py", line 717, in Export
>     e.export()
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/document/export.py", line 112, in export
>     self.exportSelfTest()
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/document/export.py", line 271, in exportSelfTest
>     self.renderPage(size, (dpi,dpi), painter)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/document/export.py", line 131, in renderPage
>     self.doc.paintTo(helper, self.pagenumber)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/document/doc.py", line 432, in paintTo
>     self.basewidget.draw(painthelper, page)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/root.py", line 123, in draw
>     page.draw( posn, painthelper )
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/page.py", line 366, in draw
>     parentposn)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/widget.py", line 309, in draw
>     c.draw(bounds, painthelper, outerbounds=outerbounds)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/grid.py", line 415, in draw
>     self._drawChild(phelper, child, bounds, parentposn)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/grid.py", line 376, in _drawChild
>     child.draw(newbounds, phelper, outerbounds=coutbound)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/graph.py", line 284, in draw
>     c.draw(bounds, painthelper, outerbounds=outerbounds)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/axis.py", line 1075, in draw
>     self._axisDraw(posn, parentposn, outerbounds, painter, phelper)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/axis.py", line 1140, in _axisDraw
>     outerbounds, self.majortickscalc, texttorender)
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/axis.py", line 823, in _drawTickLabels
>     for parlposn, text in ticklabels:
>   File "/<<PKGBUILDDIR>>/build/lib.linux-x86_64-2.7/veusz/widgets/axis.py", line 753, in generateLabelLabels
>     if None not in (labels, coords):
> ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
> QPainter::end: Painter ended with 2 saved states
> debian/rules:40: recipe for target 'override_dh_auto_test' failed
> make[1]: *** [override_dh_auto_test] Error 1

This failure is due to the recent upload of numpy 1.13.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien at aurel32.net                 http://www.aurel32.net



More information about the Python-apps-team mailing list