error with lilypond-book

2012-07-07 Thread Dr. med. Kai Lautenschläger
Hi all,

I am trying to get my way into lilypond-book. After reading the manual, I 
started and got the following error (using \version 2.15.40 with jEdit5.0pre1 
on a Mac with OS 10.7.4) when I invoke lilypond-book: (command: 
lilypond-book.py --format=latex %buffer)

Error running external command.
See the activity log about the problem.
Cannot run program /Applications/Lilypond.app/Contents/Resources/bin/python 
(in directory Users/[…]/Documents/02_Musik): error=2, No such file ore 
directory

Even when I move python in the wanted directory or change the directory in the 
jEdit Plugin Options ore change the command for invoking lilypond-book the 
error message will stay the same. Can anyone give me a clue, where to start 
with solving?

I'd be grateful!!!

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


Re: Error in lilypond-book

2009-06-07 Thread Neil Puttock
2009/6/5 Francisco Vila paconet@gmail.com:

 This minimal LaTeX file spits the error when I try to process it
 through lilypond-book:

 \documentclass{article}
 \usepackage{tikz}
 \begin{document}
 Hello
 \end{document}

The temporary logfile this generates to determine the textwidth
includes the following line:

\...@matrix@numberofcolumns=\count106

This is erroneously picked up by the regular expression which searches
for columns=[a number] here:

1750 m = re.search ('columns=([0-9.]*)', parameter_string)
1751 if m:
1752 columns = int (m.group (1))

The search is greedy, but it can't read `\count106' and convert it to
an integer.

The simplest solution would be to change the regexp to the following:

1750 m = re.search ('columns=([0-9.]+)', parameter_string)

This will ensure the search tries to match at least one digit directly
after the equal sign.

Alternatively re.match could be used as a less greedy search, but I'm
not that familiar with lilypond-book and its interaction with LaTeX to
know whether this is desirable, since it would only match strings
which begin with `columns'.

Regards,
Neil


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


Error in lilypond-book

2009-06-05 Thread Francisco Vila
Hello, my input files are too complex to attach, but if anyone is a
lilypond-book user, my question is: in which conditions could one
obtain this error? It happens both on 2.12 and 2.13

textwidth=459.6215pt
columnsep=10.0pt
(./tmpWslxir.aux) )
No pages of output.
Transcript written on tmpWslxir.log.
Traceback (most recent call last):
  File /usr/local/lilypond/usr/bin/lilypond-book, line 2126, in ?
main ()
  File /usr/local/lilypond/usr/bin/lilypond-book, line 2108, in main
chunks = do_file (files[0])
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1981, in do_file
set_default_options (source, default_ly_options, global_options.format)
  File /usr/local/lilypond/usr/bin/lilypond-book, line 973, in
set_default_options
textwidth = get_latex_textwidth (source)
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1770, in
get_latex_textwidth
columns = int (m.group (1))
ValueError: invalid literal for int():

TIA
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org


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


Re: Error in lilypond-book

2009-06-05 Thread Jonathan Kulp

Francisco Vila wrote:

Hello, my input files are too complex to attach, but if anyone is a
lilypond-book user, my question is: in which conditions could one
obtain this error? It happens both on 2.12 and 2.13

textwidth=459.6215pt
columnsep=10.0pt
(./tmpWslxir.aux) )
No pages of output.
Transcript written on tmpWslxir.log.
Traceback (most recent call last):
  File /usr/local/lilypond/usr/bin/lilypond-book, line 2126, in ?
main ()
  File /usr/local/lilypond/usr/bin/lilypond-book, line 2108, in main
chunks = do_file (files[0])
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1981, in do_file
set_default_options (source, default_ly_options, global_options.format)
  File /usr/local/lilypond/usr/bin/lilypond-book, line 973, in
set_default_options
textwidth = get_latex_textwidth (source)
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1770, in
get_latex_textwidth
columns = int (m.group (1))
ValueError: invalid literal for int():

TIA


I'm not sure what would cause the error but if you'd like me to 
try running it you can send me a tarball privately.


Jon

--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: Error in lilypond-book

2009-06-05 Thread Francisco Vila
2009/6/5 Jonathan Kulp jonlancek...@gmail.com:

 I'm not sure what would cause the error but if you'd like me to try running
 it you can send me a tarball privately.

 Jon

Thank you. I have just tracked the problem and it's caused by this
line in the preamble:

\usepackage{tikz}

which is a pity because the tikz package is awesome. I have no idea
about how to debug the interaction between it and lilypond-book.

This minimal LaTeX file spits the error when I try to process it
through lilypond-book:

\documentclass{article}
\usepackage{tikz}
\begin{document}
Hello
\end{document}


-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org


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


Error invoking lilypond-book

2006-09-06 Thread François Planiol-Auger

Hello,

I got trouble in invoking lilypond-book 2.8.6 on Suse Linux 10.1.

I removed lilypond 2.6. and installed 2.8.6 with the commandline  
installer.

lilypond works fine.

But in trying lilypond-book with (modified) file from the user manual  
(see 1), I got the error message permission denied (see 2 and also  
3 = *.log The *.dvi mentionned at the end of 3 doesnt exist)


Thanks in advance for help

François

=
1 File
=
\documentclass[a4paper]{article}

 \begin{document}

 Documents for % @command{lilypond-book}
may freely mix music and text.
 For example,

 \begin{lilypond}
 \relative c' {
   c2 g'2 \times 2/3 { f8 e d } c'2 g4
 }
 \end{lilypond}

 Options are put in brackets.

 \begin{lilypond}
   c'4 f16
 \end{lilypond}

 Larger examples can be put into a separate file, and introduced  
with

% \verb+\lilypondfile+.
%
% \lilypondfile[quote,noindent]{screech-boink.ly}
%
 \end{document}

=
2 System
=
[EMAIL PROTECTED]:~/Desktop/newnotes/myorgelbuch lilypond-book test.lytex
lilypond-book (GNU LilyPond) 2.8.6
Reading test.lytex...
Running latex...This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C  
7.5.4)

entering extended mode
(/tmp/tmpmhdy-z.tex
LaTeX2e 2003/12/01
Babel v3.8d and hyphenation patterns for american, french, german,  
ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch,  
esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar,  
norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish,  
swedish, tur

kish, ukrainian, nohyphenation, loaded.

(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
No file tmpmhdy-z.aux.
textwidth=345.0pt
columnsep=10.0pt
(./tmpmhdy-z.aux) )
No pages of output.
Transcript written on tmpmhdy-z.log.
Dissecting...
Traceback (most recent call last):
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1772, in ?
main ()
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1726, in main
chunks = do_file (file)
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1651, in  
do_file

do_process_cmd (chunks, input_fullname)
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1507, in  
do_process_cmd

write_file_map (all_lys, input_name)
  File /usr/local/lilypond/usr/bin/lilypond-book, line 1488, in  
write_file_map

snippet_map = open ('snippet-map.ly', 'w')
IOError: [Errno 13] Permission denied: 'snippet-map.ly'
[EMAIL PROTECTED]:~/Desktop/newnotes/myorgelbuch

3 *.log
=
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)  
(format=latex 2006.9.2)  5 SEP 2006 23:39

entering extended mode
**test.ly
(./test.lytex
LaTeX2e 2003/12/01
Babel v3.8d and hyphenation patterns for american, french, german,  
ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch,  
esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar,  
norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish,  
swedish, tur

kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
No file test.aux.
\openout1 = `test.aux'.

LaTeX Font Info:Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:... okay on input line 3.
LaTeX Font Info:Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:... okay on input line 3.
LaTeX Font Info:Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:... okay on input line 3.
LaTeX Font Info:Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:... okay on input line 3.
LaTeX Font Info:Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:... okay on input line 3.
LaTeX Font Info:Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:... okay on input line 3.
[1

] (./test.aux) )
Here is how much of TeX's memory you used:
200 strings out of 94500
2049 string characters out of 1176770
48348 words of memory out of 350
3455 multiletter control sequences out of 1+5
3640 words of font info for 14 fonts, out of 50 for 2000
580 hyphenation exceptions out of 1000
23i,4n,17p,111b,107s stack positions out of 1500i,500n,5000p,20b, 
5000s


Output written on test.dvi (1 page, 380 bytes).



___

Re: possible error in lilypond-book documentation: indent and noindent

2004-10-30 Thread Graham Percival
On 25-Oct-04, at 9:58 PM, Ben Crowell wrote:
I think the following in the lilypond 2.2 documentation for 
lilypond-book may not be
correct:

  indent=size\unit
sets indentation of the first music system to size, where unit = 
cm, mm, in, or pt. This
option affects LilyPond, not the text layout. For single-line 
fragments, the default is to
use no indentation.
  [snip]
  noindent
sets indentation of the first music system to zero. This option 
affects LilyPond, not the text layout.
This applies to the 2.3 / 2.4 docs as well, but there's some question 
about indenting.  I'm looking into it and will fix the docs.  See the 
docs for 2.4.0 or possibly 2.4.1 (when they're released).

Cheers,
- Graham

___
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user


possible error in lilypond-book documentation: indent and noindent

2004-10-25 Thread Ben Crowell
I think the following in the lilypond 2.2 documentation for lilypond-book may not be
correct:

  indent=size\unit
sets indentation of the first music system to size, where unit = cm, mm, in, or 
pt. This
option affects LilyPond, not the text layout. For single-line fragments, the 
default is to
use no indentation.
  [snip]
  noindent
sets indentation of the first music system to zero. This option affects LilyPond, 
not the text layout.

This seems to imply that the noindent option would be useless, at least for one-line
fragments, since the default is no indentation. Experiments seem to show that the 
default
indentation is nonzero, both for single-line fragments and for multi-line fragments.
There is a change when I switch from no options at all to using the noindent option.

Then again, I may simply be misinterpreting the manual, or misinterpreting my own
experiments.


___
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user