lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: python error running make doc


From: Jonas Hahnfeld
Subject: Re: python error running make doc
Date: Sat, 11 Apr 2020 14:44:50 +0200
User-agent: Evolution 3.36.1

Am Samstag, den 11.04.2020, 14:33 +0200 schrieb Federico Bruni:
> Fedora 31. /usr/bin/python points to version 3.7.6.
> I'm running `make doc` in the translation branch and I get this error:
> 
> $ make -j3 doc
> GNUmakefile:30: warning: overriding recipe for target 'po-update'
> /home/fede/src/lilypond-translation/stepmake/stepmake/podir-targets.make:14: 
> warning: ignoring old recipe for target 'po-update'
> Making Documentation/po/out-www/messages (hard links)
> Making input/regression/out-www/collated-files.list < 1359 files
> Making input/regression/out-www/version.itexi
> Making input/regression/out-www/weblinks.itexi
> Making input/regression/out-www/AAA-intro-regression.texi < tely
> Making input/regression/out-www/collated-files.tely
> Making input/regression/out-www/collated-files.texi < tely
> Traceback (most recent call last):
>   File "../../scripts/lilypond-book.py", line 69, in <module>
>     import lilylib as ly
>   File "/home/fede/src/lilypond-translation/python/lilylib.py", line 169
>     print('command failed:', cmd, file=sys.stderr)
>                                       ^
> SyntaxError: invalid syntax
> make[3]: *** [../../make/ly-rules.make:25: 
> out-www/AAA-intro-regression.texi] Error 1
> make[3]: *** Waiting for unfinished jobs....
> Traceback (most recent call last):
>   File "../../scripts/lilypond-book.py", line 69, in <module>
>     import lilylib as ly
>   File "/home/fede/src/lilypond-translation/python/lilylib.py", line 169
>     print('command failed:', cmd, file=sys.stderr)
>                                       ^
> SyntaxError: invalid syntax

This is odd, this "syntax" works fine for Python 3. However I see the
mentioned error when pasting the line into Python 2. Could you double-
check that your build indeed uses Python 3 (as is required for master)?

> make[3]: *** [../../make/ly-rules.make:36: out-www/collated-files.texi] 
> Error 1
> Traceback (most recent call last):
>   File 
> "/home/fede/src/lilypond-translation/scripts/build/create-weblinks-itexi.py", 
> line 601, in <module>
>     make_download_source("downloadStableSource", VERSION_STABLE, lang)
>   File 
> "/home/fede/src/lilypond-translation/scripts/build/create-weblinks-itexi.py", 
> line 453, in make_download_source
>     make_macro(macroLang(name,lang), string)
>   File 
> "/home/fede/src/lilypond-translation/scripts/build/create-weblinks-itexi.py", 
> line 428, in make_macro
>     print(string.encode('utf-8'))
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 
> 75: ordinal not in range(128)

Similarly, I remember that calling .encode() was required for Python 3
but didn't work for Python 2 (so I had to do it when switching). Maybe
the same problem as above?

Jonas

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]