Re: Lilypond-book error messages

2016-10-15 Thread David Kastrup
bostjan k  writes:

> I've installed Lilypond on Windows 10. Converting ly files seems ok.
>
> When I run lilypond-book on the test file, I get the following:
>
> ---
>
> C:\Users\Bostjan\lily\test>lilypond-book --pdf tt2.lytex
> lilypond-book.py (GNU LilyPond) 2.18.2
> Reading tt2.lytex...
> Running `pdflatex' on file
> `c:\users\botjan~1\appdata\local\temp\tmp6cukep.tex' to detect default page
> settings.
>
> lilypond-book.py: warning: Unable to auto-detect default settings:
>
> lilypond-book.py: warning: cannot detect textwidth from LaTeX

Put LaTeX somewhere where lilypond-book can find it (adjust PATH ?).

> stderr_write
> encoded_write (sys.stderr, s)
>   File "C:\Program Files
> (x86)\LilyPond\usr\share\lilypond\current\python\lilylib.py", line 63, in
> encoded_write
> f.write (s.encode (f.encoding or 'utf-8', 'replace'))
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position 21:
> unexpected code byte
>
>
> -
>
>
> I've no idea what to do. 

Write your source file with an utf-8 capable editor.  LilyPond and
lilypond-book cannot deal with anything else.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond-book error messages

2016-10-15 Thread bostjan k
I've installed Lilypond on Windows 10. Converting ly files seems ok.

When I run lilypond-book on the test file, I get the following:

---

C:\Users\Bostjan\lily\test>lilypond-book --pdf tt2.lytex
lilypond-book.py (GNU LilyPond) 2.18.2
Reading tt2.lytex...
Running `pdflatex' on file
`c:\users\botjan~1\appdata\local\temp\tmp6cukep.tex' to detect default page
settings.

lilypond-book.py: warning: Unable to auto-detect default settings:

lilypond-book.py: warning: cannot detect textwidth from LaTeX
Dissecting...
Writing snippets...
All snippets are up to date...
Linking files...
Traceback (most recent call last):
  File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 776,
in ?
main ()
  File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 759,
in main
chunks = do_file (files[0])
  File "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py", line 621,
in do_file
progress (_ ("Compiling %s...") % output_filename)
  File "C:\Program Files
(x86)\LilyPond\usr\share\lilypond\current\python\lilylib.py", line 142, in
progress
print_logmessage ("PROGRESS", s, fullmessage, newline);
  File "C:\Program Files
(x86)\LilyPond\usr\share\lilypond\current\python\lilylib.py", line 128, in
print_logmessage
stderr_write (s + '\n')
  File "C:\Program Files
(x86)\LilyPond\usr\share\lilypond\current\python\lilylib.py", line 121, in
stderr_write
encoded_write (sys.stderr, s)
  File "C:\Program Files
(x86)\LilyPond\usr\share\lilypond\current\python\lilylib.py", line 63, in
encoded_write
f.write (s.encode (f.encoding or 'utf-8', 'replace'))
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position 21:
unexpected code byte


-


I've no idea what to do. 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lilypond-book-error-messages-tp195358.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user