Victor, please keep the list in Cc.

I was using lilypond packaged by Fedora, which uses python2 installed on the system (currently 2.7.15). I've now installed 2.19.82 from lilypond.org, which uses the bundled python .
There's something wrong:

$ file jafanosumu.ly
jafanosumu.ly: data

There's some bad encoding. See attached file.

$ ls -lh ~/.local/lilypond/usr/bin/python*
-rwxr-xr-x 2 fede fede 5,1K 24 giu 14.11 /home/fede/.local/lilypond/usr/bin/python -rwxr-xr-x 2 fede fede 5,1K 24 giu 14.11 /home/fede/.local/lilypond/usr/bin/python2.4

It's just my installation?
This release had also some problems in the PDF manuals...

Il giorno ven 24 ago 2018 alle 13:19, Victor Rouanet <"victor.rouanet"@gmx.fr> ha scritto:
I use debian 9 (stretch). I tried to redownload the raw XML from the link I provided (with wget) and got the same error.

Do you know what python version were used by musicxml2ly when you tried?

Yes, I was initially planning to report an issue about this wrong output, but I upgraded lilypond before and had to edit the musicexp.py again


Le 24/08/2018 à 12:02, Federico Bruni a écrit :


Il giorno ven 24 ago 2018 alle 11:33, Victor Rouanet <"victor.rouanet"@gmx.fr> ha scritto:
Good morning,

I'm having an issue with musicxml2ly, installed with a manually downloaded version on lilypond 2.19.82.

I exported a musicxml file from Musescore, then converted it to lilypond source with musicxml2ly without error. However, when I try to compile it with lilypond, I get the following error: "syntax error, unexpected end of input, expecting \header". Here is the full output: https://hastebin.com/raw/navufewufu

And the musicxml file content: https://hastebin.com/jafanosumu.xml

This error happened with any musicxml file I tried to convert from Musescore.

After some research, I found this topic on the lilypond-user list http://lilypond.1069038.n5.nabble.com/XML-to-ly-and-Lilypond-again-td203101.html which looks like exactly the same. The suggested workaround (replacing split_string_and_preserve_doublequoted_substrings by string.split in musicexp.py:139) makes it work, but I'm wondering if I'm doing something wrong.



Which operating system are you using?

On Linux, I don't get any EOF error.
Find attached the .ly file generated by musicxml2ly version 2.19.82.
There's a wrong input though:

$ /usr/bin/lilypond jafanosumu.ly
GNU LilyPond 2.19.82
Processing `jafanosumu.ly'
Parsing...
jafanosumu.ly:30:17: error: syntax error, unexpected '^'
   \tempo 4=80
               ^\markup{ \bold {Moderato} } | % 1
jafanosumu.ly:30:18: error: markup outside of text script or \lyricmode
   \tempo 4=80 ^
                \markup{ \bold {Moderato} } | % 1
jafanosumu.ly:32:34: error: syntax error, unexpected '_'
   \mark \markup { \box { A } }
_\markup{ \italic {sempre forte} } | % 2 jafanosumu.ly:32:35: error: markup outside of text script or \lyricmode
   \mark \markup { \box { A } } _
\markup{ \italic {sempre forte} } | % 2
jafanosumu.ly:33:51: error: syntax error, unexpected '^'
   \stemDown e4 \stemDown c4 \stemUp g2 \breathe
                                                 ^\markup{ \italic
jafanosumu.ly:33:52: error: markup outside of text script or \lyricmode
   \stemDown e4 \stemDown c4 \stemUp g2 \breathe ^
                                                  \markup{ \italic
jafanosumu.ly:41:5: error: errors found, ignoring music expression

   <<
fatal error: failed files: "jafanosumu.ly"




\version "2.19.82"
% automatically converted by musicxml2ly from jafanosumu.xml
\pointAndClickOff

\header {
    encodingsoftware =  "MuseScore 2.3.2" 
    encodingdate =  "2018-08-24" 
    title =  Testing
    }

#(set-global-staff-size 20.1587428571)
\paper {
    
    paper-width = 21.01\cm
    paper-height = 29.69\cm
    top-margin = 1.0\cm
    bottom-margin = 2.0\cm
    left-margin = 1.0\cm
    right-margin = 1.0\cm
    indent = 1.61615384615\cm
    short-indent = 1.29292307692\cm
    }
\layout {
    \context { \Score
        autoBeaming = ##f
        }
    }
PartPOneVoiceOne =  \relative c' {
    \clef "treble" \key c \major \numericTimeSignature\time 4/4 | % 1
    \tempo 4=80 ^\markup{ \bold {Moderato} }
    | % 1
    \stemUp c4 _\f \stemUp e4 \stemUp g4 \stemDown c4 | % 2
    \mark \markup { \box { A } } _\markup{ \italic
        {sempre forte} } | % 2
    \stemDown e4 \stemDown c4 \stemUp g2 \breathe ^\markup{
        \italic {rit.} } | % 3
    \stemUp c,4 r4 r2 \bar "|."
    }


% The score definition
\score {
    <<
        
        \new Staff
        <<
            \set Staff.instrumentName = "Piano"
            \set Staff.shortInstrumentName = "Pno."
            
            \context Staff << 
                \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
                >>
            >>
        
        >>
    \layout {}
    % To create MIDI output, uncomment the following line:
    %  \midi {\tempo 4 = 79.9998 }
    }

_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to