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 <[EMAIL PROTECTED]>:
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: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond