bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond-book crashes on missing .ly file


From: Colin Campbell
Subject: Re: lilypond-book crashes on missing .ly file
Date: Sun, 06 Mar 2011 19:09:30 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

On 11-03-04 05:57 AM, Laura Conrad wrote:
Run the attached "lilypond-book bookcrash.lytex" in a directory that
does not include a file named "missing.ly".




With lilypond-book (GNU LilyPond) 2.13.51, on ubuntu 10.04 LTS, I get
the correct error message:

     lilypond-book: error: file not found: missing.ly

But then I get a python crash:

Traceback (most recent call last):
   File "/home/newlily/lilypond/usr/bin/lilypond-book", line 703, in ?
     main ()
   File "/home/newlily/lilypond/usr/bin/lilypond-book", line 685, in main
     chunks = do_file (files[0])
   File "/home/newlily/lilypond/usr/bin/lilypond-book", line 569, in do_file
     chunks = find_toplevel_snippets (source, global_options.formatter)
   File "/home/newlily/lilypond/usr/bin/lilypond-book", line 333, in 
find_toplevel_snippets
     snip = klass (type, m, formatter, line_number, global_options)
   File 
"/home/newlily/lilypond/usr/share/lilypond/current/python/book_snippets.py", 
line 803, in __init__
     self.contents = file (BookBase.find_file (self.substring ('filename'), 
global_options.include_path)).read ()
   File 
"/home/newlily/lilypond/usr/share/lilypond/current/python/book_base.py", line 
25, in find_file
     exit (1)
TypeError: 'str' object is not callable

I believe this was also true in 2.12, so it isn't a regression.
Many of lilypond's scripts and modules will produce a python traceback on an ABEND, Laura. Do you mean that you would expect lilypond-book to exit gracefully after emitting the error message? At the moment, I think this would be an enhancement request, so before I put it on the tracker, I'll be glad of any detail you can add.

Colin Campbell
Bug Squad

--
The test of our progress is not whether we add more to the abundance
of those who have much, it is whether we provide enough for those who
have too little.
-Franklin D. Roosevelt, 32nd US President (1882-1945)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]