Bug#847172: sagenb-export: FTBFS: UnicodeEncodeError: 'ascii' codec can't encode characters in position 41-42: ordinal not in range(128)
Ximin Luo
infinity0 at debian.org
Wed Dec 7 14:48:00 UTC 2016
Hi Chris, I can't reproduce this, even when setting the locale to various non-UTF values. How are you building this?
X
Chris Lamb:
> Source: sagenb-export
> Version: 2.0-1
> Severity: serious
> Justification: fails to build from source
> User: reproducible-builds at lists.alioth.debian.org
> Usertags: ftbfs
> X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
>
> Dear Maintainer,
>
> sagenb-export fails to build from source in unstable/amd64:
>
> […]
>
> py27 runtests: PYTHONHASHSEED='256193135'
> py27 runtests: commands[0] | python2.7 -m unittest discover
> ...E..
> ======================================================================
> ERROR: test_aleksandra_slapik_44 (test.test_sagenb_writer.ReadSageNB)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "«BUILDDIR»/test/test_sagenb_writer.py", line 39, in test_aleksandra_slapik_44
> ipynb.write(self.tmp_filename(u'WDI projekt - R\xf3\u017cankowski, Kie\u0142pi\u0144ski, Kozok.ipynb'))
> File "«BUILDDIR»/sagenb_export/ipynb_writer.py", line 58, in write
> write(ipynb, filename)
> File "/usr/lib/python2.7/dist-packages/nbformat/__init__.py", line 163, in write
> with io.open(fp, 'w', encoding='utf-8') as f:
> UnicodeEncodeError: 'ascii' codec can't encode characters in position 41-42: ordinal not in range(128)
>
> ----------------------------------------------------------------------
> Ran 6 tests in 0.028s
>
> FAILED (errors=1)
> ERROR: InvocationError: '«BUILDDIR»/.tox/py27/bin/python2.7 -m unittest discover'
> py35 create: «BUILDDIR»/.tox/py35
> py35 inst: «BUILDDIR»/.tox/dist/sagenb_export-2.0.zip
> py35 installed: decorator==4.0.6,devscripts==2.16.11,entrypoints==0.2.2.post2,ipykernel==4.5.0,ipython==5.1.0,ipython-genutils==0.1.0,Jinja2==2.8,jsonschema==2.5.1,jupyter-client==4.4.0,jupyter-core==4.2.0,MarkupSafe==0.23,mistune==0.7.3,nbconvert==4.2.0,nbformat==4.1.0,notebook==4.2.3,pexpect==4.2.0,pickleshare==0.7.4,pkg-resources==0.0.0,pluggy==0.4.0,prompt-toolkit==1.0.9,ptyprocess==0.5.1,py==1.4.31,Pygments==2.1.3,pyzmq==15.4.0,sagenb-export==2.0,simplegeneric==0.8.1,six==1.10.0,terminado==0.6,tornado==4.4.2,tox==2.5.0,traitlets==4.3.1,virtualenv==15.1.0,wcwidth==0.1.7
> py35 runtests: PYTHONHASHSEED='256193135'
> py35 runtests: commands[0] | python3.5 -m unittest discover
> ....E.
> ======================================================================
> ERROR: test_aleksandra_slapik_44 (test.test_sagenb_writer.ReadSageNB)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "«BUILDDIR»/test/test_sagenb_writer.py", line 39, in test_aleksandra_slapik_44
> ipynb.write(self.tmp_filename(u'WDI projekt - R\xf3\u017cankowski, Kie\u0142pi\u0144ski, Kozok.ipynb'))
> File "«BUILDDIR»/sagenb_export/ipynb_writer.py", line 58, in write
> write(ipynb, filename)
> File "/usr/lib/python3/dist-packages/nbformat/__init__.py", line 163, in write
> with io.open(fp, 'w', encoding='utf-8') as f:
> UnicodeEncodeError: 'ascii' codec can't encode characters in position 43-44: ordinal not in range(128)
>
> ----------------------------------------------------------------------
> Ran 6 tests in 0.020s
>
> FAILED (errors=1)
> ERROR: InvocationError: '«BUILDDIR»/.tox/py35/bin/python3.5 -m unittest discover'
> ___________________________________ summary ____________________________________
> ERROR: py27: commands failed
> ERROR: py35: commands failed
> debian/rules:23: recipe for target 'override_dh_auto_test' failed
> make[1]: *** [override_dh_auto_test] Error 1
> make[1]: Leaving directory '«BUILDDIR»'
> debian/rules:9: recipe for target 'build' failed
> make: *** [build] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
>
> […]
>
> The full build log is attached.
>
>
> Regards,
>
>
>
> _______________________________________________
> Reproducible-bugs mailing list
> Reproducible-bugs at lists.alioth.debian.org
> https://lists.alioth.debian.org/mailman/listinfo/reproducible-bugs
>
--
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git
More information about the debian-science-maintainers
mailing list