[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ANNOUNCE] ly2video 0.4.1
From: |
Adam Spiers |
Subject: |
Re: [ANNOUNCE] ly2video 0.4.1 |
Date: |
Wed, 6 Mar 2013 09:44:23 +0000 |
On Wed, Mar 6, 2013 at 8:05 AM, Knut Petersen <address@hidden> wrote:
> File "sources/ly2video-0.4.1/ly2video.py", line 148, in getAbsolutePitch
> return LySrc.get(self.filename).getAbsolutePitch(self)
> File "sources/ly2video-0.4.1/ly2video.py", line 80, in get
> cls.cache[filename] = LySrc(filename)
> File "sources/ly2video-0.4.1/ly2video.py", line 87, in __init__
> self.initParser(document)
> File "sources/ly2video-0.4.1/ly2video.py", line 95, in initParser
> language, keyPitch = ly.tools.languageAndKey(document)
> File "/home/knut/sources/ly2video-0.4.1/ly/tools.py", line 322, in
> languageAndKey
> for token in tokens:
> File "/home/knut/sources/ly2video-0.4.1/ly/tokenize.py", line 693, in
> tokens
> for token in super(LineColumnMixin, self).tokens(text, pos):
> File "/home/knut/sources/ly2video-0.4.1/ly/tokenize.py", line 218, in
> tokens
> yield self.Unparsed(text[pos:m.start()], pos)
> File "/home/knut/sources/ly2video-0.4.1/ly/tokenize.py", line 296, in
> __new__
> obj = unicode.__new__(cls, value)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0:
> ordinal not in range(128)
>
> Any idea what could be broken?
It sounds like your .ly input file is not 8-bit clean - is it
UTF-encoded? And it seems that ly2video does not support that yet.
Probably you have an accent somewhere in the text; if you could remove
that it will probably work. It's also worth trying with latest git
version which has many improvements. If you find the same problem
there too, please file a new issue and I will try to fix.
- Re: [ANNOUNCE] ly2video 0.4.1, Knut Petersen, 2013/03/06
- Re: [ANNOUNCE] ly2video 0.4.1,
Adam Spiers <=
- Re: [ANNOUNCE] ly2video 0.4.1, Knut Petersen, 2013/03/06
- Re: [ANNOUNCE] ly2video 0.4.1, Adam Spiers, 2013/03/06
- Re: [ANNOUNCE] ly2video 0.4.1, Knut Petersen, 2013/03/06
- Re: [ANNOUNCE] ly2video 0.4.1, Adam Spiers, 2013/03/06
- Re: [ANNOUNCE] ly2video 0.4.1, Martin Tarenskeen, 2013/03/07
- Re: [ANNOUNCE] ly2video 0.4.1, Knut Petersen, 2013/03/08