On 21/04/2012 10:51 AM, ewen wrote:
Hi,
I have a weird problem...
I have install last version of lilypond and lyx, and try to compile the lilypond
exemple in the LyX exemple folder.
The first execution gives me a reaaly pretty pdf. After i close the program i
get an error, and no way for having a pdf-file.

This is the messages that Lyx gives me:


First Execution:
--------------------------------------------------------------------------------
------------------------------------------------------------------
16:12:21.846: Previewing ...
16:12:21.861: (buffer-view pdf2)
16:12:21.904: lilypond-book --safe --pdf --latex-program=pdflatex --lily-output-
dir=ly-pdf "testlily.lytex"
Running: lilypond-book --safe --pdf --latex-program=pdflatex --lily-output-
dir=ly-pdf "testlily.lytex"
16:12:25.483: lilypond-book.py (GNU LilyPond) 2.15.37
16:12:25.483: Reading testlily.lytex...
16:12:25.488: Running `pdflatex' on file
`c:\users\zao\appdata\local\temp\tmpz4usfg.tex' to detect default page settings.
16:12:25.488:
16:12:25.493: Dissecting...
16:12:25.493: Writing snippets...
16:12:25.498: All snippets are up to date...
16:12:25.498: Compiling
C:\Users\zao\AppData\Local\Temp\lyx_tmpdir.Hp3552\lyx_tmpbuf3\testlily.tex...
16:12:25.503: Writing
`C:\Users\zao\AppData\Local\Temp\lyx_tmpdir.Hp3552\lyx_tmpbuf3\testlily.tex'...
16:12:25.503: pdflatex "testlily.tex"
16:12:25.578: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
Running: pdflatex "testlily.tex" > nul
16:12:25.728: entering extended mode
16:12:25.728:
(C:\Users\zao\AppData\Local\Temp\lyx_tmpdir.Hp3552\lyx_tmpbuf3\testlily.tex
16:12:25.728: LaTeX2e <2011/06/27>
16:12:25.733: Babel <v3.8m> and hyphenation patterns for english, afrikaans,
ancientgreek, ar
16:12:25.733: abic, armenian, assamese, basque, bengali, bokmal, bulgarian,
catalan, coptic,
16:12:25.733: croatian, czech, danish, dutch, esperanto, estonian, farsi,
finnish, french, ga
16:12:25.738: lician, german, german-x-2009-06-19, greek, gujarati, hindi,
hungarian, iceland
16:12:25.738: ic, indonesian, interlingua, irish, italian, kannada, kurmanji,
lao, latin, lat
16:12:25.748: vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc,
monogreek, ngerm
16:12:25.753: an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish,
portuguese,
16:12:25.758: romanian, russian, sanskrit, serbian, slovak, slovenian, spanish,
swedish, swis
16:12:25.763: sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian,
uppersorbian, u
16:12:25.768: senglishmax, welsh, loaded.
16:12:25.773:
16:12:26.433: pdflatex "testlily.tex"
16:12:26.504: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
16:12:26.508: entering extended mode
16:12:26.534:
(C:\Users\zao\AppData\Local\Temp\lyx_tmpdir.Hp3552\lyx_tmpbuf3\testlily.tex
16:12:26.538: LaTeX2e <2011/06/27>
16:12:26.542: Babel <v3.8m> and hyphenation patterns for english, afrikaans,
ancientgreek, ar
16:12:26.547: abic, armenian, assamese, basque, bengali, bokmal, bulgarian,
catalan, coptic,
16:12:26.551: croatian, czech, danish, dutch, esperanto, estonian, farsi,
finnish, french, ga
16:12:26.556: lician, german, german-x-2009-06-19, greek, gujarati, hindi,
hungarian, iceland
16:12:26.560: ic, indonesian, interlingua, irish, italian, kannada, kurmanji,
lao, latin, lat
16:12:26.566: vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc,
monogreek, ngerm
16:12:26.570: an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish,
portuguese,
16:12:26.575: romanian, russian, sanskrit, serbian, slovak, slovenian, spanish,
swedish, swis
16:12:26.578: sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian,
uppersorbian, u
16:12:26.584: senglishmax, welsh, loaded.
16:12:26.587:
Running: pdflatex "testlily.tex" > nul
16:12:27.074: Successful preview of format: pdf2


-----------Second execution(Bug)


16:13:26.361: Previewing ...
16:13:26.381: (buffer-view pdf2)
16:13:26.421: lilypond-book --safe --pdf --latex-program=pdflatex --lily-output-
dir=ly-pdf "testlily.lytex"
Running: lilypond-book --safe --pdf --latex-program=pdflatex --lily-output-
dir=ly-pdf "testlily.lytex"
16:13:27.727: Usage: lilypond [OPTION]... FILE...
16:13:27.732:
16:13:27.735: Typeset music and/or produce MIDI from FILE.
16:13:27.737:
16:13:27.738: LilyPond produces beautiful music notation.
16:13:27.738: For more information, see http://lilypond.org
16:13:27.743:
16:13:27.743: Options:
16:13:27.748: -d, --define-default=SYM[=VAL] set Scheme option SYM to VAL
(default: #t).
16:13:27.753: Use -dhelp for help.
16:13:27.753: -e, --evaluate=EXPR evaluate scheme code
16:13:27.758: -f, --formats=FORMATs dump FORMAT,... Also as separate options:
16:13:27.758: --pdf generate PDF (default)
16:13:27.758: --png generate PNG
16:13:27.764: --ps generate PostScript
16:13:27.766: -h, --help show this help and exit
16:13:27.768: -H, --header=FIELD dump header field FIELD to file
16:13:27.770: named BASENAME.FIELD
16:13:27.771: -I, --include=DIR add DIR to search path
16:13:27.772: -i, --init=FILE use FILE as init file
16:13:27.773: -l, --loglevel=LOGLEVEL print log messages according to LOGLEVEL.
Possible values are:
16:13:27.781: NONE, ERROR, WARNING, BASIC, PROGRESS, INFO (default) and DEBUG.
16:13:27.786: -o, --output=FILE write output to FILE (suffix will be added)
16:13:27.790: --relocate relocate using directory of lilypond program
16:13:27.793: -s, --silent no progress, only error messages (equivalent to
loglevel=ERROR)
16:13:27.797: -v, --version show version number and exit
16:13:27.802: -V, --verbose be verbose (equivalent to loglevel=DEBUG)
16:13:27.805: -w, --warranty show warranty and copyright
16:13:27.808:
16:13:27.812: Report bugs via http://post.gmane.org/post.php?
group=gmane.comp.gnu.lilypond.bugs
16:13:27.816:

Interesting that it gives you the USAGE information here, as if it did not understand some of the options passed to it. It then seems to proceed to processing the file, though:

16:13:27.820: lilypond-book.py (GNU LilyPond) 2.15.37
16:13:27.823: Reading testlily.lytex...
16:13:27.828: Running `pdflatex' on file
`c:\users\zao\appdata\local\temp\tmpqc1h8c.tex' to detect default page settings.
16:13:27.833:
16:13:27.836: Dissecting...
16:13:27.838: Writing snippets...
16:13:27.842: Processing...
16:13:27.844: Running lilypond...
16:13:27.849: command failed: lilypond --formats=ps -dbackend=eps -I "ly-pdf" -I
"..\" --formats=eps --pdf -dinclude-eps-fonts -dgs-load-fonts -deps-box-
padding=3.000000 -dread-file-list -dno-strip-output-di
16:13:27.853: r
"C:\Users\zao\AppData\Local\Temp\lyx_tmpdir.Hp2536\lyx_tmpbuf2\ly-pdf\snippet-
names-528637219.ly"
16:13:27.858: Child returned 2
C:\Users\Vincent\Documents\LyX\source\lyx20x\src\support\Systemcall.cpp(270):
Systemcall: 'lilypond-book --safe --pdf --latex-program=pdflatex --lily-output-
dir=ly-pdf "testlily.lytex"' finished with exit code 1
Error: Cannot convert file
----------------------------------------
An error occurred while running:
lilypond-book --safe --pdf --latex-program=pdflatex --lily-output-dir=ly-pdf
"testlily.lytex"
16:13:29.357: Error while previewing format: pdf2


Best



Do you still get this issue? I could not reproduce the problem. If it is reproducable, it would be worth investigating further.

Cheers,
Julien

Reply via email to