11.06.2017 00:08, Axel Braun пишет:
Am Donnerstag, 8. Juni 2017, 23:25:10 CEST schrieb Stefan Bruens:
On Donnerstag, 8. Juni 2017 21:06:41 CEST Bruno Friedmann wrote:
On jeudi, 8 juin 2017 20.35:21 h CEST Axel Braun wrote:
Hi,
I'm currently building some (new) py3 software, and get an error (TW as well as Leap 42.2):
[ 14s] + cd health [ 14s] + python3 setup.py build [ 14s] Traceback (most recent call last): [ 14s] File "setup.py", line 52, in <module> [ 14s] long_description=read('README'), [ 14s] File "setup.py", line 25, in read [ 14s] return open(os.path.join(os.path.dirname(__file__), fname)).read() [ 14s] File "/usr/lib64/python3.4/encodings/ascii.py", line 26, in decode [ 14s] return codecs.ascii_decode(input, self.errors)[0] [ 14s] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4474: ordinal not in range(128) [ 14s] error: Bad exit status from /var/tmp/rpm-tmp.kDPWdM (%build)
Now, if I run the command (unpack the tarball, cd to the directory and do a 'python3 setup.py build') from a local 42.2 VBox-installation , everything works fine.
Any idea what this could be?
Thx Axel
Sometimes you have to put a export LANG=en_US@UTF-8 and LC relative with LANG=Posix or C some python3 believe they have to work with ascii shit.
that's why it work on your local 42.2 Vbox, check env in both.
Actually, the package is broken - typically its a file *shipped as part of the package*, containing some authors name (i.e. containing some UTF-8 code sequences), which is then sourced during the build.
A working local build is just luck in these cases.
Not sure, I could see it as OBS-oddity as well.
Hm, even if I set the LANG explicitly in the build process it fails:
[ 2s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature /home/abuild/rpmbuild/SOURCES/gnuhealth.spec [ 2s] sh: /usr/bin/python: No such file or directory [ 2s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5WViKt [ 2s] + umask 022 [ 2s] + cd /home/abuild/rpmbuild/BUILD [ 2s] + export LANG=en_US.UTF-8
... Each SPEC part runs in its own subshell. You should set it in %build, not in (or in addition to) %prep. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org