musicxml2ly 2.20 bug

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

musicxml2ly 2.20 bug

Павел Буданов-2
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
Reply | Threaded
Open this post in threaded view
|

Re: musicxml2ly 2.20 bug

m.tarenskeen


On Sun, 22 Mar 2020, Павел Буданов 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
>
>
Python 2 vs 3 issue?


MT
Reply | Threaded
Open this post in threaded view
|

Re: musicxml2ly 2.20 bug

mari+lilypond
It's no bug in musicxml2ly. I compiled v2.20 from source and it works as
expected. Either it's a problem with the manjaro repository or with your
python environment.

On 3/22/20 10:15 AM, Martin Tarenskeen wrote:

>
>
> On Sun, 22 Mar 2020, Павел Буданов 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
>>
>>
>
> Python 2 vs 3 issue?
>
>
> MT

Reply | Threaded
Open this post in threaded view
|

Re: musicxml2ly 2.20 bug

David Wright
In reply to this post by Павел Буданов-2
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.)

Cheers,
David.

Reply | Threaded
Open this post in threaded view
|

Re: musicxml2ly 2.20 bug

David Kastrup
David Wright <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: musicxml2ly 2.20 bug

Jacques Menu Muzhic
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, 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 <[hidden email]> a écrit :

David Wright <[hidden email]> 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