bug-lilypond
[Top][All Lists]
Advanced

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

convert-ly incompatible with Python 2.2


From: Mats Bengtsson
Subject: convert-ly incompatible with Python 2.2
Date: Tue, 22 Mar 2005 14:38:16 +0100
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Hi,

I have finally taken the time to compile the latest development version.
When trying to convert an old file containing some special characters,
I received the following error message

convert-ly -e /tmp/fonts.ly
convert-ly (GNU LilyPond) 2.5.16
Processing `/tmp/fonts.ly'...
Applying conversion: 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.12, 2.5.13Traceback (most recent call last):
  File "/space/bin/convert-ly", line 2594, in ?
    do_one_file (f)
  File "/space/bin/convert-ly", line 2527, in do_one_file
    touched = do_conversion (infile, from_version, outfile, to_version)
  File "/space/bin/convert-ly", line 2465, in do_conversion
    str = x[1] (str)
  File "/space/bin/convert-ly", line 2426, in conv
    except UnicodeDecodeError:
NameError: global name 'UnicodeDecodeError' is not defined

I use Python 2.2.2 but it seems that the current implementation in
convert-ly depends on Python version 2.3 or newer, see
http://www.python.org/doc/2.3.5/whatsnew/node11.html
I could easily make convert-ly work with my version of Python by
replacing the two occurances of "UnicodeDecodeError" by "UnicodeError"
but then it will probably not work any more with newer versions of
Python.

   /Mats

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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