Re: Problems upgrading r-cran-fastcluster due to failed test in Python module
Hi again, and sorry for taking so long.
It's pretty obvious now: The tests start with
from scipy.spatial.distance import pdist, squareform
so they require scipy. I suggest that python-scipy and python3-scipy
are added as build-deps. That makes the python2 version build and test
fine also in my pbuilder chroot.
However, the python3 version now fails with:
File "/build/r-cran-fastcluster-1.1.21/src/python/tests/nantest.py", line 7,
in <module>
Copyright (c) 2011 Daniel M\xfcllner, <http://danifold.net>''')
UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position
72: ordinal not in range(128)
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1:
python3.5 setup.py test
The weird thing is that this error does not occur when building on my
ordinary system (outside of the pbuilder chroot). Does pbuilder not
allow non-ASCII output or something?
I guess it's not exactly critical that the upstream author's name is
output correctly during the build, but still. Any ideas?
--
Best,
Gard
Reply to: