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.


In my case I'm on a MacOS X and since I installed lilypond as a macos
package I have to point to the lilypond executable from the config.py
file like this:

  pnglily_lilypond =
'/Applications/LilyPond.app/Contents/Resources/bin/lilypond'


You can also contact the author of the lilypond extension Wei-Wei Guo
at wwgu...@gmail.com


On Sun, Jul 25, 2010 at 5:00 PM, Federico Bruni <fedel...@gmail.com> wrote:
> Ok, I managed to make the extension work (stupid me, I put two
> extensions = ).
>
> But now the extension seems to have a problem.
> It creates the .ly file in /tmp but the .png is not created so the build
> fails.
>
> Please find the log attached.
>
> I guess this (from the README in lilypond extension) is optional:
>
> Installing
> ==========
>
> - A new config 'pnglily_fontsize', which can be used to set fontsize of
>  'lily' role and 'lily' directive. ::
>
>     pnglily_fontsize = ['6', '-3']
>
>  The first value is for 'lily' role setting in absolute fontsize. The
>  second value is for 'lily' directive setting in relative fontsize.
>
> I wonder: why putting it in Installing section?
> Maybe is it required?
>
> I've tried to put in conf.py:
>
> pnglily_fontsize = ['6', '-3']
>
> But I get the same errors.
>
> Cheers,
> Federico
>
> Il giorno dom, 25/07/2010 alle 22.36 +0200, Federico Bruni ha scritto:
>> I've realized that the lilypond.py file found in the mailing list was
>> not enough.
>> I've downloaded the complete package of lilypond-1.0 here:
>>
>> http://bitbucket.org/birkenfeld/sphinx-contrib/downloads
>>
>> I've also changed the path in conf.py:
>>
>>
>> sys.path.append(os.path.abspath('exts/lilypond/sphinxcontrib'))
>>
>> extensions = ['lilypond']
>>
>>
>>
>> But again lilypond code is not rendered and I get a warning which says:
>>
>> (ERROR/3) Unknown directive type "lily"
>>
>> I attach the very simple file I'm trying to process.
>> Maybe there's some synthax error?
>>
>> Any hint appreciated.
>>
>> Thanks,
>> Federico
>>
>>
>>
>> Il giorno dom, 25/07/2010 alle 07.24 -0700, Federico Bruni ha scritto:
>> > Hi all,
>> >
>> > I'm a brand new Sphinx user (really impressed by your software).
>> >
>> > I'm planning to write a tutorial about LilyPond (http://lilypond.org/)
>> > and I've found out that last year a specific extension for LilyPond
>> > was written:
>> >
>> > http://groups.google.com/group/sphinx-dev/browse_thread/thread/e6fb63b23a539714/0dde66d7970d7e5d?lnk=gst&q=lilypond#0dde66d7970d7e5d
>> >
>> > I'm trying to use it, but it's not working.
>> >
>> > Here's what 've done:
>> >
>> > * started a project with sphinx-quickstart
>> > * added file lilypond.py (taken from thread above) in the subdrectory
>> > 'lily' in the root dir of my project
>> > * added these line in conf.py:
>> >
>> > sys.path.append(os.path.abspath('lily'))
>> >
>> > extensions = ['lilypond']
>> >
>> > Then I add a lilypond snippet in a .rst file:
>> >
>> > .. lily::
>> >
>> >    \relative c'' {
>> >      c4 a d c
>> >    }
>> >
>> > When I compile with 'make html' I get this error:
>> >
>> > (ERROR/3) Unknown directive type "lily".
>> >
>> > What I'm missing?
>> >
>> > Thanks in advance for your help.
>> > 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.
>
>



-- 
Vadim Gubergrits

-- 
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.

Reply via email to