|
From: | Auto mailings of changes to Lily Issues via Testlilyissues-auto |
Subject: | [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] Ticket 3510 discussion |
Date: | Wed, 12 Sep 2018 08:58:50 -0000 |
Everything works as expected here (Windows 7) if you use absolute path, either with bundled python (currently 2.4.5) and with my python installation (2.7.14):
PS C:\Users\fede> python.exe 'C:\Program Files (x86)\LilyPond\usr\bin\convert-ly.py' .\Documents\convert-test.ly > hello .ly convert-ly.py (GNU LilyPond) 2.19.28 convert-ly.py: Processing `.\Documents\convert-test.ly'... Applying conversion: 2.17.0, 2.17.4, 2.17.5, 2.17.6, 2.17.11, 2.17.14, 2.17.15, 2.17.18, 2.17.19, 2.17.20, 2.17.25, 2.17 .27, 2.17.29, 2.17.97, 2.18.0, 2.19.2, 2.19.7, 2.19.11, 2.19.16, 2.19.22, 2.19.24, 2.19.28 PS C:\Users\fede> cat .\hello.ly \version "2.19.28" { \tuplet 3/2 { c8 d e } } PS C:\Users\fede> python.exe --version Python 2.7.14 PS C:\Users\fede> PS C:\Users\fede> PS C:\Users\fede> PS C:\Users\fede> & 'C:\Program Files (x86)\LilyPond\usr\bin\python.exe' 'C:\Program Files (x86)\LilyPond\usr\bin\conver t-ly.py' .\Documents\convert-test.ly > new.ly convert-ly.py (GNU LilyPond) 2.19.28 convert-ly.py: Processing `.\Documents\convert-test.ly'... Applying conversion: 2.17.0, 2.17.4, 2.17.5, 2.17.6, 2.17.11, 2.17.14, 2.17.15, 2.17.18, 2.17.19, 2.17.20, 2.17.25, 2.17 .27, 2.17.29, 2.17.97, 2.18.0, 2.19.2, 2.19.7, 2.19.11, 2.19.16, 2.19.22, 2.19.24, 2.19.28 PS C:\Users\fede> & 'C:\Program Files (x86)\LilyPond\usr\bin\python.exe' -V Python 2.4.5 PS C:\Users\fede> PS C:\Users\fede> cat .\new.ly \version "2.19.28" { \tuplet 3/2 { c8 d e } } PS C:\Users\fede>
[issues:#3510] Convert-ly cmdline redirection fails under Windows 7
Status: Accepted
Created: Tue Aug 20, 2013 01:45 PM UTC by Anonymous
Last Updated: Thu Aug 29, 2013 08:47 AM UTC
Owner: nobody
Originally created by: *anonymous
Originally created by: address@hidden
Reported by Eluze:
Although AU suggests that convert-ly output can be redirected to preserve the input file, python throws an error under Windows 7:
Traceback (most recent call last):
File "C:\Program Files (x86)\LilyPond\usr\bin\convert-ly.py", line 386, in ?
main ()
File "C:\Program Files (x86)\LilyPond\usr\bin\convert-ly.py", line 367, in main
errors += do_one_file (f)
File "C:\Program Files (x86)\LilyPond\usr\bin\convert-ly.py", line 320, in do_one_file
outfile.close()
IOError: [Errno 9] Bad file descriptor
The issue may result from code near line 308-322 in convert-ly, where outfile becomes an alias for stdout. DAK suggests that convert-ly should only close files it created. The issue seems to be with Windows only.
Original discussion at http://lilypond.1069038.n5.nabble.com/convert-ly-from-the-commandline-under-windows-corrupted-td149284.html
Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
_______________________________________________ Testlilyissues-auto mailing list address@hidden https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
[Prev in Thread] | Current Thread | [Next in Thread] |