Re: Errors running lilypond-book

2014-03-05 Thread David Kastrup
David Kastrup d...@gnu.org writes:

 lilypond-book.py: error: file not found: screech-and-boink.ly

 Traceback (most recent call last):
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
 main ()
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in 
 main
 chunks = do_file (files[0])
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611, in 
 do_file
 chunks = find_toplevel_snippets (source, global_options.formatter)
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in 
 find_toplevel_snippets
 snip = klass (type, m, formatter, line_number, global_options)
   File C:\Program 
 Files\LilyPond\usr\share\lilypond\current\python\book_snippets.py, line 
 815, in __init__
 global_options.include_path, global_options.original_dir)).read ()
   File C:\Program 
 Files\LilyPond\usr\share\lilypond\current\python\book_base.py, line 27, in 
 find_file
 exit (1)
 TypeError: 'str' object is not callable

 What happens if you just call python and type

 exit(1)

 at its prompt?

Any other takers using Windows?  Is this version of Python something we
distribute/install?  Is the result different for

import sys
sys.exit(1)

?

-- 
David Kastrup

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


RE: Errors running lilypond-book

2014-03-04 Thread Daniel Rosen
 -Original Message-
 From: David Kastrup [mailto:d...@gnu.org]
 Sent: Tuesday, February 25, 2014 10:09 AM
 To: Daniel Rosen
 Cc: Phil Holmes; LilyPond User Group
 Subject: Re: Errors running lilypond-book
 
 Since I do not have an idea about the anatomy of a Windows installation, we
 will depend on
 
 a) you figuring out what other copy of book_latex.py you should rather have
 patched
 b) someone else figuring this out
 c) a release of 2.19.3 after which we'll get more definite feedback.
 
 --
 David Kastrup

I've just downloaded 2.19.3 and tried again, and while the error output no 
longer mentions TEXINPUTS, most of the text remains the same (I've attached my 
original bug report for convenient comparison, and once again redacted my 
username from the file path):

c:\Users\...\Desktop\Downloadslilypond-book --output=out --pdf lilybook.lytex
lilypond-book.py (GNU LilyPond) 2.19.3
Reading lilybook.lytex...
Running `pdflatex' on file `c:\users\...\appdata\local\temp\tmpi8u3bh.tex' to 
detect default page settings.

Dissecting...
lilypond-book.py: error: file not found: screech-and-boink.ly

Traceback (most recent call last):
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
main ()
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in main
chunks = do_file (files[0])
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611, in 
do_file
chunks = find_toplevel_snippets (source, global_options.formatter)
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in 
find_toplevel_snippets
snip = klass (type, m, formatter, line_number, global_options)
  File C:\Program 
Files\LilyPond\usr\share\lilypond\current\python\book_snippets.py, line 815, 
in __init__
global_options.include_path, global_options.original_dir)).read ()
  File C:\Program 
Files\LilyPond\usr\share\lilypond\current\python\book_base.py, line 27, in 
find_file
exit (1)
TypeError: 'str' object is not callable
---BeginMessage---
I'm trying to follow the tutorial at 
http://www.lilypond.org/doc/v2.18/Documentation/usage/an-example-of-a-musicological-document;
 I run Windows 7 x86. When I run the command it tells me to (lilypond-book 
--output=out --pdf lilybook.lytex), here's what I get (I've redacted my 
username from the temp file path):

lilypond-book.py (GNU LilyPond) 2.18.0
Reading lilybook.lytex...
Running `pdflatex' on file `c:\users\...\appdata\local\temp\tmpfvqw3p.tex' to
 detect default page settings.

'TEXINPUTS' is not recognized as an internal or external command,
operable program or batch file.
lilypond-book.py: warning: Unable to auto-detect default settings:

lilypond-book.py: warning: cannot detect textwidth from LaTeX
Dissecting...
lilypond-book.py: error: file not found: screech-and-boink.ly

Traceback (most recent call last):
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
main ()
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in main
chunks = do_file (files[0])
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611, in do_fil
e
chunks = find_toplevel_snippets (source, global_options.formatter)
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in find_t
oplevel_snippets
snip = klass (type, m, formatter, line_number, global_options)
  File out/book_snippets.py, line 815, in __init__
  File out/book_base.py, line 27, in find_file
TypeError: 'str' object is not callable

How do I get this to work?

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


Re: Errors running lilypond-book

2014-03-04 Thread David Kastrup
Daniel Rosen drose...@gmail.com writes:

 -Original Message-
 From: David Kastrup [mailto:d...@gnu.org]
 Sent: Tuesday, February 25, 2014 10:09 AM
 To: Daniel Rosen
 Cc: Phil Holmes; LilyPond User Group
 Subject: Re: Errors running lilypond-book
 
 Since I do not have an idea about the anatomy of a Windows installation, we
 will depend on
 
 a) you figuring out what other copy of book_latex.py you should rather have
 patched
 b) someone else figuring this out
 c) a release of 2.19.3 after which we'll get more definite feedback.

 I've just downloaded 2.19.3 and tried again, and while the error output no 
 longer mentions TEXINPUTS, most of the text remains the same (I've attached 
 my original bug report for convenient comparison, and once again redacted my 
 username from the file path):

 c:\Users\...\Desktop\Downloadslilypond-book --output=out --pdf lilybook.lytex
 lilypond-book.py (GNU LilyPond) 2.19.3
 Reading lilybook.lytex...
 Running `pdflatex' on file `c:\users\...\appdata\local\temp\tmpi8u3bh.tex' to 
 detect default page settings.

 Dissecting...

Good: the page size detection seems to work now.

 lilypond-book.py: error: file not found: screech-and-boink.ly

 Traceback (most recent call last):
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
 main ()
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in main
 chunks = do_file (files[0])
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611, in 
 do_file
 chunks = find_toplevel_snippets (source, global_options.formatter)
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in 
 find_toplevel_snippets
 snip = klass (type, m, formatter, line_number, global_options)
   File C:\Program 
 Files\LilyPond\usr\share\lilypond\current\python\book_snippets.py, line 815, 
 in __init__
 global_options.include_path, global_options.original_dir)).read ()
   File C:\Program 
 Files\LilyPond\usr\share\lilypond\current\python\book_base.py, line 27, in 
 find_file
 exit (1)
 TypeError: 'str' object is not callable

What happens if you just call python and type

exit(1)

at its prompt?

At any rate, you are apparently trying to typeset a file
screech-and-boink.ly that is not in your search path.  Apart from exit
seemingly going haywire on your system, the problem is the absence of
screech-and-boink.ly.  What does your lilybook.lytex look like?

-- 
David Kastrup

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


RE: Errors running lilypond-book

2014-03-04 Thread Daniel Rosen
 -Original Message-
 From: David Kastrup [mailto:d...@gnu.org]
 Sent: Tuesday, March 04, 2014 12:35 PM
 To: Daniel Rosen
 Cc: LilyPond User Group
 Subject: Re: Errors running lilypond-book
  
 At any rate, you are apparently trying to typeset a file screech-and-boink.ly
 that is not in your search path.  Apart from exit
 seemingly going haywire on your system, the problem is the absence of
 screech-and-boink.ly.  What does your lilybook.lytex look like?
 
 --
 David Kastrup

Aha, I figured it out. I copied lilybook.lytex directly from 
http://www.lilypond.org/doc/v2.19/Documentation/usage/an-example-of-a-musicological-document,
 but I overlooked these lines:

 (If needed, replace @file{screech-and-boink.ly} by any @file{.ly} file
 you put in the same directory as this file.)

I did so, and it works now.

DR

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


Re: Errors running lilypond-book

2014-02-25 Thread Phil Holmes
- Original Message - 
From: Daniel Rosen drose...@gmail.com

To: Phil Holmes m...@philholmes.net
Sent: Monday, February 24, 2014 11:49 PM
Subject: RE: Errors running lilypond-book



-Original Message-
From: Phil Holmes [mailto:m...@philholmes.net]
Sent: Monday, February 24, 2014 9:16 AM
To: Daniel Rosen; David Kastrup
Cc: bug-lilyp...@gnu.org; lilypond-user@gnu.org
Subject: Re: Errors running lilypond-book

Go to https://codereview.appspot.com/64380044 and click on
python/book_latex.py

This will show you a difference between the old version of the file and 
the
proposed version.  Edit bin/book_latex.py , adding the lines with + on the 
left

and removing those with -

--
Phil Holmes


Done. Now what? Running lilypond-book again still yields errors.

lilypond-book.py (GNU LilyPond) 2.18.0
Reading lilybook.lytex...
Running `pdflatex' on file `c:\users\...\appdata\local\temp\tmpsw8wzn.tex' 
to detect default page settings.


'TEXINPUTS' is not recognized as an internal or external command,
operable program or batch file.
lilypond-book.py: warning: Unable to auto-detect default settings:

lilypond-book.py: warning: cannot detect textwidth from LaTeX
Dissecting...
lilypond-book.py: error: file not found: screech-and-boink.ly

Traceback (most recent call last):
 File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
   main ()
 File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in 
main

   chunks = do_file (files[0])
 File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611, in 
do_file

   chunks = find_toplevel_snippets (source, global_options.formatter)
 File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in 
find_toplevel_snippets

   snip = klass (type, m, formatter, line_number, global_options)
 File out/book_snippets.py, line 815, in __init__
 File out/book_base.py, line 27, in find_file
TypeError: 'str' object is not callable

DR

==

Please remember always to reply-all: I'm no expert on how -book calculates 
line width.


--
Phil Holmes 



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


RE: Errors running lilypond-book

2014-02-25 Thread Daniel Rosen
 -Original Message-
 From: Phil Holmes [mailto:m...@philholmes.net]
 Sent: Tuesday, February 25, 2014 3:35 AM
 To: Daniel Rosen; LilyPond User Group
 Subject: Re: Errors running lilypond-book
 
 - Original Message -
 From: Daniel Rosen drose...@gmail.com
 To: Phil Holmes m...@philholmes.net
 Sent: Monday, February 24, 2014 11:49 PM
 Subject: RE: Errors running lilypond-book
 
 
  -Original Message-
  From: Phil Holmes [mailto:m...@philholmes.net]
  Sent: Monday, February 24, 2014 9:16 AM
  To: Daniel Rosen; David Kastrup
  Cc: bug-lilyp...@gnu.org; lilypond-user@gnu.org
  Subject: Re: Errors running lilypond-book
 
  Go to https://codereview.appspot.com/64380044 and click on
  python/book_latex.py
 
  This will show you a difference between the old version of the file and
  the
  proposed version.  Edit bin/book_latex.py , adding the lines with + on the
  left
  and removing those with -
 
  --
  Phil Holmes
 
 Done. Now what? Running lilypond-book again still yields errors.
 
 lilypond-book.py (GNU LilyPond) 2.18.0
 Reading lilybook.lytex...
 Running `pdflatex' on file `c:\users\...\appdata\local\temp\tmpsw8wzn.tex'
 to detect default page settings.
 
 'TEXINPUTS' is not recognized as an internal or external command,
 operable program or batch file.
 lilypond-book.py: warning: Unable to auto-detect default settings:
 
 lilypond-book.py: warning: cannot detect textwidth from LaTeX
 Dissecting...
 lilypond-book.py: error: file not found: screech-and-boink.ly
 
 Traceback (most recent call last):
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
 main ()
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in
 main
 chunks = do_file (files[0])
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611, in
 do_file
 chunks = find_toplevel_snippets (source, global_options.formatter)
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in
 find_toplevel_snippets
 snip = klass (type, m, formatter, line_number, global_options)
   File out/book_snippets.py, line 815, in __init__
   File out/book_base.py, line 27, in find_file
 TypeError: 'str' object is not callable
 
 DR
 
 ==
 
 Please remember always to reply-all

Whoops, my mistake.

 I'm no expert on how -book calculates
 line width.
 
 --
 Phil Holmes

Then I'm confused as to why you had me update bin/book_latex.py at all. The 
output above is exactly the same as what I originally reported: 
http://lists.gnu.org/archive/html/lilypond-user/2014-01/msg00452.html

DR

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


Re: Errors running lilypond-book

2014-02-25 Thread Phil Holmes
- Original Message - 
From: Daniel Rosen drose...@gmail.com
To: Phil Holmes m...@philholmes.net; LilyPond User Group 
lilypond-user@gnu.org

Sent: Tuesday, February 25, 2014 2:36 PM
Subject: RE: Errors running lilypond-book



-Original Message-
From: Phil Holmes [mailto:m...@philholmes.net]
Sent: Tuesday, February 25, 2014 3:35 AM
To: Daniel Rosen; LilyPond User Group
Subject: Re: Errors running lilypond-book

- Original Message -
From: Daniel Rosen drose...@gmail.com
To: Phil Holmes m...@philholmes.net
Sent: Monday, February 24, 2014 11:49 PM
Subject: RE: Errors running lilypond-book


 -Original Message-
 From: Phil Holmes [mailto:m...@philholmes.net]
 Sent: Monday, February 24, 2014 9:16 AM
 To: Daniel Rosen; David Kastrup
 Cc: bug-lilyp...@gnu.org; lilypond-user@gnu.org
 Subject: Re: Errors running lilypond-book

 Go to https://codereview.appspot.com/64380044 and click on
 python/book_latex.py

 This will show you a difference between the old version of the file and
 the
 proposed version.  Edit bin/book_latex.py , adding the lines with + on 
 the

 left
 and removing those with -

 --
 Phil Holmes

Done. Now what? Running lilypond-book again still yields errors.

lilypond-book.py (GNU LilyPond) 2.18.0
Reading lilybook.lytex...
Running `pdflatex' on file `c:\users\...\appdata\local\temp\tmpsw8wzn.tex'
to detect default page settings.

'TEXINPUTS' is not recognized as an internal or external command,
operable program or batch file.
lilypond-book.py: warning: Unable to auto-detect default settings:

lilypond-book.py: warning: cannot detect textwidth from LaTeX
Dissecting...
lilypond-book.py: error: file not found: screech-and-boink.ly

Traceback (most recent call last):
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in 
?

main ()
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in
main
chunks = do_file (files[0])
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611, in
do_file
chunks = find_toplevel_snippets (source, global_options.formatter)
  File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in
find_toplevel_snippets
snip = klass (type, m, formatter, line_number, global_options)
  File out/book_snippets.py, line 815, in __init__
  File out/book_base.py, line 27, in find_file
TypeError: 'str' object is not callable

DR

==

Please remember always to reply-all


Whoops, my mistake.


I'm no expert on how -book calculates
line width.

--
Phil Holmes


Then I'm confused as to why you had me update bin/book_latex.py at all. The 
output above is exactly the same as what I originally reported: 
http://lists.gnu.org/archive/html/lilypond-user/2014-01/msg00452.html


DR
=

Because other developers are.  I was talking you through how it might be 
possible for you to provide a testing point for one of them.



--
Phil Holmes 



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


RE: Errors running lilypond-book

2014-02-25 Thread Daniel Rosen
 -Original Message-
 From: Phil Holmes [mailto:m...@philholmes.net]
 Sent: Tuesday, February 25, 2014 9:50 AM
 To: Daniel Rosen; LilyPond User Group
 Subject: Re: Errors running lilypond-book
 
 Then I'm confused as to why you had me update bin/book_latex.py at all.
 The
 output above is exactly the same as what I originally reported:
 http://lists.gnu.org/archive/html/lilypond-user/2014-01/msg00452.html
 
 DR
 =
 
 Because other developers are.  I was talking you through how it might be
 possible for you to provide a testing point for one of them.
 
 
 --
 Phil Holmes

So does that mean that I can tell David I've tested his patch and it doesn't 
work for me?

 DR

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


Re: Errors running lilypond-book

2014-02-25 Thread David Kastrup
Phil Holmes m...@philholmes.net writes:

  proposed version.  Edit bin/book_latex.py , adding the lines with

   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in
 find_toplevel_snippets
 snip = klass (type, m, formatter, line_number, global_options)
   File out/book_snippets.py, line 815, in __init__


This would suggest that we are not talking about bin/book_latex.py but
rather about something like out/book_latex.ly regarding which version is
found from the search path.

 I'm no expert on how -book calculates
 line width.

 Then I'm confused as to why you had me update bin/book_latex.py at
 all. The output above is exactly the same as what I originally
 reported:
 http://lists.gnu.org/archive/html/lilypond-user/2014-01/msg00452.html

Yes, and it very much does not look like your change affected any file
that is actually getting used by Python.  Since I don't have a Windows
system, my own directory structure is different here.

It's probably worth mentioning that the followup errors here don't
exactly seem like the most user friendly thing either.

 Because other developers are.  I was talking you through how it might
 be possible for you to provide a testing point for one of them.

Well, it would appear that we should aim to put out 2.19.3 next weekend.
It will contain the fix and then we can hopefully get feedback on the
actual installation rather than a botched attempt of patching the
correct file.

-- 
David Kastrup

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


Re: Errors running lilypond-book

2014-02-25 Thread David Kastrup
Daniel Rosen drose...@gmail.com writes:

 -Original Message-
 From: Phil Holmes [mailto:m...@philholmes.net]
 Sent: Tuesday, February 25, 2014 9:50 AM
 To: Daniel Rosen; LilyPond User Group
 Subject: Re: Errors running lilypond-book
 
 Then I'm confused as to why you had me update bin/book_latex.py at all.
 The
 output above is exactly the same as what I originally reported:
 http://lists.gnu.org/archive/html/lilypond-user/2014-01/msg00452.html
 
 DR
 =
 
 Because other developers are.  I was talking you through how it might be
 possible for you to provide a testing point for one of them.

 So does that mean that I can tell David I've tested his patch and it
 doesn't work for me?

I'm pretty sure that you did not test this patch: your changes
apparently were not picked up by your version of lilypond-book.  While I
won't rule out that the patch may carry problems of its own, it would be
quite unlikely that it did not at least cause a different error message.

Since I do not have an idea about the anatomy of a Windows installation,
we will depend on

a) you figuring out what other copy of book_latex.py you should rather
have patched
b) someone else figuring this out
c) a release of 2.19.3 after which we'll get more definite feedback.

-- 
David Kastrup

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


RE: Errors running lilypond-book

2014-02-24 Thread Daniel Rosen
 -Original Message-
 From: Phil Holmes [mailto:m...@philholmes.net]
 Sent: Sunday, February 23, 2014 10:28 AM
 To: David Kastrup
 Cc: Daniel Rosen; bug-lilyp...@gnu.org; lilypond-user@gnu.org
 Subject: Re: Errors running lilypond-book
 
 - Original Message -
 From: David Kastrup d...@gnu.org
 To: Phil Holmes m...@philholmes.net
 Cc: Daniel Rosen drose...@gmail.com; bug-lilyp...@gnu.org;
 lilypond-user@gnu.org
 Sent: Sunday, February 23, 2014 3:20 PM
 Subject: Re: Errors running lilypond-book
 
 
  Phil Holmes m...@philholmes.net writes:
 
  Original Message -
  From: Daniel Rosen drose...@gmail.com
  To: bug-lilyp...@gnu.org
  Cc: lilypond-user@gnu.org
  Sent: Sunday, February 23, 2014 2:29 PM
  Subject: RE: Errors running lilypond-book
 
 
  -Original Message-
  From: David Kastrup [mailto:d...@gnu.org]
  Sent: Saturday, February 22, 2014 3:08 PM
  To: Daniel Rosen
  Cc: lilypond-user@gnu.org; bug-lilyp...@gnu.org
  Subject: Re: Errors running lilypond-book
 
  Do you have the possibility to check whether the patch in
  URL:http://code.google.com/p/lilypond/issues/detail?id=3874
 would
  fix the problem for you?
 
  Are you asking whether I have the ability to compile LilyPond from
  source? If you are, the answer is no, I unfortunately do not.
 
  You don't need to - it would be good enough to manually edit
  book_latex.py in your bin directory.
 
  I am skeptical whether this would cause Python to recompile
  book_latex.pyc.
 
  --
  David Kastrup
 
 Pretty certain it does: this is how I've experimented with the scripts in the
 past.
 
 --
 Phil Holmes

What changes need to be made, exactly? 

DR

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


Re: Errors running lilypond-book

2014-02-24 Thread Phil Holmes
- Original Message - 
From: Daniel Rosen drose...@gmail.com



What changes need to be made, exactly?

DR


Go to https://codereview.appspot.com/64380044 and click on 
python/book_latex.py


This will show you a difference between the old version of the file and the 
proposed version.  Edit bin/book_latex.py , adding the lines with + on the 
left and removing those with -


--
Phil Holmes 



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


RE: Errors running lilypond-book

2014-02-23 Thread Daniel Rosen
 -Original Message-
 From: David Kastrup [mailto:d...@gnu.org]
 Sent: Saturday, February 22, 2014 3:08 PM
 To: Daniel Rosen
 Cc: lilypond-user@gnu.org; bug-lilyp...@gnu.org
 Subject: Re: Errors running lilypond-book
 
 Do you have the possibility to check whether the patch in
 URL:http://code.google.com/p/lilypond/issues/detail?id=3874 would fix
 the problem for you?
 
 --
 David Kastrup

Are you asking whether I have the ability to compile LilyPond from source? If 
you are, the answer is no, I unfortunately do not.

DR

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


Re: Errors running lilypond-book

2014-02-23 Thread Phil Holmes
Original Message - 
From: Daniel Rosen drose...@gmail.com

To: bug-lilyp...@gnu.org
Cc: lilypond-user@gnu.org
Sent: Sunday, February 23, 2014 2:29 PM
Subject: RE: Errors running lilypond-book



-Original Message-
From: David Kastrup [mailto:d...@gnu.org]
Sent: Saturday, February 22, 2014 3:08 PM
To: Daniel Rosen
Cc: lilypond-user@gnu.org; bug-lilyp...@gnu.org
Subject: Re: Errors running lilypond-book

Do you have the possibility to check whether the patch in
URL:http://code.google.com/p/lilypond/issues/detail?id=3874 would fix
the problem for you?

--
David Kastrup


Are you asking whether I have the ability to compile LilyPond from source? 
If you are, the answer is no, I unfortunately do not.


DR



You don't need to - it would be good enough to manually edit book_latex.py 
in your bin directory.


--
Phil Holmes 



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


Re: Errors running lilypond-book

2014-02-23 Thread David Kastrup
Phil Holmes m...@philholmes.net writes:

 Original Message - 
 From: Daniel Rosen drose...@gmail.com
 To: bug-lilyp...@gnu.org
 Cc: lilypond-user@gnu.org
 Sent: Sunday, February 23, 2014 2:29 PM
 Subject: RE: Errors running lilypond-book


 -Original Message-
 From: David Kastrup [mailto:d...@gnu.org]
 Sent: Saturday, February 22, 2014 3:08 PM
 To: Daniel Rosen
 Cc: lilypond-user@gnu.org; bug-lilyp...@gnu.org
 Subject: Re: Errors running lilypond-book

 Do you have the possibility to check whether the patch in
 URL:http://code.google.com/p/lilypond/issues/detail?id=3874 would fix
 the problem for you?

 Are you asking whether I have the ability to compile LilyPond from
 source? If you are, the answer is no, I unfortunately do not.

 You don't need to - it would be good enough to manually edit
 book_latex.py in your bin directory.

I am skeptical whether this would cause Python to recompile
book_latex.pyc.

-- 
David Kastrup

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


Re: Errors running lilypond-book

2014-02-23 Thread Phil Holmes
- Original Message - 
From: David Kastrup d...@gnu.org

To: Phil Holmes m...@philholmes.net
Cc: Daniel Rosen drose...@gmail.com; bug-lilyp...@gnu.org; 
lilypond-user@gnu.org

Sent: Sunday, February 23, 2014 3:20 PM
Subject: Re: Errors running lilypond-book



Phil Holmes m...@philholmes.net writes:

Original Message - 
From: Daniel Rosen drose...@gmail.com

To: bug-lilyp...@gnu.org
Cc: lilypond-user@gnu.org
Sent: Sunday, February 23, 2014 2:29 PM
Subject: RE: Errors running lilypond-book



-Original Message-
From: David Kastrup [mailto:d...@gnu.org]
Sent: Saturday, February 22, 2014 3:08 PM
To: Daniel Rosen
Cc: lilypond-user@gnu.org; bug-lilyp...@gnu.org
Subject: Re: Errors running lilypond-book

Do you have the possibility to check whether the patch in
URL:http://code.google.com/p/lilypond/issues/detail?id=3874 would fix
the problem for you?


Are you asking whether I have the ability to compile LilyPond from
source? If you are, the answer is no, I unfortunately do not.


You don't need to - it would be good enough to manually edit
book_latex.py in your bin directory.


I am skeptical whether this would cause Python to recompile
book_latex.pyc.

--
David Kastrup


Pretty certain it does: this is how I've experimented with the scripts in 
the past.


--
Phil Holmes 



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


Re: Errors running lilypond-book

2014-02-22 Thread David Kastrup

Cc and Reply-To to bug-lilypond.

Daniel Rosen drose...@gmail.com writes:

 Daniel Rosen drose...@gmail.com writes:
 
  I'm trying to follow the tutorial at
 http://www.lilypond.org/doc/v2.18/Documentation/usage/an-example-of-
 a-musicological-document; I run Windows 7 x86. When I run the command it
 tells me to (lilypond-book --output=out --pdf lilybook.lytex), here's what I
 get (I've redacted my username from the temp file path):

[...]

 I don't know what any of that means. :-P Is there a workaround? I do
 know how to define an environment variable, if that's what's
 necessary.

Do you have the possibility to check whether the patch in
URL:http://code.google.com/p/lilypond/issues/detail?id=3874 would fix
the problem for you?

-- 
David Kastrup

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


RE: Errors running lilypond-book

2014-01-10 Thread Daniel Rosen
 -Original Message-
 From: David Kastrup [mailto:d...@gnu.org]
 Sent: Thursday, January 09, 2014 2:11 PM
 To: Daniel Rosen
 Cc: lilypond-user@gnu.org
 Subject: Re: Errors running lilypond-book
 
 Daniel Rosen drose...@gmail.com writes:
 
  I'm trying to follow the tutorial at
 http://www.lilypond.org/doc/v2.18/Documentation/usage/an-example-of-
 a-musicological-document; I run Windows 7 x86. When I run the command it
 tells me to (lilypond-book --output=out --pdf lilybook.lytex), here's what I
 get (I've redacted my username from the temp file path):
 
  lilypond-book.py (GNU LilyPond) 2.18.0 Reading lilybook.lytex...
  Running `pdflatex' on file
  `c:\users\...\appdata\local\temp\tmpfvqw3p.tex' to  detect default page
 settings.
 
  'TEXINPUTS' is not recognized as an internal or external command,
  operable program or batch file.
  lilypond-book.py: warning: Unable to auto-detect default settings:
 
  lilypond-book.py: warning: cannot detect textwidth from LaTeX
  Dissecting...
  lilypond-book.py: error: file not found: screech-and-boink.ly
 
  Traceback (most recent call last):
File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
  main ()
File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in
 main
  chunks = do_file (files[0])
File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611,
  in do_fil e
  chunks = find_toplevel_snippets (source, global_options.formatter)
File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362,
  in find_t oplevel_snippets
  snip = klass (type, m, formatter, line_number, global_options)
File out/book_snippets.py, line 815, in __init__
File out/book_base.py, line 27, in find_file
  TypeError: 'str' object is not callable
 
  How do I get this to work?
 
 That would seem to be
 commit aefc5a4057a0a61f1d7e4411cc1c5061d9aea6b7
 Author: Julien Rioux jri...@physics.utoronto.ca
 Date:   Wed Jan 23 18:21:22 2013 -0500
 
 lilypond-book: Textwidth detection with included file (issue 3136).
 
 Fix the automatic textwidth detection performed by lilypond-book.
 This failed for lytex files that include an external file in the
 preamble, when such file was compiled in an --output directory
 different from the working directory, because then the included
 file was missing. We use TEXINPUTS to let the latex process know
 where to look for input files.
 
 later improved by
 commit 39bf694ef4dedbb350960f7c37955c8fe9ce27e3
 Author: David Kastrup d...@gnu.org
 Date:   Sat Jul 27 16:44:54 2013 +0200
 
 Issue 3467: lilypond-book 2.17.21 and spaces in file path
 
 
 Versions 2.17.17 and 2.17.24, respectively.  Instead one probably needs to
 manipulate the environment directly.  No idea how sticky that is.
 
 Actually, it would appear that working with subprocess.Popen would be
 called for here.  The respective coode seems to be:
 progress (_ (Running `%s' on file `%s' to detect default page 
 settings.\n)
   % (global_options.latex_program, tmpfile))
 cmd = 'TEXINPUTS=%s:$TEXINPUTS %s %s' \
 % (global_options.input_dir, global_options.latex_program, tmpfile)
 debug (Executing: %s\n % cmd)
 run_env = os.environ.copy()
 run_env['LC_ALL'] = 'C'
 
 ### unknown why this is necessary
 universal_newlines = True
 if sys.platform == 'mingw32':
 universal_newlines = False
 ### use os.system to avoid weird sleep() problems on
 ### GUB's python 2.4.2 on mingw
 # make file to write to
 output_dir = tempfile.mkdtemp()
 output_filename = os.path.join(output_dir, 'output.txt')
 # call command
 cmd +=   %s % output_filename
 returncode = os.system(cmd)
 parameter_string = open(output_filename).read()
 if returncode != 0:
 warning (_ (Unable to auto-detect default settings:\n))
 # clean up
 os.remove(output_filename)
 os.rmdir(output_dir)
 else:
 proc = subprocess.Popen (cmd,
 env=run_env,
 universal_newlines=universal_newlines,
 shell=True,
 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 (parameter_string, error_string) = proc.communicate ()
 if proc.returncode != 0:
 warning (_ (Unable to auto-detect default settings:\n%s)
 % error_string)
 
 And normally one should be able to do the TEXINPUTS manipulation just like
 done with LC_ALL.  However, that would require looking at what goes wrong
 with mingw32 here.  I have no idea what the current GUB version of Python
 is.
 
 --
 David Kastrup

I don't know what any of that means. :-P Is there a workaround? I do know how 
to define an environment variable, if that's what's necessary.

DR

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


Re: Errors running lilypond-book

2014-01-09 Thread David Kastrup
Daniel Rosen drose...@gmail.com writes:

 I'm trying to follow the tutorial at 
 http://www.lilypond.org/doc/v2.18/Documentation/usage/an-example-of-a-musicological-document;
  I run Windows 7 x86. When I run the command it tells me to (lilypond-book 
 --output=out --pdf lilybook.lytex), here's what I get (I've redacted my 
 username from the temp file path):

 lilypond-book.py (GNU LilyPond) 2.18.0
 Reading lilybook.lytex...
 Running `pdflatex' on file `c:\users\...\appdata\local\temp\tmpfvqw3p.tex' to
  detect default page settings.

 'TEXINPUTS' is not recognized as an internal or external command,
 operable program or batch file.
 lilypond-book.py: warning: Unable to auto-detect default settings:

 lilypond-book.py: warning: cannot detect textwidth from LaTeX
 Dissecting...
 lilypond-book.py: error: file not found: screech-and-boink.ly

 Traceback (most recent call last):
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 776, in ?
 main ()
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 759, in main
 chunks = do_file (files[0])
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 611, in 
 do_fil
 e
 chunks = find_toplevel_snippets (source, global_options.formatter)
   File C:\Program Files\LilyPond\usr\bin\lilypond-book.py, line 362, in 
 find_t
 oplevel_snippets
 snip = klass (type, m, formatter, line_number, global_options)
   File out/book_snippets.py, line 815, in __init__
   File out/book_base.py, line 27, in find_file
 TypeError: 'str' object is not callable

 How do I get this to work?

That would seem to be
commit aefc5a4057a0a61f1d7e4411cc1c5061d9aea6b7
Author: Julien Rioux jri...@physics.utoronto.ca
Date:   Wed Jan 23 18:21:22 2013 -0500

lilypond-book: Textwidth detection with included file (issue 3136).

Fix the automatic textwidth detection performed by lilypond-book.
This failed for lytex files that include an external file in the
preamble, when such file was compiled in an --output directory
different from the working directory, because then the included
file was missing. We use TEXINPUTS to let the latex process know
where to look for input files.

later improved by
commit 39bf694ef4dedbb350960f7c37955c8fe9ce27e3
Author: David Kastrup d...@gnu.org
Date:   Sat Jul 27 16:44:54 2013 +0200

Issue 3467: lilypond-book 2.17.21 and spaces in file path


Versions 2.17.17 and 2.17.24, respectively.  Instead one probably needs
to manipulate the environment directly.  No idea how sticky that is.

Actually, it would appear that working with subprocess.Popen would be
called for here.  The respective coode seems to be:
progress (_ (Running `%s' on file `%s' to detect default page settings.\n)
  % (global_options.latex_program, tmpfile))
cmd = 'TEXINPUTS=%s:$TEXINPUTS %s %s' \
% (global_options.input_dir, global_options.latex_program, tmpfile)
debug (Executing: %s\n % cmd)
run_env = os.environ.copy()
run_env['LC_ALL'] = 'C'

### unknown why this is necessary
universal_newlines = True
if sys.platform == 'mingw32':
universal_newlines = False
### use os.system to avoid weird sleep() problems on
### GUB's python 2.4.2 on mingw
# make file to write to
output_dir = tempfile.mkdtemp()
output_filename = os.path.join(output_dir, 'output.txt')
# call command
cmd +=   %s % output_filename
returncode = os.system(cmd)
parameter_string = open(output_filename).read()
if returncode != 0:
warning (_ (Unable to auto-detect default settings:\n))
# clean up
os.remove(output_filename)
os.rmdir(output_dir)
else:
proc = subprocess.Popen (cmd,
env=run_env,
universal_newlines=universal_newlines,
shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(parameter_string, error_string) = proc.communicate ()
if proc.returncode != 0:
warning (_ (Unable to auto-detect default settings:\n%s)
% error_string)

And normally one should be able to do the TEXINPUTS manipulation just
like done with LC_ALL.  However, that would require looking at what goes
wrong with mingw32 here.  I have no idea what the current GUB version of
Python is.

-- 
David Kastrup

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