bug-lilypond
[Top][All Lists]
Advanced

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

lilypond-book crashes on missing .ly file


From: Laura Conrad
Subject: lilypond-book crashes on missing .ly file
Date: Fri, 04 Mar 2011 07:57:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Run the attached "lilypond-book bookcrash.lytex" in a directory that
does not include a file named "missing.ly".

Attachment: bookcrash.lytex
Description: Binary data

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.

-- 
Laura   (mailto:address@hidden)
(617) 661-8097  233 Broadway, Cambridge, MA 02139   
http://www.laymusic.org/ http://www.serpentpublications.org

The opposite of "funny" isn't "serious"; the opposite of both "funny"
and "serious" is "sordid".

R. A. Lafferty


reply via email to

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