[Python-modules-team] Bug#782558: breaks on unicode chars in maintainer name

Michal Čihař nijel at debian.org
Tue Apr 14 07:17:36 UTC 2015


Package: python-stdeb
Version: 0.8.2-4
Severity: normal
File: /usr/bin/py2dsc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi

py2dsc fails when maintainer name contains unicode chars:

# py2dsc --with-python3=true --with-python2=true --maintainer="Michal Čihař <nijel at debian.org>" python-gammu-2.0.tar.gz
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/python-gammu-2.0
/usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/mcihar/debian/deb_dist --use-premade-distfile=/home/mcihar/debian/python-gammu-2.0.tar.gz --maintainer=Michal Čihař <nijel at debian.org> --with-python2=true --with-python3=true
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running sdist_dsc
running egg_info
writing python_gammu.egg-info/PKG-INFO
writing top-level names to python_gammu.egg-info/top_level.txt
writing dependency_links to python_gammu.egg-info/dependency_links.txt
reading manifest file 'python_gammu.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_gammu.egg-info/SOURCES.txt'
Traceback (most recent call last):
  File "setup.py", line 134, in <module>
    ext_modules=[get_module()]
  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 0xc4 in position 112: ordinal not in range(128)
ERROR running: /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/mcihar/debian/deb_dist --use-premade-distfile=/home/mcihar/debian/python-gammu-2.0.tar.gz --maintainer=Michal Čihař <nijel at debian.org> --with-python2=true --with-python3=true
ERROR in deb_dist/tmp_py2dsc/python-gammu-2.0



- -- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.utf8, LC_CTYPE=cs_CZ.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-stdeb depends on:
ii  debhelper          9.20150101
ii  python             2.7.9-1
ii  python-requests    2.4.3-6
ii  python-setuptools  5.5.1-1
pn  python:any         <none>

Versions of packages python-stdeb recommends:
ii  apt-file    2.5.4
ii  dpkg-dev    1.17.25
ii  python-all  2.7.9-1

Versions of packages python-stdeb suggests:
pn  python-all-dev  <none>

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVLL8QAAoJEJwnsxNCt1Edw3wQAKJNVv1ySfalMJZtwKHesxfA
G9Py5+RV5bQvbK+mXPVnj6FISUnyDA50p/TdnHgMNb47TkSjzgkw2HzFGBsuwDCw
ZS3WWJHFqlgacDb26GJK1NMgRTN+CcJyNgiaAH5LO+wWOytNLUakkRyX8n+qlcR/
d2+lRyKlqn3JQ/q8lXMVCC/hclconbnzHAESyMnyR5lFCBEjT+/tUbn89kGNMFA8
XGU9+GukXIcY59xWkVIACeqsnxau0JZmhoFXkgM9w8s3qpfwSGk7lue0apSsXXW4
qaqHqCAFTcCcXqsY4/1p7YL3C0n3aDPt2F2RE2OhIPPEcYr7HPnkUznMmYZsRM/L
T8lhDt/OBgjnDT293jV8R+tbpOg3n13K6baw3MRePxlaANiTICnYS2xyG3vvjvBh
FtmXMeC5EiNnslx8eqyX23XjfyW5StKwzSgiwAN3zVyOD5VnM4rJQ4+ShbVRN93Q
aOPEthIcvCou7QsaLYn56CpL+wBACu1rgOXSxUYYQ6QCDBJFxSw0F3jhOi82HiQI
Xxs/iBi0SzYUnHragOuzK6XhtaanmueMadI5Nopqm6MHeQ5gHT0H4RddqzKAArPH
d76hwgRcQH5Bq+/SAKj3l9evZh9fcN2KcPGTSR5/qVA1tIzuVTwYTCYkj66Q7QL0
LWXqYATYdzkBZdr0hBA6
=CSUP
-----END PGP SIGNATURE-----



More information about the Python-modules-team mailing list