https://bugs.kde.org/show_bug.cgi?id=512001
Bug ID: 512001
Summary: Krita Next: python imports failing on MacOs
Classification: Applications
Product: krita
Version First nightly build (please specify the git hash!)
Reported In:
Platform: Other
OS: Other
Status: REPORTED
Severity: normal
Priority: NOR
Component: Scripting
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
I am using python scripting with Krita extensively, and importing PIL module
installed in conda env. It warked perfectly for a long time, but after update
to latest Nightly build (git hash 7d99ce6) i am getting the error:
```
dlopen(/Users/ipv6/miniconda3/envs/py310_kri/lib/python3.10/site-packages/PIL/_imaging.cpython-310-darwin.so,
0x0002): tried:
'/Users/ipv6/miniconda3/envs/py310_kri/lib/python3.10/site-packages/PIL/_imaging.cpython-310-darwin.so'
(code signature in <50DD719B-0D43-31F3-A5DE-F92465C8CEB7>
'/Users/ipv6/miniconda3/envs/py310_kri/lib/python3.10/site-packages/PIL/_imaging.cpython-310-darwin.so'
not valid for use in process: mapping process and mapped file (non-platform)
have different Team IDs)
```
And imports are not working after that. This is known error with importing
python modules into codesigned macos applications. It can be fixed by relaxing
codesign restrictions by adding entitlement with
"com.apple.security.cs.disable-library-validation", for example duckdb project
made similar fix:
https://github.com/opengisch/qgis-notarize/pull/3/commits/c9d2f31e05f644f720f0417d6ef5b5757b2d0943
Please, relax codesign restrictions on MacOs to allow import python modules for
Krita scripting.
SOFTWARE/OS VERSIONS
macOS: Tahoe, 26.1 (25B78), Apple M2 Pro
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.