Re: Strange problem with the LilyPond module

2012-04-05 Thread Julien Rioux

On 05/04/2012 5:52 AM, Tao Cumplido wrote:

Tao Cumplido  gmx.net>  writes:



You may also add the command option "--loglevel=DEBUG" to the
lilypond-book converter.


Where would I do that?


Never mind, I found it. The log below is from the example file lilypond.lyx.

I pasted the log here since gmane didn't allow me to post it.
http://pastebin.com/JVzHBixa




So lilypond-book complains that a -systems.count file is missing. This 
is either a bug in lilypond (it should generate the -systems.count file 
always) or in lilypond-book (it should know that -systems.count files 
are not always generated). In any case in should probably be 
investigated with the smallest possible example and reported to the 
lilypond project.


In the meantime you may try to get around the bug by adding the 
command-line option "--skip-lily-check" to the lilypond-book converter.


Cheers,
Julien



Re: Strange problem with the LilyPond module

2012-04-05 Thread Tao Cumplido
Tao Cumplido  gmx.net> writes:


> > You may also add the command option "--loglevel=DEBUG" to the 
> > lilypond-book converter.
> 
> Where would I do that?

Never mind, I found it. The log below is from the example file lilypond.lyx.

I pasted the log here since gmane didn't allow me to post it.
http://pastebin.com/JVzHBixa



Re: Strange problem with the LilyPond module

2012-04-04 Thread Tao Cumplido
Julien Rioux  physics.utoronto.ca> writes:

> 
> Is there anything else in View > View Messages that might be useful in 
> debugging?

As far as I remember no, but I'll try again as soon as I can and post the whole
log.

> You may also add the command option "--loglevel=DEBUG" to the 
> lilypond-book converter.

Where would I do that?

> When you run lilypond-book manually, what is 
> the exact command line that you used?

lilypond-book --safe --pdf --latex-program=pdflatex --lily-output-dir=tmpdir
lilypond.lytex

I tried to Export > LilyPond-Book (LaTeX) but I get an utf-8 error because there
are some unicode characters in my document not recognized by latex, so maybe
it'd be good to have an export option LilyPond-Book (XeTeX) or something.

For now I replaced all lilypond code inside lyx with pregenerated images from
lilypond.

Thanks for your help.






Re: Strange problem with the LilyPond module

2012-04-04 Thread Julien Rioux

On 04/04/2012 7:52 AM, Tao Cumplido wrote:

Ok, one moment it worked fine and the other I get this notice that the
lilypond-book --safe etc. command produced an error.
At first I thought it had something to do with the recent installation of
lilypond 2.15.35 so I tried reinstalling it but to no avail.
Then I tried to just use my laptop instead where I had lilypond 2.15.35 already
installed and it worked perfectly fine the last time I worked with it but now
the same error.
Exporting the lytex and running lilypond-book manually works fine.
I then ran gksu lyx from terminal and suddenly the error didn't appear.
Unfortunately this was only true for the lilypond.lyx example file. With gksu
lyx couldn't find the installed linux libertine font anymore which I am using
for my document. Also lyx looks different with gksu so no idea what's going on
there.
In the lyx-output the only thing hinting for the error is this line:
13:43:55.499: Missing set(['a3/lily-c23c9dee-systems.count'])
.../../../src/support/Systemcall.cpp(270): Systemcall: 'lilypond-book --safe
--pdf --latex-program=pdflatex --lily-output-dir=ly-pdf "lilypond.lytex"'
finished with exit code 1




Is there anything else in View > View Messages that might be useful in 
debugging? You may also add the command option "--loglevel=DEBUG" to the 
lilypond-book converter. When you run lilypond-book manually, what is 
the exact command line that you used?


--
Julien



Strange problem with the LilyPond module

2012-04-04 Thread Tao Cumplido
Ok, one moment it worked fine and the other I get this notice that the
lilypond-book --safe etc. command produced an error.
At first I thought it had something to do with the recent installation of
lilypond 2.15.35 so I tried reinstalling it but to no avail.
Then I tried to just use my laptop instead where I had lilypond 2.15.35 already
installed and it worked perfectly fine the last time I worked with it but now
the same error.
Exporting the lytex and running lilypond-book manually works fine.
I then ran gksu lyx from terminal and suddenly the error didn't appear.
Unfortunately this was only true for the lilypond.lyx example file. With gksu
lyx couldn't find the installed linux libertine font anymore which I am using
for my document. Also lyx looks different with gksu so no idea what's going on
there.
In the lyx-output the only thing hinting for the error is this line:
13:43:55.499: Missing set(['a3/lily-c23c9dee-systems.count'])
../../../src/support/Systemcall.cpp(270): Systemcall: 'lilypond-book --safe
--pdf --latex-program=pdflatex --lily-output-dir=ly-pdf "lilypond.lytex"'
finished with exit code 1