Code signing error - M2 Mac
nickfarmer opened this issue · 2 comments
Hi,
I have installed OpenVisus using Mamba on a M2 Macbook Pro (running OSX Ventura 13.4, Mamba 1.4.1, Conda 23.1.0, Python 3.11). After running "python -m OpenVisus configure", I get an error "zsh: killed python" when trying to either run "python -m OpenVisus configure" again, or when I try to import OpenVisus in a Python prompt.
Output from "dmesg | grep "visus"" shows the following error:
CODE SIGNING: process 94879[python3.11]: rejecting invalid page at address 0x1012cc000 from offset 0x0 in file "/Users/far246/mambaforge/envs/openvisus/lib/python3.11/site-packages/OpenVisus/_VisusKernelPy.so" (cs_mtime:1706068260.470421302 == mtime:1706068260.470421302) (signed:1 validated:1 tainted:1 nx:0 wpmapped:0 dirty:0 depth:0)
I'd appreciate any help you can give.
Cheers,
Nick
I think you need to export CODE_SIGN=/usr/bin/codesign
before running the configure
step for M1/M2 platforms from what I see from this script (it's the script that is building binaries for the ARM64 architecture):
https://github.com/sci-visus/OpenVisus/blob/master/scripts/arm64.conda.sh
This way the python -m configure
will sign the binaries (see https://github.com/sci-visus/OpenVisus/blob/master/Libs/swig/__main__.py from line 227)
If it does not work, can you share the full log?
Running export CODE_SIGN=/usr/bin/codesign
before python -m OpenVisus configure
has worked.
Thanks for your help!