[OpenIndiana-discuss] meld tool/utility is broken

Predrag Zečević predrag.zecevic.1961 at googlemail.com
Tue Sep 15 07:10:46 UTC 2026


On 2026-09-14 22:00, Tim Mooney via openindiana-discuss wrote:
> In regard to: [OpenIndiana-discuss] meld tool/utility is broken, 
> Predrag...:
> 
>>     x: float | None = None,
>> TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
> 
> I think it may be this:
> 
> https://stackoverflow.com/questions/76712720/typeerror-unsupported- 
> operand-types-for-type-and-nonetype
> 
> Both meld's web site and meld's gitlab page says it only requires Python
> 3.4.7 or later, but that "type | None" syntax is apparently a Python 3.10+
> thing.
> 
> The first answer on the stackoverflow site has a couple of workarounds
> involving other modules.  You might try hack your copy to use one of them,
> to see if that fixes it.
> 
> I don't know for certain if this will work, assuming you have other python
> runtimes installed, you could instead try something like
> 
>      /usr/bin/python3.14 /usr/bin/meld file1.xml file2.xml
> 
> to see if the problem goes away.
> 
> Tim

IMHO, meld needs rebuild with python 3.14...

a) There is obviously no meld module present for python 3.14:
:; /usr/bin/python3.14 /usr/bin/meld file1.xml file2.xml
Traceback (most recent call last):
   File "/usr/bin/meld", line 98, in <module>
     import meld.conf  # noqa: E402
     ^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'meld'

b) Python 3.9 is still default one:
:; pkg mediator python
MEDIATOR            VER. SRC. VERSION IMPL. SRC. IMPLEMENTATION
python              local     3.9     vendor


Thanks anyway


-- 
Predrag Zečević




More information about the openindiana-discuss mailing list