[Python-modules-team] Bug#777381: python-stdeb: py2dsc fails with non-ascii characters
carandraug
carandraug+dev at gmail.com
Sat Feb 7 20:14:21 UTC 2015
Package: python-stdeb
Version: 0.8.2-4
Severity: normal
The py2dsc program errors with non-ascii characters. My environment is set
up for UTF-8:
$ env | grep LC
LC_PAPER=en_GB.utf8
LC_MONETARY=en_GB.utf8
LC_NUMERIC=en_GB.utf8
LC_MEASUREMENT=en_GB.utf8
LC_TIME=en_GB.utf8
And my terminal (gnome-terminal) has character encoding set to "Unicode (UTF-8)"
Showing the error:
$ py2dsc -m 'Carnë Draug <carandraug+dev at gmail.com>' serpent-1.8.tar.gz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/serpent-1.8
/usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/carandraug/dev/debian/deb_dist --use-premade-distfile=/home/carandraug/dev/debian/serpent-1.8.tar.gz --maintainer=Carnë Draug <carandraug+dev at gmail.com>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running sdist_dsc
running egg_info
writing serpent.egg-info/PKG-INFO
writing top-level names to serpent.egg-info/top_level.txt
writing dependency_links to serpent.egg-info/dependency_links.txt
reading manifest file 'serpent.egg-info/SOURCES.txt'
writing manifest file 'serpent.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "setup.py", line 164, in <module>
"Topic :: Software Development"
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 104: ordinal not in range(128)
ERROR running: /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/carandraug/dev/debian/deb_dist --use-premade-distfile=/home/carandraug/dev/debian/serpent-1.8.tar.gz --maintainer=Carnë Draug <carandraug+dev at gmail.com>
ERROR in deb_dist/tmp_py2dsc/serpent-1.8
-- System Information:
Debian Release: 8.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (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.20141022
ii python 2.7.8-2
ii python-requests 2.4.3-4
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.23
ii python-all 2.7.8-2
Versions of packages python-stdeb suggests:
pn python-all-dev <none>
-- no debconf information
More information about the Python-modules-team
mailing list