lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lilypond-book not working after installing Python 3


From: Reinhold Kainhofer
Subject: Re: Lilypond-book not working after installing Python 3
Date: Fri, 26 Feb 2010 21:23:49 +0100
User-agent: KMail/1.13.0 (Linux/2.6.31-19-generic; KDE/4.4.0; i686; ; )

Am Freitag, 26. Februar 2010 20:52:51 schrieben Sie:
> Op vrijdag 26-02-2010 om 20:39 uur [tijdzone +0100], schreef Reinhold
> 
> Kainhofer:
> > Am Freitag, 26. Februar 2010 20:16:11 schrieb Han-Wen Nienhuys:
> > 
> > There are some incompatible changes
> 
> Yes, quite a few of them.  So if you're interested look at the
> solutions for those made in GUB.

Hmm, I don't see how I could easily write code (or different included files 
like in your gub case) to support exceptions stored in a variable:

        try:
            do_one_file (f)
        except UnknownVersion:
            error (_ ("%s: Unable to determine version.  Skipping") % f)
        except InvalidVersion, ex:
            error (_ ("%s: Invalid version string `%s' \n"
                      "Valid version strings consist of three numbers, "
                      "separated by dots, e.g. `2.8.12'") % (f, ex.version) )

Except of course moving that part of the convert-ly code out to two separate 
files (which include some new include files containing the functions they 
call) for 2.x and 3.0... Of course, I might be missing the obvious, though.

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]