On Sun, Nov 09, 2014 at 08:33:36AM +0100, Lucas Nussbaum wrote:
> > + _py_=2.7
> > + python2.7 -c from distutils import sysconfig; 
> > print(sysconfig.get_python_lib())
> > + LOC=/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages
> > + python2.7 
> > /«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/mdp/test/run_tests.py
> >  --seed 1029384756 
> > /«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/mdp 
> > /«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/bimdp
> > /«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/mdp/test/run_tests.py/_pytest.assertion.oldinterpret:3:
> >  DeprecationWarning: The compiler package is deprecated and removed in 
> > Python 3.x.
> > ============================= test session starts 
> > ==============================
> > platform linux2 -- Python 2.7.8 -- pytest-2.1.2
> >           python: 2.7.8.final.0
> >              mdp: 3.3
> >  parallel python: 1.6.4
> >           shogun: NOT AVAILABLE: No module named shogun
> >           libsvm: libsvm.so.3
> >           joblib: 0.8.3
> >          sklearn: 0.14.1
> >             numx: scipy 0.14.0
> >           symeig: scipy.linalg.eigh
> > Random Seed: 1029384756
> > 
> > collecting ... collected 0 items / 1 errors
> > 
> > ==================================== ERRORS 
> > ====================================
> > ______________________________ ERROR collecting . 
> > ______________________________
> > _pytest.runner:99: in __init__
> > >   ???
> > _pytest.main:290: in _memocollect
> > >   ???
> > _pytest.main:214: in _memoizedcall
> > >   ???
> > _pytest.main:290: in <lambda>
> > >   ???
> > _pytest.main:429: in collect
> > >   ???
> > _pytest.main:445: in _collect
> > >   ???
> > py._path.common:312: in visit
> > >   ???
> > py._path.common:348: in gen
> > >   ???
> > _pytest.main:468: in _recurse
> > >   ???
> > _pytest.main:126: in call_matching_hooks
> > >   ???
> > _pytest.config:281: in _getmatchingplugins
> > >   ???
> > _pytest.config:183: in getconftestmodules
> > >   ???
> > _pytest.config:212: in importconftest
> > >   ???
> > py._path.local:518: in pyimport
> > >   ???
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/__init__.py:91: in <module>
> > >   from inspection import *
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/inspection/__init__.py:5: 
> > in <module>
> > >   from tracer import (
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/inspection/tracer.py:32: 
> > in <module>
> > >   from bimdp.hinet import BiFlowNode, CloneBiLayer
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/hinet/__init__.py:5: in 
> > <module>
> > >   from bihtmlvisitor import BiHiNetHTMLVisitor, show_biflow
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/hinet/bihtmlvisitor.py:12: 
> > in <module>
> > >   from bimdp.nodes import SenderBiNode
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/nodes/__init__.py:3: in 
> > <module>
> > >   exec binodes_code()
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/nodes/autogen.py:111: in 
> > binodes_code
> > >       _binode_module(fid, nodes)
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/nodes/autogen.py:102: in 
> > _binode_module
> > >                        old_classname=old_classname)
> > debian/tmp/usr/lib/python2.7/dist-packages/bimdp/nodes/autogen.py:70: in 
> > _binode_code
> > >           fid.write('\n        """%s"""' % docstring)
> > E           UnicodeEncodeError: 'ascii' codec can't encode character 
> > u'\u2013' in position 62: ordinal not in range(128)
> > ===================================== NOTE 
> > =====================================
> >           python: 2.7.8.final.0
> >              mdp: 3.3
> >  parallel python: 1.6.4
> >           shogun: NOT AVAILABLE: No module named shogun
> >           libsvm: libsvm.so.3
> >           joblib: 0.8.3
> >          sklearn: 0.14.1
> >             numx: scipy 0.14.0
> >           symeig: scipy.linalg.eigh
> > Random Seed: 1029384756
> > 
> > IMPORTANT: some tests use random numbers. This could
> > occasionally lead to failures due to numerical degeneracies.
> > To rule this out, please run the tests more than once.
> > If you get reproducible failures please report a bug!
> > 
> > =========================== 1 error in 0.16 seconds 
> > ============================
> > make[1]: *** [override_dh_auto_install] Error 1
The failing docstring indeed contains U+2013 EN DASH, it is taken from
/usr/lib/python2.7/dist-packages/sklearn/feature_extraction/text.py
(package python-sklearn). In jessie (0.14.1-3) it says "Transform a count
matrix to a normalized tf or tf–idf representation" when in sid (0.15.2-3)
it contains a normal ASCII hyphen instead, so this FTBFS is jessie-only.
The solution is probably to fix bimdp/nodes/autogen.py in mdp to support
non-ASCII docstrings.

-- 
WBR, wRAR

Attachment: signature.asc
Description: Digital signature

Reply via email to