Hello David*2,

You may be interested in xml2ly 0.93, which I’m currently finalizing. The doc 
is at https://github.com/grame-cncm/libmusicxml/tree/lilypond/doc 
<https://github.com/grame-cncm/libmusicxml/tree/lilypond/doc>, in particular 
https://github.com/grame-cncm/libmusicxml/blob/lilypond/doc/introductionToMusicxml/IntroductionToMusicXML.pdf,
 which I presented at the recent conference in Salzburg.

All you need to build the most recent version is a C++-11 compiler and cmake.

If you send me a sample file, I’ll send you the resulting LilyPond file.

HTH!

JM

> Le 22 mars 2020 à 16:08, David Kastrup <d...@gnu.org> a écrit :
> 
> David Wright <lily...@lionunicorn.co.uk> writes:
> 
>> On Sun 22 Mar 2020 at 10:54:29 (+0300), Павел Буданов wrote:
>>> I tried to use musicxml2ly from official repository of manjaro linux and
>>> get this output:
>>> Traceback (most recent call last):
>>>  File "/usr/bin/musicxml2ly", line 44, in <module>
>>>    import lilylib as ly
>>> ImportError: No module named lilylib
>>> Then I tried to install lilypond from official cite via shell script. It
>>> gives following output:
>>>  File "./lilypond/usr/bin/musicxml2ly", line 2264
>>>    if current_staff and staff <> current_staff and not
>>> n.get_maybe_exist_named_child('chord'):
>>>                                ^
>>> SyntaxError: invalid syntax
>> 
>> If you run musicxml2ly from the official repository of manjaro linux,
>> it should use the lilypond from the official repository of manjaro
>> linux as well.
>> 
>> If your only lilypond is the one downloaded from the "official [s]ite",
>> by which I assume you mean lilypond.org, then you should run the
>> musicxml2ly that's included in the download.
>> 
>> Both methods include the code to ensure that they use the correct
>> version of Python, python2. It looks as if you've circumvented that
>> code somehow, and are running python3 instead. I've never run a
>> system where "python" means python3, but manjaro/archlinux is one
>> of these, so the wrapper is specially important. (Fedora is another.)
> 
> For what it's worth, Ubuntu "Focal" seems to have no "python" and you
> need to be explicit about whether you want "python2" or "python3".
> 
> -- 
> David Kastrup
> 

Reply via email to