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: Mon, 13 Mar 2006 18:35:54 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0.4)

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





reply via email to

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