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. Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 work: +49 2405 49936-424 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org