Your message dated Mon, 14 Oct 2013 21:45:46 +0200
with message-id <[email protected]>
and subject line Re: Bug#725788: dh-python: python3.3 setup.py clean fails with
UnicodeDecodeError
has caused the Debian Bug report #725788,
regarding dh-python: python3.3 setup.py clean fails with UnicodeDecodeError
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
725788: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725788
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-python
Version: 1.20131003-1
Severity: normal
Dear Maintainer,
*** Please consider answering these questions, where appropriate ***
While packaging python-sql with dh_pyhton2/dh_python3 I hit the
following problem:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 54:
ordinal not in range(128)
E: pybuild pybuild:255: clean: plugin distutils failed with: exit
code=1: python3.3 setup.py clean
(complete build log and rules file attached)
I am able to build another package (vatnumber) with the same
configuration. I tried to remove non-ASCII 'é' from 'Cédric Krier' in
setup.py, but had no success.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable'), (500, 'oldstable'), (400,
'unstable'), (300, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.9-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages dh-python depends on:
pn python3:any <none>
dh-python recommends no packages.
dh-python suggests no packages.
-- no debconf information
dpkg-buildpackage: source package python-sql
dpkg-buildpackage: source version 0.2-1
dpkg-buildpackage: source changed by Mathias Behrle <[email protected]>
dpkg-source --before-build python-sql
dpkg-source: info: using options from python-sql/debian/source/options: --compression=xz --compression-level=9
fakeroot debian/rules clean
dh clean --with python2,python3 --buildsystem=pybuild
dh_testdir -O--buildsystem=pybuild
debian/rules override_dh_auto_clean
make[1]: Entering directory `/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/python-sql'
mv python_sql.egg-info debian/python_sql.hen-info
mv PKG-INFO debian/PKG-INFO.hen
dh_auto_clean
running clean
removing '/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/python-sql/.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
Traceback (most recent call last):
File "setup.py", line 44, in <module>
version=get_version(),
File "setup.py", line 40, in get_version
init = read(os.path.join('sql', '__init__.py'))
File "setup.py", line 36, in read
return open(os.path.join(os.path.dirname(__file__), fname)).read()
File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 54: ordinal not in range(128)
E: pybuild pybuild:255: clean: plugin distutils failed with: exit code=1: python3.3 setup.py clean
dh_auto_clean: pybuild --clean -i python{version} -p 3.3 --dir . returned exit code 13
make[1]: *** [override_dh_auto_clean] Error 13
make[1]: Leaving directory `/home/mathiasb/bin/tryton/debian_workspace_upstream/workdirs/tmp/python-sql'
make: *** [clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
#!/usr/bin/make -f
#PACKAGE_NAME := $(shell python setup.py --name)
PACKAGE_NAME := python_sql
#export PYBUILD_NAME=$(PACKAGE_NAME)
export PYBUILD_DESTDIR_python2=debian/python-sql/
export PYBUILD_DESTDIR_python3=debian/python3-sql/
%:
dh ${@} --with python2,python3 --buildsystem=pybuild
override_dh_auto_clean:
mv $(PACKAGE_NAME).egg-info debian/$(PACKAGE_NAME).hen-info
mv PKG-INFO debian/PKG-INFO.hen
dh_auto_clean
override_dh_auto_install:
dh_auto_install
rm -rf *.egg-info
mv debian/$(PACKAGE_NAME).hen-info $(PACKAGE_NAME).egg-info
mv debian/PKG-INFO.hen PKG-INFO
override_dh_builddeb:
dh_builddeb -- -Zxz -z9
--- End Message ---
--- Begin Message ---
Fixed the rules file in python-sql.
Thanks for your help,
Mathias
signature.asc
Description: PGP signature
--- End Message ---