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 = ##t    <bes''-5 des''-2>4(    <aes''-4
> c''>8\staccato)    \noBeam    c''8-5\staccato\pp
> |    \unset doubleSlurs    bes'8..(    aes'32    g'8)\staccato
>  f'8\staccato    |    e'4-2    r8    %\once \override S
> cript #'script-priority = #-100    \afterGrace    f'8(\trill^\markup {
> \finger "3-2" }    { e'16[ f'16] }    |    g'8..-
> 3    f'32    e'8-1)\staccato    d'8-2\staccato    |    c'4    r4  }  % LH
> Staff  \new Staff {    \key aes \major    \cle
> f treble    %\override Fingering #'direction = #down    %\set
> Staff.fingeringOrientations = #'(down)    \partial 8    &l
> t;aes' aes>8\staccato    %\set doubleSlurs = ##t    <g'-2
> ees'-3>4(    <aes' aes>8)\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 <skost...@lyx.org> 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.000000
> > -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 <module>
> >       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

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to