Re: Errors with midi2ly and musicxml2ly

2019-11-20 Thread m.tarensk...@zonnet.nl
   Verzonden vanaf mijn Huawei mobiele telefoon

    Oorspronkelijk bericht 
   Onderwerp: Re: Errors with midi2ly and musicxml2ly
   Van: m.tarensk...@zonnet.nl
   Aan: Aaron Hill
   Cc:

 There are more python2 vs python3 issues in those scripts than just
 that one. You can try to check ( and fix) using the 2to3 script.
 Or use Python2 to run the scripts.
 Verzonden vanaf mijn Huawei mobiele telefoon

    Oorspronkelijk bericht 
   Onderwerp: Re: Errors with midi2ly and musicxml2ly
   Van: Aaron Hill
   Aan: bug-lilypond@gnu.org
   Cc:

 On 2019-11-20 12:00 am, Артем Тартаковский wrote:
 > ср, 20 нояб. 2019 г., 2:00 Aaron Hill :
 >> It's a compatibility issue between Python 2 and 3. The backtick
 >> operator was removed [1] in Python 3, in favor of the repr()
 >> procedure.
 >>
 >> [1]:
 >>
 https://portingguide.readthedocs.io/en/latest/syntax.html#backticks
 >>
 >> It is my understanding the scripts shipping with LilyPond are not
 >> expected to be interpretable by Python 3 yet.
 >
 > So what do I have to replace this construction with?
 Near as I can tell, it's a simple replacement of `foo` with
 repr(foo).
 So, you could potentially run the scripts through the following sed
 command:
 sed -i~ 's/`\([^`]*\)`/repr(\1)/g' *.py
 -- Aaron Hill
 ___
 bug-lilypond mailing list
 bug-lilypond@gnu.org
 https://lists.gnu.org/mailman/listinfo/bug-lilypond
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Import of MXL (compressed XML) ends with error message missing "zlib module"

2019-01-13 Thread m.tarensk...@zonnet.nl
   Doesn't frescobaldi use musicxml2ly.py for musicxml import? And isn't
   musicxml2ly.py part of the LilyPond project? Correct me if am wrong,
   I'm not sure.
   Verzonden vanaf mijn Huawei mobiele telefoon

    Oorspronkelijk bericht 
   Onderwerp: Re: Import of MXL (compressed XML) ends with error message
   missing "zlib module"
   Van: Urs Liska
   Aan: bug-lilypond@gnu.org,Sam
   Cc:

 Hi Sam,
 Am 13. Januar 2019 14:26:48 MEZ schrieb Sam :
 >Hello Lilypondians,
 >I tried to import compressed musicxml files (MXL), but no matter
 which
 >Lilypond version I am using (not all of them, of course, but
 2.19.31/65
 >
 >+ 82), I always get the error message "De-compression requires the
 >(missing) zlib module". The attachment contains a MXL file for
 testing
 >purposes. According to Lilypond and also Frescobaldi's import
 dialog an
 >
 >MXL import should be possible. As it looks something is missing
 with
 >the
 >bundled Python.
 I can't really say anything about this.
 >
 >Greetings
 >Andreas
 >
 >OS is Windows 10 (1809), Lilypond 2.19.31/65/82 (in 3 different
 >directories) and Frescobaldi 2.20.0 are installed.
 >
 >P.S.: since the import via XML works quite well for me (but not in
 >2.9.65/82), the MXL problem never bothered me much. Unfortunately
 >MuseScore has changed the extension from .xml to .musicxml, so you
 have
 >
 >to rename files you want to import all the time. Maybe you could
 add
 >the
 >extension musicxml for the import.
 This is directed at Frescobaldi and not LilyPond. I can easily add
 that, but could you please add that wish on Frescobaldi's GitHub
 issue tracker so it doesn't get lost.
 Thanks
 Urs
 ___
 bug-lilypond mailing list
 bug-lilypond@gnu.org
 https://lists.gnu.org/mailman/listinfo/bug-lilypond
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond