Help: can't invoke lilypond-book (python exception)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help: can't invoke lilypond-book (python exception)

Alon Sho'er

I downloaded python to be able to run lilypond-book, but it doesn't seem to work.

Upon invoking lilypond-book I get the following error:

 

File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 590
    os.mkdir (global_options.output_dir, 0777)
                                            ^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers


Has anyone experienced this? I would like to use lilypond-book on html files.

I have lilypond version 2.18.2 and python version 3.8.1

Reply | Threaded
Open this post in threaded view
|

Re: Help: can't invoke lilypond-book (python exception)

David Kastrup
Alon Sho'er <[hidden email]> writes:

> I downloaded python to be able to run lilypond-book, but it doesn't seem to work.
>
> Upon invoking lilypond-book I get the following error:
>
>  
>
> File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 590
>     os.mkdir (global_options.output_dir, 0777)
>                                             ^
> SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for
> octal integers
>
> Has anyone experienced this? I would like to use lilypond-book on html files.
>
> I have lilypond version 2.18.2 and python version 3.8.1

LilyPond 2.18 uses Python 2.  So will LilyPond 2.20 (to appear really
soon now).  LilyPond 2.21 will be working with Python 3.

--
David Kastrup
My replies have a tendency to cause friction.  To help mitigating
damage, feel free to forward problematic posts to me adding a subject
like "timeout 1d" (for a suggested timeout of 1 day) or "offensive".