Kayvan A. Sylvan wrote:

> On Wed, Dec 10, 2003 at 03:08:20PM -0800, Kayvan A. Sylvan wrote:
>> lyx2lyx is not working for an old document of mine and it does
>> not seem like a format error. I know lyx2lyx just got changed, so I
>> am reporting this:
>> 
>> $ /usr/local/share/lyx/lyx2lyx/lyx2lyx markpassion.lyx
>> Traceback (most recent call last):
>>   File "/usr/local/share/lyx/lyx2lyx/lyx2lyx", line 197, in ?
>>     main(sys.argv)
>>   File "/usr/local/share/lyx/lyx2lyx/lyx2lyx", line 171, in main
>>     fmt =  read_file(opt.input, header, body)
>>   File "/usr/local/share/lyx/lyx2lyx/lyx2lyx", line 147, in
>>   read_file
>>     fmt = lyxformat(result.group(1))
>>   File "/usr/local/share/lyx/lyx2lyx/lyx2lyx", line 118, in
>>   lyxformat
>>     opt.err.write(fmt + ": " + error.format_not_supported)
>> TypeError: unsupported operand type(s) for +: 'int' and 'str'
>> 
>> The document is attached.
> 
> I changed the "222" to "221" and the document was successfully
> translated. This seems to still be a bug in the way lyx2lyx works,
> though.
> 
> I should have gotten a better error message than the above
> traceback.

This bug should be fixed in current cvs. The offending line should now 
be:
opt.err.write(str(fmt) + ": " + error.format_not_supported)

Please update and try again.

-- 
Angus

Reply via email to