[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: convert.ly error message - 64bit Mac - Catalina
From: |
David Wright |
Subject: |
Re: convert.ly error message - 64bit Mac - Catalina |
Date: |
Fri, 3 Jul 2020 17:40:35 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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.