[Python-modules-team] Bug#777381: python-stdeb: py2dsc fails with non-ascii characters

Lionel Félicité lfelicite at clever-age.com
Wed May 27 10:35:09 UTC 2015


Hi,

I got this bug too today.

This is what I got when I set -m to 'Lionel Félicité'


lfelicite at debian8:~/virt-back$ py2dsc -m 'Lionel Félicité <
> lfelicite at clever-age.com>' virt-back-0.1.0.tar.gz
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> running the following command in directory:
> deb_dist/tmp_py2dsc/virt-back-0.1.0
> /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc
> --dist-dir=/home/lfelicite/virt-back/deb_dist
> --use-premade-distfile=/home/lfelicite/virt-back/virt-back-0.1.0.tar.gz
> --maintainer=Lionel Félicité <lfelicite at clever-age.com>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> running sdist_dsc
> running egg_info
> writing virt_back.egg-info/PKG-INFO
> writing top-level names to virt_back.egg-info/top_level.txt
> writing dependency_links to virt_back.egg-info/dependency_links.txt
> reading manifest file 'virt_back.egg-info/SOURCES.txt'
> writing manifest file 'virt_back.egg-info/SOURCES.txt'
> Traceback (most recent call last):
>   File "setup.py", line 32, in <module>
>     scripts=['virt-back'],
>   File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
>     dist.run_commands()
>   File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
>     self.run_command(cmd)
>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
>     cmd_obj.run()
>   File "/usr/lib/python2.7/dist-packages/stdeb/command/sdist_dsc.py", line
> 141, in run
>     remove_expanded_source_dir=self.remove_expanded_source_dir,
>   File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 1166, in
> build_dsc
>     -- %(maintainer)s  %(date822)s\n"""%debinfo.__dict__)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 112:
> ordinal not in range(128)
> ERROR running: /usr/bin/python setup.py --command-packages stdeb.command
> sdist_dsc --dist-dir=/home/lfelicite/virt-back/deb_dist
> --use-premade-distfile=/home/lfelicite/virt-back/virt-back-0.1.0.tar.gz
> --maintainer=Lionel Félicité <lfelicite at clever-age.com>
> ERROR in deb_dist/tmp_py2dsc/virt-back-0.1.0


This is what I got when i set -m to 'Lionel Felicite'

lfelicite at debian8:~/virt-back$ py2dsc -m 'Lionel Felicite <
> lfelicite at clever-age.com>' virt-back-0.1.0.tar.gz
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> running the following command in directory:
> deb_dist/tmp_py2dsc/virt-back-0.1.0
> /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc
> --dist-dir=/home/lfelicite/virt-back/deb_dist
> --use-premade-distfile=/home/lfelicite/virt-back/virt-back-0.1.0.tar.gz
> --maintainer=Lionel Felicite <lfelicite at clever-age.com>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> running sdist_dsc
> running egg_info
> writing virt_back.egg-info/PKG-INFO
> writing top-level names to virt_back.egg-info/top_level.txt
> writing dependency_links to virt_back.egg-info/dependency_links.txt
> reading manifest file 'virt_back.egg-info/SOURCES.txt'
> writing manifest file 'virt_back.egg-info/SOURCES.txt'
> CALLING dpkg-source -b virt-back-0.1.0 virt-back_0.1.0.orig.tar.gz (in dir
> /home/lfelicite/virt-back/deb_dist)
> dpkg-source: info: utilisation du format source « 3.0 (quilt) »
> dpkg-source: info: construction de virt-back en utilisant le
> ./virt-back_0.1.0.orig.tar.gz existant
> dpkg-source: info: construction de virt-back dans
> virt-back_0.1.0-1.debian.tar.xz
> dpkg-source: info: construction de virt-back dans virt-back_0.1.0-1.dsc
> dpkg-buildpackage: paquet source virt-back
> dpkg-buildpackage: version source 0.1.0-1
> dpkg-buildpackage: distribution source unstable
> dpkg-buildpackage: source changé par Lionel Felicite <
> lfelicite at clever-age.com>
>  dpkg-source --before-build virt-back-0.1.0
>  fakeroot debian/rules clean
> dh clean --with python2 --buildsystem=pybuild
>    dh_testdir -O--buildsystem=pybuild
>    dh_auto_clean -O--buildsystem=pybuild
> I: pybuild base:170: python2.7 setup.py clean
> running clean
> removing
> '/home/lfelicite/virt-back/deb_dist/virt-back-0.1.0/.pybuild/pythonX.Y_2.7/build'
> (and everything under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-2.7' does not exist -- can't clean it
>    dh_clean -O--buildsystem=pybuild
>  dpkg-source -b virt-back-0.1.0
> dpkg-source: info: utilisation du format source « 3.0 (quilt) »
> dpkg-source: info: construction de virt-back en utilisant le
> ./virt-back_0.1.0.orig.tar.gz existant
> dpkg-source: avertissement: suppression du répertoire virt_back.egg-info
> ignorée
> dpkg-source: avertissement: suppression du fichier
> virt_back.egg-info/top_level.txt ignorée, utilisez --include-removal pour
> la prendre en compte
> dpkg-source: avertissement: suppression du fichier
> virt_back.egg-info/PKG-INFO ignorée, utilisez --include-removal pour la
> prendre en compte
> dpkg-source: avertissement: suppression du fichier
> virt_back.egg-info/dependency_links.txt ignorée, utilisez --include-removal
> pour la prendre en compte
> dpkg-source: avertissement: suppression du fichier
> virt_back.egg-info/SOURCES.txt ignorée, utilisez --include-removal pour la
> prendre en compte
> dpkg-source: info: construction de virt-back dans
> virt-back_0.1.0-1.debian.tar.xz
> dpkg-source: info: construction de virt-back dans virt-back_0.1.0-1.dsc
>  dpkg-genchanges -S -sa >../virt-back_0.1.0-1_source.changes
> dpkg-genchanges: inclusion du code source original dans l'envoi (« upload
> »)
>  dpkg-source --after-build virt-back-0.1.0
> dpkg-buildpackage: envoi complet (inclusion du code source d'origine)
> dpkg-source: avertissement: extraction d'un paquet source non signé
> (virt-back_0.1.0-1.dsc)
> dpkg-source: info: extraction de virt-back dans virt-back-0.1.0
> dpkg-source: info: extraction de virt-back_0.1.0.orig.tar.gz
> dpkg-source: info: extraction de virt-back_0.1.0-1.debian.tar.xz


Is there aonother way to circumvent this bug ? I love when my family name
well written ;-)

Thanks.

-- 
Lionel *FÉLICITÉ* - http://www.clever-age.com/
Tél : +33 1 53 34 66 10

Clever Age - Digital Architecture
Clever Garden - Digital Landscape
Clever Presence - Digital Running
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20150527/44ca8c78/attachment.html>


More information about the Python-modules-team mailing list