lilypond-devel
[Top][All Lists]
Advanced

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

Re: check_translation crashes


From: Francisco Vila
Subject: Re: check_translation crashes
Date: Fri, 13 Mar 2020 19:50:10 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

El 8/3/20 a las 18:33, Jonas Hahnfeld escribió:
Am Sonntag, den 08.03.2020, 18:29 +0100 schrieb Jean-Charles
Malahieude:
Le 08/03/2020 à 18:16, Jonas Hahnfeld a écrit :
Am Samstag, den 07.03.2020, 11:27 +0100 schrieb Jean-Charles
Malahieude:
Hi all,

As I'm done with the French translations for 2.20, I'd like to now take
care of 2.21 but… my workflow is now broken and I'm not able to diagnose
what's wrong. The only change in the body of check_translation.py since
2009 has been introduced with issue 5646. A "python --version" gives 3.7.6.

Yes, that's fallout from the switch to Python 3 😞 please apply the one
-liner from
https://sourceforge.net/p/testlilyissues/issues/5838/
. If
that also works on your system, I'll likely super-fast-track this.


YES! works like a charm! 187 Ko like the one Franciso sent me privately
yesterday night.

It might be useful in other places as well, I don't know.

What do you mean? I hope I got most other scripts covered. Please let
me know if I missed other as well.

Jonas


Now it crashes for me.

$ python --version
Python 2.7.16

$ python3 --version
Python 3.7.3

Now the script sees $(PYTHON) as python2

Traceback (most recent call last):
File "/home/fravd/source/lilypond/scripts/auxiliar/check_translation.py", line 168, in <module>
    main ()
File "/home/fravd/source/lilypond/scripts/auxiliar/check_translation.py", line 165, in main
    do_file (i, list(langdefs.LANGDICT.keys ()))
File "/home/fravd/source/lilypond/scripts/auxiliar/check_translation.py", line 96, in do_file
    sys.stdout.write (diff_string)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 1941: ordinal not in range(128)
make: *** [GNUmakefile:393: check-translation] Error 1

But if I force python3 here, it works.

How to make python3 the default for all lilypond build?

--
Francisco Vila, Ph.D. - Badajoz (Spain)
paconet.org , lilypond.es



reply via email to

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