Summary: | broken 5.2.0 macos dmg, Python initialization error | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | vanyossi <ghevan> |
Component: | General | Assignee: | vanyossi <ghevan> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | amy |
Priority: | NOR | Keywords: | triaged |
Version: | git master (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | macOS (DMG) | ||
OS: | macOS | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/b199fc4328bcb86ce33872e2cbb03868c955f755 | Version Fixed In: | |
Sentry Crash Report: |
Description
vanyossi
2023-01-18 15:34:23 UTC
Do note, this happens without PYTHONPATH set, I did not noticed I pasted the log with that test. This is the full script log: krita.scripting: Loading Python plugin krita.scripting: Initializing Python plugin for Python 3 , 10 krita.scripting: Plugin Directories: ("/Users/amalia/Library/Application Support/krita/", "/Volumes/krita/krita.app/Contents/Resources/", "/Users/amalia/Library/Application Support/krita/pykrita/", "/Volumes/krita/krita.app/Contents/share/krita/pykrita/", "/Volumes/krita/krita.app/share/krita/pykrita/", "/Volumes/krita/krita.app/Contents/share/pykrita/") krita.scripting: Python::setPath. Script paths: ("/Users/amalia/Library/Application Support/krita/", "/Volumes/krita/krita.app/Contents/Resources/", "/Users/amalia/Library/Application Support/krita/pykrita/", "/Volumes/krita/krita.app/Contents/share/krita/pykrita/", "/Volumes/krita/krita.app/share/krita/pykrita/", "/Volumes/krita/krita.app/Contents/share/pykrita/") true krita.scripting: pythonLibsPath (krita-python-libs) "/Volumes/krita/krita.app/Contents/Frameworks/krita-python-libs" krita.scripting: Found krita-python-libs at "/Volumes/krita/krita.app/Contents/Frameworks/krita-python-libs" krita.scripting: pythonLibsPath (sip) "" krita.scripting: "python3.10" "python3.10" krita.scripting: Setting python paths: "/Users/amalia/Library/Application Support/krita/:/Volumes/krita/krita.app/Contents/Resources/:/Users/amalia/Library/Application Support/krita/pykrita/:/Volumes/krita/krita.app/Contents/share/krita/pykrita/:/Volumes/krita/krita.app/share/krita/pykrita/:/Volumes/krita/krita.app/Contents/share/pykrita/:/Volumes/krita/krita.app/Contents/Frameworks/krita-python-libs:/Users/Packaging/KritaBuild/i/lib/python3.10/site-packages:/Users/Packaging/KritaBuild/i/lib/python3.10/site-packages/PyQt5" krita.scripting: Initializing Python interpreter Python path configuration: PYTHONHOME = '/Volumes/krita/krita.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10' PYTHONPATH = (not set) program name = 'python3' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/Volumes/krita/krita.app/./Contents/MacOS/krita' sys.base_prefix = '' sys.base_exec_prefix = '' sys.platlibdir = 'lib' sys.executable = '/Volumes/krita/krita.app/./Contents/MacOS/krita' sys.prefix = '' sys.exec_prefix = '' sys.path = [ '/Users/amalia/Library/Application Support/krita/', '/Volumes/krita/krita.app/Contents/Resources/', '/Users/amalia/Library/Application Support/krita/pykrita/', '/Volumes/krita/krita.app/Contents/share/krita/pykrita/', '/Volumes/krita/krita.app/share/krita/pykrita/', '/Volumes/krita/krita.app/Contents/share/pykrita/', '/Volumes/krita/krita.app/Contents/Frameworks/krita-python-libs', '/Users/Packaging/KritaBuild/i/lib/python3.10/site-packages', '/Users/Packaging/KritaBuild/i/lib/python3.10/site-packages/PyQt5', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x0000000113f8ce00 (most recent call first): <no Python frame> krita.general: Warning: some tiles have leaked: krita.general: Tiles in memory: 4 Total tiles: 4 fish: Job 1, 'env QT_LOGGING_RULES="krita.scr…' terminated by signal SIGSEGV (Address boundary error) See the lines hardcoded to the binary factory? It means that Krita's thinking that we're running from a system installation of Python (utilities.cpp line 382, involving KRITA_PYKRITA_LIBRARY). findKritaPythonLibsPath needs to be fixed so that it detects Python 3.10. Git commit 0317674f64a539337dafa2ed9daaafcf3f825b22 by Ivan Yossi. Committed on 25/01/2023 at 20:10. Pushed by ivany into branch 'master'. macos: add python.framework lib to search paths M +5 -1 plugins/extensions/pykrita/plugin/utilities.cpp https://invent.kde.org/graphics/krita/commit/0317674f64a539337dafa2ed9daaafcf3f825b22 Git commit b199fc4328bcb86ce33872e2cbb03868c955f755 by Ivan Yossi. Committed on 25/01/2023 at 20:13. Pushed by ivany into branch 'krita/5.1'. macos: add python.framework lib to search paths (cherry picked from commit 0317674f64a539337dafa2ed9daaafcf3f825b22) M +5 -1 plugins/extensions/pykrita/plugin/utilities.cpp https://invent.kde.org/graphics/krita/commit/b199fc4328bcb86ce33872e2cbb03868c955f755 |