https://bugs.kde.org/show_bug.cgi?id=497859
Bug ID: 497859 Summary: cgitb is required for python scripting but was removed from Python 3.13. Classification: Applications Product: krita Version: unspecified Platform: Arch Linux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Scripting Assignee: krita-bugs-n...@kde.org Reporter: a2800...@gmail.com Target Milestone: --- SUMMARY I receive the following error starting krita, with the consequence that the Scripting environment is not functional: ``` Set PYTHONPATH environment variable /usr/lib/krita-python-libs/krita added to PYTHONPATH krita.scripting: "Traceback (most recent call last):" krita.scripting: " File \"/usr/lib/krita-python-libs/krita/__init__.py\", line 32, in <module>" krita.scripting: " import excepthook" krita.scripting: " File \"/usr/lib/krita-python-libs/krita/excepthook.py\", line 14, in <module>" krita.scripting: " import cgitb" krita.scripting: "ModuleNotFoundError: No module named 'cgitb'" krita.scripting: "Could not import krita" ``` I believe this is the consequence of my system Python version being 3.13 and that `cgitb` was removed in 3.13 after being deprecated in 3.11. This may be the result of me using arch and I sincerely hope this is not just an arch user annoyance, I assume this will probably bite scripting users as soon as they reach 3.13. The offending import in `excepthook.py` appears in all branches I've scrounged through on gitlab. STEPS TO REPRODUCE 1. start krita from the commandline OBSERVED RESULT The error message above and an empty tools menu. EXPECTED RESULT A working Scripter SOFTWARE/OS VERSIONS ``` $ python --version Python 3.13.1 $ krita --version krita 5.2.6 $ qtdiag6 Qt 6.8.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 14.2.1 20240910) on "wayland" OS: Arch Linux [linux version 6.12.6-arch1-1] (...) ``` Thank you! -- You are receiving this mail because: You are watching all bug changes.