Il giorno mer, 28/07/2010 alle 00.01 -0400, Vadim Gubergrits ha scritto: > Hi Federico, > > It looks like lilypond failed at some stage. Try to run the > following commands (Linux or MacOS): > > $ mkdir out > $ echo "\relative c'' {c4 a d c}" > music.ly > $ lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts -o > out --png music.ly > > You will have a file `out/music.png` which you will be able to view. > If this doesn't work I would blame the lilypond installation. >
Thanks Vadim, I've found that command in lilypond.py, so I'm starting to figure out what's happening. I think the problem is that the command is not correct. If you check the LilyPond documentation (either 2.12 or 2.13) you can read: -o,--output=FILE Set the default output file to FILE. The appropriate suffix will be added (e.g. .pdf for pdf So -o specifies a file, not a directory. Am I missing something? If you use lilypond-book instead of lilypond, you can use -o as output directory. Maybe lilypond-book could be a better tool for writing music documentation, as its aim is integrating text and music. For example, lilypond documentation is compiled using lilypond-book and texinfo. > > You can also contact the author of the lilypond extension Wei-Wei Guo > at wwgu...@gmail.com > Thanks! I put him in CC, just in case he's not subscribed to the list. I've tried to change this line in lilypond.py: lilypond_args += ['-dbackend=eps', '-dno-gs-load-fonts', '-dinclude-eps-fonts', # '-o', tempdir, '--png'] to something like: lilypond_args += ['--png', '-dpreview'] which works fine in a terminal, but not in sphinx. The extension requires the temporary directory: '-o', tempdir Unfortunately, lilypond seems to need the path of a file. Should I substitute tempdir with something else? I'm not a developer so I beg your pardon in advance in case I said too much stupid things :) Regards, Federico -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.