Re: A couple of lilypond docbook tests failing

2021-11-01 Thread Scott Kostyshak
On Tue, Nov 02, 2021 at 12:55:54AM +0100, Thibaut Cuvelier wrote:
> Hi Scott,
> 
> What version of LilyPond are you using?

Probably an old one:

  $ lilypond -v
  GNU LilyPond 2.22.0

> I am indeed getting errors at least
> with the first document, but not at all the same ones. The error you get
> should have been solved by e22f52e7, at least on Windows (os.chdir solved
> it for me in some cases).

Strange, I did the tests on current master.

> You could chime in
> https://gitlab.com/lilypond/lilypond/-/issues/6187 to indicate you have the
> same issue on Linux.

Thanks for making the upstream bug reports. I subscribed to the issue.

Scott

> Here is the error I get (only the LilyPond part of the output):
> 
> >> Given arguments:
> >> LilyPond: present.
> >> LilyPond callable as: C:\Program Files
> (x86)\LilyPond\usr\bin/lilypond-book.
> >> LilyPond path: C:\Program Files (x86)\LilyPond\usr\bin.
> >> Input file:
> C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/LilyPond_Book.xml.
> >> Output file: D:/LyX/lyx-unstable/lib/examples/Modules/LilyPond_Book.xml.
> >> Input folder:
> C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0.
> >> Output folder: D:/LyX/lyx-unstable/lib/examples/Modules.
> >> The input file needs a LilyPond pass and LilyPond is available.
> >> Rewriting
> C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/LilyPond_Book.xml
> >> as
> C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/LilyPond_Book.lyxml.
> >> Running LilyPond.
> lilypond-book (GNU LilyPond) 2.23.3
> Reading
> `C:\Users\Thibaut\AppData\Local\Temp\lyx_tmpdir.qugZiVZlvBWx\lyx_tmpbuf0\LilyPond_Book.lyxml'
> Dissecting...
> Writing snippets...
> Processing...
> Running lilypond...
> Processing
> `C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/21/
> lily-0a4ea353.ly'
> Parsing...
> C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/21/lily-0a4ea353.ly:127:17:
> error: undefined cha
> racter or shorthand: &
> \new PianoStaff
>   % RH Staff  \new Staff {\clef treble\key
> aes \major\time 2/4%\set Staff.finger
> ingOrientations = #'(up)%\set Score.currentBarNumber = #9\partial 8
>aes''-4 c''8\staccato|%\s
> et doubleSlurs = ##tbes''-5 des''-24(aes''-4
> c''8\staccato)\noBeamc''8-5\staccato\pp
> |\unset doubleSlursbes'8..(aes'32g'8)\staccato
>  f'8\staccato|e'4-2r8%\once \override S
> cript #'script-priority = #-100\afterGracef'8(\trill^\markup {
> \finger "3-2" }{ e'16[ f'16] }|g'8..-
> 3f'32e'8-1)\staccatod'8-2\staccato|c'4r4  }  % LH
> Staff  \new Staff {\key aes \major\cle
> f treble%\override Fingering #'direction = #down%\set
> Staff.fingeringOrientations = #'(down)\partial 8
> t;aes' aes8\staccato%\set doubleSlurs = ##tg'-2
> ees'-34(aes' aes8)\staccato\noBeam
>   \c
> C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/21/lily-0a4ea353.ly:127:17:
> error: syntax error,
>  unexpected STRING
> 
> I have reported this issue to LilyPond, because there is nothing LyX could
> do to prevent it: https://gitlab.com/lilypond/lilypond/-/issues/6204.
> 
> On Sun, 31 Oct 2021 at 18:02, Scott Kostyshak  wrote:
> 
> > The following tests are failing for me:
> >
> >   The following tests FAILED:
> >   4010 - export/examples/Modules/LilyPond_Book_docbook5 (Failed)
> >   5165 -
> > INVERTED.DOCBOOK_export/examples/fr/Modules/Linguistics_docbook5 (Failed)
> >   5557 - export/examples/ja/Modules/LilyPond_Book_docbook5 (Failed)
> >
> > When I open lib/examples/Modules/LilyPond_Book.lyx and export to docbook5,
> > I get the following output in the terminal:
> >
> >   Command '/usr/bin/lilypond --formats=ps,png -dbackend=eps  -I  "./"  -I
> > "/tmp/lyx_tmpdir.xdBexxcIwFHp/lyx_tmpbuf0" -deps-box-padding=3.00
> > -dread-file-list -dno-strip-output-dir
> > "/tmp/lyx_tmpdir.xdBexxcIwFHp/lyx_tmpbuf0/
> > snippet-names-8f8c627f87a88430f6904f4119093d6b.ly"' returned non-zero
> > exit status 1.
> >   python: can't open file
> > '/tmp/lyx_tmpdir.xdBexxcIwFHp/lyx_tmpbuf0/lilypond-book': [Errno 2] No such
> > file or directory
> >   >> Error from LilyPond. The successive calls were:
> >   Traceback (most recent call last):
> > File "/home/scott/lyxbuilds/master/repo/lib/scripts/docbook_copy.py",
> > line 174, in 
> >   DocBookCopier(sys.argv).copy()
> > File "/home/scott/lyxbuilds/master/repo/lib/scripts/docbook_copy.py",
> > line 161, in copy
> >   self.call_lilypond()
> > File "/home/scott/lyxbuilds/master/repo/lib/scripts/docbook_copy.py",
> > line 128, in call_lilypond
> >   print('>> (' + i + ') Error from trying ' + str(cmd) + ':')
> >   TypeError: can only concatenate str (not "int") to str
> >   support/Systemcall.cpp (291): Systemcall: 'python
> > 

Re: A couple of lilypond docbook tests failing

2021-11-01 Thread Thibaut Cuvelier
Hi Scott,

What version of LilyPond are you using? I am indeed getting errors at least
with the first document, but not at all the same ones. The error you get
should have been solved by e22f52e7, at least on Windows (os.chdir solved
it for me in some cases). You could chime in
https://gitlab.com/lilypond/lilypond/-/issues/6187 to indicate you have the
same issue on Linux.

Here is the error I get (only the LilyPond part of the output):

>> Given arguments:
>> LilyPond: present.
>> LilyPond callable as: C:\Program Files
(x86)\LilyPond\usr\bin/lilypond-book.
>> LilyPond path: C:\Program Files (x86)\LilyPond\usr\bin.
>> Input file:
C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/LilyPond_Book.xml.
>> Output file: D:/LyX/lyx-unstable/lib/examples/Modules/LilyPond_Book.xml.
>> Input folder:
C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0.
>> Output folder: D:/LyX/lyx-unstable/lib/examples/Modules.
>> The input file needs a LilyPond pass and LilyPond is available.
>> Rewriting
C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/LilyPond_Book.xml
>> as
C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/LilyPond_Book.lyxml.
>> Running LilyPond.
lilypond-book (GNU LilyPond) 2.23.3
Reading
`C:\Users\Thibaut\AppData\Local\Temp\lyx_tmpdir.qugZiVZlvBWx\lyx_tmpbuf0\LilyPond_Book.lyxml'
Dissecting...
Writing snippets...
Processing...
Running lilypond...
Processing
`C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/21/
lily-0a4ea353.ly'
Parsing...
C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/21/lily-0a4ea353.ly:127:17:
error: undefined cha
racter or shorthand: &
\new PianoStaff
  % RH Staff  \new Staff {\clef treble\key
aes \major\time 2/4%\set Staff.finger
ingOrientations = #'(up)%\set Score.currentBarNumber = #9\partial 8
   aes''-4 c''8\staccato|%\s
et doubleSlurs = ##tbes''-5 des''-24(aes''-4
c''8\staccato)\noBeamc''8-5\staccato\pp
|\unset doubleSlursbes'8..(aes'32g'8)\staccato
 f'8\staccato|e'4-2r8%\once \override S
cript #'script-priority = #-100\afterGracef'8(\trill^\markup {
\finger "3-2" }{ e'16[ f'16] }|g'8..-
3f'32e'8-1)\staccatod'8-2\staccato|c'4r4  }  % LH
Staff  \new Staff {\key aes \major\cle
f treble%\override Fingering #'direction = #down%\set
Staff.fingeringOrientations = #'(down)\partial 8
t;aes' aes8\staccato%\set doubleSlurs = ##tg'-2
ees'-34(aes' aes8)\staccato\noBeam
  \c
C:/Users/Thibaut/AppData/Local/Temp/lyx_tmpdir.qugZiVZlvBWx/lyx_tmpbuf0/21/lily-0a4ea353.ly:127:17:
error: syntax error,
 unexpected STRING

I have reported this issue to LilyPond, because there is nothing LyX could
do to prevent it: https://gitlab.com/lilypond/lilypond/-/issues/6204.

On Sun, 31 Oct 2021 at 18:02, Scott Kostyshak  wrote:

> The following tests are failing for me:
>
>   The following tests FAILED:
>   4010 - export/examples/Modules/LilyPond_Book_docbook5 (Failed)
>   5165 -
> INVERTED.DOCBOOK_export/examples/fr/Modules/Linguistics_docbook5 (Failed)
>   5557 - export/examples/ja/Modules/LilyPond_Book_docbook5 (Failed)
>
> When I open lib/examples/Modules/LilyPond_Book.lyx and export to docbook5,
> I get the following output in the terminal:
>
>   Command '/usr/bin/lilypond --formats=ps,png -dbackend=eps  -I  "./"  -I
> "/tmp/lyx_tmpdir.xdBexxcIwFHp/lyx_tmpbuf0" -deps-box-padding=3.00
> -dread-file-list -dno-strip-output-dir
> "/tmp/lyx_tmpdir.xdBexxcIwFHp/lyx_tmpbuf0/
> snippet-names-8f8c627f87a88430f6904f4119093d6b.ly"' returned non-zero
> exit status 1.
>   python: can't open file
> '/tmp/lyx_tmpdir.xdBexxcIwFHp/lyx_tmpbuf0/lilypond-book': [Errno 2] No such
> file or directory
>   >> Error from LilyPond. The successive calls were:
>   Traceback (most recent call last):
> File "/home/scott/lyxbuilds/master/repo/lib/scripts/docbook_copy.py",
> line 174, in 
>   DocBookCopier(sys.argv).copy()
> File "/home/scott/lyxbuilds/master/repo/lib/scripts/docbook_copy.py",
> line 161, in copy
>   self.call_lilypond()
> File "/home/scott/lyxbuilds/master/repo/lib/scripts/docbook_copy.py",
> line 128, in call_lilypond
>   print('>> (' + i + ') Error from trying ' + str(cmd) + ':')
>   TypeError: can only concatenate str (not "int") to str
>   support/Systemcall.cpp (291): Systemcall: 'python
> "/home/scott/lyxbuilds/master/repo/lib/scripts/docbook_copy.py"
> lilypond-book "/tmp/lyx_tmpdir.xdBexxcIwFHp/lyx_tmpbuf0/LilyPond_Book.xml"
> "/home/scott/lyxbuilds/master/repo/lib/examples/Modules/LilyPond_Book.xml"'
> finished with exit code 1
>   Error: Couldn't copy file
>
> Scott
>
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel