On 2019-11-19 3:29 pm, Артем Тартаковский wrote:
I've tried to convert a MIDI file into LilyPond (version 2-19.83-1) using
the command prompt, but it gives me an error:

  File "C:\Program Files (x86)\LilyPond\usr\bin\midi2ly.py", line 545
    sys.stderr.write ("SKIP: %s\n" % `e`)
                                     ^
SyntaxError: invalid syntax

What's the problem with the code?

It's a compatibility issue between Python 2 and 3. The backtick operator was removed [1] in Python 3, in favor of the repr() procedure.

[1]: https://portingguide.readthedocs.io/en/latest/syntax.html#backticks

It is my understanding the scripts shipping with LilyPond are not expected to be interpretable by Python 3 yet.


-- Aaron Hill

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to