On 26. 05. 20, 13:38, Jiri Slaby wrote: > Hi, > > while b4 builds fine with python 3.8.3, python 3.6.5 (SLE15-SP2) fails > to build it: >> [ 3s] + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' >> [ 3s] Traceback (most recent call last): >> [ 3s] File "setup.py", line 28, in >> [ 3s] version=find_version('b4/__init__.py'), >> [ 3s] File "setup.py", line 18, in find_version >> [ 3s] version_file = read(source) >> [ 3s] File "setup.py", line 14, in read >> [ 3s] return open(os.path.join(os.path.dirname(__file__), fname)).read() >> [ 3s] File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode >> [ 3s] return codecs.ascii_decode(input, self.errors)[0] >> [ 3s] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 915: ordinal not in range(128) >> [ 3s] error: Bad exit status from /var/tmp/rpm-tmp.nPNYVp (%build) > > It is the tick in PASS_FANCY on line 41 in b4/__init__.py. > > I have zero python-fu, but I believe it's because 3.6 tries to load the > file using ascii, while 3.8 defaults to utf-8... The attached patch fixes it. But as I wrote, I have no idea whether it is correct at all. thanks, -- js suse labs