| Summary: | scripter doesn't work with python 3.11 | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Bernhard Rosenkränzer <bero> |
| Component: | Scripting | Assignee: | amyspark <amy> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | amy, dimula73, halla |
| Priority: | NOR | ||
| Version First Reported In: | 5.1.3 | ||
| Target Milestone: | --- | ||
| Platform: | OpenMandriva | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/commit/03931999a82adb72b16796ffea6cb3b19f4ff65c | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Bernhard Rosenkränzer
2022-11-08 16:18:12 UTC
I'm targeting a Python upgrade to 5.2: https://invent.kde.org/graphics/krita/-/merge_requests/1604 Fixing this would ensure we can safely upgrade the minimum version to at least 3.9, so assigning to myself. This patch works for me with 3.11 https://github.com/OpenMandrivaAssociation/krita/blob/master/krita-5.1.3-python-3.11.patch Haven't tried with any older versions, but don't see why it wouldn't work. (MR 1604 doesn't have anything related to this, @asyncio.coroutine is still present in 3.11) (In reply to Bernhard Rosenkränzer from comment #2) > (MR 1604 doesn't have anything related to this, @asyncio.coroutine is still > present in 3.11) I know, I'd not tested with 3.11 as it is clearly stated from the MR. Is it OK if I cherry pick your patches and credit you appropriately? A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1643 Git commit 03931999a82adb72b16796ffea6cb3b19f4ff65c by L. E. Segovia, on behalf of Bernhard Rosenkränzer. Committed on 28/11/2022 at 22:39. Pushed by lsegovia into branch 'krita/5.1'. Fix scripting with python 3.11 See: https://github.com/OpenMandrivaAssociation/krita/commit/0267dc56d5d8a321e4397b9caf1644dd936c6f8e Signed-off-by: L. E. Segovia <amy@amyspark.me> Part-of: <https://invent.kde.org/graphics/krita/-/merge_requests/1643> (cherry picked from commit 648fdf1cbb709dd6f775c6fad5acf543d8aaa533) M +9 -16 plugins/python/scripter/debugger_scripter/debugger.py https://invent.kde.org/graphics/krita/commit/03931999a82adb72b16796ffea6cb3b19f4ff65c |