Need help python module testing at package build time: python-matplotlib-venn
Hi,
I'd like to package python-matplotlib-venn since a Debian Med package
depends from this module. I injected the packaging to
svn://anonscm.debian.org/debian-med/trunk/packages/python-mathplotlib-venn/trunk/
Unfortunately I'm running into:
.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_common.py .
.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_math.py ........
.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_region.py .....
.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_venn2.py .......
.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_venn3.py ........
==================================== ERRORS ====================================
____ ERROR collecting .pybuild/pythonX.Y_3.4/build/matplotlib_venn/_arc.py _____
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._arc', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_arc.py', local('/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX. Y_3.4/build/matplotlib_venn/_arc.py'))
___ ERROR collecting .pybuild/pythonX.Y_3.4/build/matplotlib_venn/_common.py ___
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._common', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_common.py', local('/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/ pythonX.Y_3.4/build/matplotlib_venn/_common.py'))
____ ERROR collecting .pybuild/pythonX.Y_3.4/build/matplotlib_venn/_math.py ____
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._math', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_math.py', local('/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_3.4/build/matplotlib_venn/_math.py'))
___ ERROR collecting .pybuild/pythonX.Y_3.4/build/matplotlib_venn/_region.py ___
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._region', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_region.py', local('/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/ pythonX.Y_3.4/build/matplotlib_venn/_region.py'))
____ ERROR collecting .pybuild/pythonX.Y_3.4/build/matplotlib_venn/_util.py ____
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._util', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_util.py', local('/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_3.4/build/matplotlib_venn/_util.py'))
___ ERROR collecting .pybuild/pythonX.Y_3.4/build/matplotlib_venn/_venn2.py ____
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._venn2', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_venn2.py', local('/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/ pythonX.Y_3.4/build/matplotlib_venn/_venn2.py'))
___ ERROR collecting .pybuild/pythonX.Y_3.4/build/matplotlib_venn/_venn3.py ____
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._venn3', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_venn3.py', local('/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/ pythonX.Y_3.4/build/matplotlib_venn/_venn3.py'))
___________________ ERROR collecting matplotlib_venn/_arc.py ___________________
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._arc', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_arc.py', local('/tmp/buildd/python-matplotlib-venn-0.11/matplotlib_venn/ _arc.py'))
_________________ ERROR collecting matplotlib_venn/_common.py __________________
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._common', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_common.py', local('/tmp/buildd/python-matplotlib-venn-0.11/ matplotlib_venn/_common.py'))
__________________ ERROR collecting matplotlib_venn/_math.py ___________________
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._math', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_math.py', local('/tmp/buildd/python-matplotlib-venn-0.11/matplotlib_venn/ _math.py'))
_________________ ERROR collecting matplotlib_venn/_region.py __________________
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._region', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_region.py', local('/tmp/buildd/python-matplotlib-venn-0.11/ matplotlib_venn/_region.py'))
__________________ ERROR collecting matplotlib_venn/_util.py ___________________
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._util', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_util.py', local('/tmp/buildd/python-matplotlib-venn-0.11/matplotlib_venn/ _util.py'))
__________________ ERROR collecting matplotlib_venn/_venn2.py __________________
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._venn2', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_venn2.py', local('/tmp/buildd/python-matplotlib-venn-0.11/ matplotlib_venn/_venn2.py'))
__________________ ERROR collecting matplotlib_venn/_venn3.py __________________
/usr/lib/python2.7/dist-packages/py/_path/local.py:660: in pyimport
raise self.ImportMismatchError(modname, modfile, self)
E ImportMismatchError: ('matplotlib_venn._venn3', '/tmp/buildd/python-matplotlib-venn-0.11/.pybuild/pythonX.Y_2.7/build/matplotlib_venn/_venn3.py', local('/tmp/buildd/python-matplotlib-venn-0.11/ matplotlib_venn/_venn3.py'))
===================== 49 passed, 14 error in 0.81 seconds ======================
E: pybuild pybuild:256: test: plugin distutils failed with: exit code=1: python2.7 setup.py test
dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir . returned exit code 13
debian/rules:10: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 13
make[1]: Leaving directory '/tmp/buildd/python-matplotlib-venn-0.11'
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 2
As you can see from the output the problem seems to be that the test is
most probably mixing up the source dir and the .pybuild/* dir. I was
hoping that this could be solved using
override_dh_auto_test:
xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" \
dh_auto_test -- --test --system=custom --test-args='env PYTHONPATH={build_dir} {interpreter} setup.py test'
but this does not help. Any idea?
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: