[Slackbuilds-users] meld3 fails to start
Andrzej Telszewski
andrzej at telszewski.com
Thu May 15 11:22:06 UTC 2025
On 11/05/2025 17:39, fourtysixandtwo wrote:
> Hi Andrzej,
>
> See it here too. I would report upstream. meld3 claims to support
> python >=3.6 in pyproject.toml.
>
> Here's a patch for the source to make it work on python-3.9. I did
> this once before on something I never submitted to SBo and meld3 was
> much easier to fix.
Worked for me as well, thanks!
>
> diff --git a/meld/actiongutter.py b/meld/actiongutter.py
> index 6830d93..8c4ba92 100644
> --- a/meld/actiongutter.py
> +++ b/meld/actiongutter.py
> @@ -215,8 +215,8 @@ class ActionGutter(Gtk.DrawingArea):
> def motion_event(
> self,
> controller: Gtk.EventControllerMotion,
> - x: float | None = None,
> + x: "float | None" = None,
> - y: float | None = None,
> + y: "float | None" = None,
> ):
> if x is None or y is None:
> # Missing coordinates are leave events
> diff --git a/meld/chunkmap.py b/meld/chunkmap.py
> index 7db280e..994b924 100644
> --- a/meld/chunkmap.py
> +++ b/meld/chunkmap.py
> @@ -258,8 +258,8 @@ class ChunkMap(Gtk.DrawingArea):
> def motion_event(
> self,
> controller: Gtk.EventControllerMotion,
> - x: float | None = None,
> + x: "float | None" = None,
> - y: float | None = None,
> + y: "float | None" = None,
> ):
> if self._have_grab:
> self._scroll_fraction(y, animate=False)
>
>
> On Sun, May 11, 2025 at 5:22 AM Andrzej Telszewski
> <andrzej at telszewski.com> wrote:
>> Hello,
>>
>> after latest update, meld3 fails for me with:
>>
>> x: float | None = None,
>> TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
>>
>> I guess this is because of unsupported syntax in stock Slackware Python
>> which is 3.9:
>>
>> https://stackoverflow.com/questions/76712720/typeerror-unsupported-operand-types-for-type-and-nonetype
>>
>> Per the link above, we would need at least Python 3.10 or maybe try to
>> patch meld3.
>>
>> Anyone experiencing this issue?
>>
>> --
>> Best regards,
>> Andrzej Telszewski
>>
>> _______________________________________________
>> SlackBuilds-users mailing list
>> SlackBuilds-users at slackbuilds.org
>> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - https://slackbuilds.org/faq/
>>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
More information about the SlackBuilds-users
mailing list