Barry wrote:
>> On 15 Jan 2024, at 15:24, Patrick Dupre via users
<users(a)lists.fedoraproject.org> wrote:
>>
>> Traceback (most recent call last):
>> File "/usr/share/lyx/scripts/convertDefault.py", line 68, in
<module>
>> if sys.argv[3] == 'ppm' and (im and version >= 0x060305 or gm):
>> ^^^^^^^^^^^^^^^^^^^
>> TypeError: '>=' not supported between instances of 'str' and
'int'
>
> That is bad python code. Version is a string and cannot be compare against 0x060305.
> Suggest you report against the RPM package that
/usr/share/lyx/scripts/convertDefault.py comes from.
Upstream says it's fixed in 2.4.0:
https://www.lyx.org/trac/ticket/12763
The fix looks to be 639b5da1af (Fix the remaing issues with
comparisons with objects of different types., 2019-06-03)¹.
This could be trivially cherry-picked to the 2.3.x branch.
¹