On Sat 04 Jul 2020 at 00:24:35 (+0200), Hans Åberg wrote: > > With Frescobaldi 3.1.2 using MacPorts lilypond-devel 2.21.2, not the > installer version, on the small attached file, I got the error below. > > -- > Traceback (most recent call last): > File "/opt/local/bin/convert-ly", line 65, in <module> > import lilylib as ly > File "/opt/local/share/lilypond/2.21.2/python/lilylib.py", line 169 > print('command failed:', cmd, file=sys.stderr) > ^ > SyntaxError: invalid syntax > > > The document has not been changed.
Looks like you're running python3 code in python2: $ python2.7 Python 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> cmd = 'xyz' >>> print('abc', cmd, file=sys.stderr) File "<stdin>", line 1 print('abc', cmd, file=sys.stderr) ^ SyntaxError: invalid syntax >>> Cheers, David.