[krita] [Bug 464464] broken 5.2.0 macos dmg, Python initialization error

2023-01-25 Thread vanyossi
https://bugs.kde.org/show_bug.cgi?id=464464

vanyossi  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
   |hics/krita/commit/0317674f6 |hics/krita/commit/b199fc432
   |4a539337dafa2ed9daaafcf3f82 |8bcb86ce33872e2cbb03868c955
   |5b22|f755

--- Comment #4 from vanyossi  ---
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-1plugins/extensions/pykrita/plugin/utilities.cpp

https://invent.kde.org/graphics/krita/commit/b199fc4328bcb86ce33872e2cbb03868c955f755

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 464464] broken 5.2.0 macos dmg, Python initialization error

2023-01-25 Thread vanyossi
https://bugs.kde.org/show_bug.cgi?id=464464

vanyossi  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/grap
   ||hics/krita/commit/0317674f6
   ||4a539337dafa2ed9daaafcf3f82
   ||5b22

--- Comment #3 from vanyossi  ---
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-1plugins/extensions/pykrita/plugin/utilities.cpp

https://invent.kde.org/graphics/krita/commit/0317674f64a539337dafa2ed9daaafcf3f825b22

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 464464] broken 5.2.0 macos dmg, Python initialization error

2023-01-24 Thread amyspark
https://bugs.kde.org/show_bug.cgi?id=464464

--- Comment #2 from amyspark  ---
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 0x000113f8ce00 (most recent call first):
  
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 464464] broken 5.2.0 macos dmg, Python initialization error

2023-01-23 Thread vanyossi
https://bugs.kde.org/show_bug.cgi?id=464464

--- Comment #1 from vanyossi  ---
Do note, this happens without PYTHONPATH set, I did not noticed I pasted the
log with that test.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 464464] broken 5.2.0 macos dmg, Python initialization error

2023-01-18 Thread amyspark
https://bugs.kde.org/show_bug.cgi?id=464464

amyspark  changed:

   What|Removed |Added

 Status|REPORTED|ASSIGNED
 CC||a...@amyspark.me
 Ever confirmed|0   |1

-- 
You are receiving this mail because:
You are watching all bug changes.