bug-lilypond
[Top][All Lists]
Advanced

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

Re: lilypond-book doesn't work in Windows


From: Mats Bengtsson
Subject: Re: lilypond-book doesn't work in Windows
Date: Tue, 14 Mar 2006 15:45:25 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3

I have now patched lilypond-book in CVS to avoid the
problem with unlink(tmpfile).

Regarding the error message:
===========================
Converting to `lily-1281099914.eps.pdf'...
error: failed files: "Documents\\lily' Settings\\mabe\\My and"

lilboook.py: error: Process lilypond -b eps -I 'C:\Documents and Settings\mabe\ My Documents\lily' snippet-map.ly lily-1158580316 lily-577093479 lily-1281099914
exited unsuccessfully.
===========================
The message comes from lilypond itself (when called
from lilypond-book) and the error goes away if I replace
the single quotes around the argument to -I by double
quotes. However, I don't know the most convenient way
to do this in Python, since the (undocumented) function
commands.mkarg() that you use currently gives you single
quotes.

  /Mats

Mats Bengtsson wrote:

Quoting Han-Wen Nienhuys <address@hidden>:

options
   textwidth = get_latex_textwidth (source)
File "C:\Program Files\LilyPond\usr\bin\lilbook.py", line 1412, in get_latex_t
extwidth
   os.unlink (tmpfile)
OSError: [Errno 13] Permission denied: 'c:\\docume~1\\mabe\\locals~1\\temp\\tmpc
aa_av.tex'


Can you figure out who is keeping the file opened?


It's the Python process itself. As far as I can understand, the file is opened using something corresponding to os.open()
by tempfile.mkstemp(), so we just have to add a line
os.close(handle) to make it work (or use this file descriptor also when writing
to the file).

I'll take a look at the other error that only happened the first
run of lilypond-book.

  /Mats



--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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