Open waipeng opened 10 hours ago
Unfortunately I have no experience with MacOS and had added the binaries for some other folks working on MacOS. But yes, you can of course run gitcache from source. In summary, you have to
pip_deps
and can be installed with pip install -r pip_deps/<file>
. Here you have to pick the right one matching your python version. I would guess something like pip_deps/requirements-darwin-py3.12.4.txt
.src/gitcache
now by calling it like src/gitcache --help
. You should see no error about missing modules.Interesting... Try to run:
xattr -cr /Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64
This is to clear the quarantine attribute for the file downloaded from web.
After getting through the MacOS security messages, I get the following
Sonoma 14.7.1 (23H222) on Apple M1
This is the trace
[12748] Failed to load Python shared library '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python': dlopen: dlopen(/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python, 0x000A): tried: '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python' (code signature in <BB235480-7EF7-3727-8512-14B6E41B25B4> '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python.framework/Versions/3.12/Python' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python' (no such file), '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python' (code signature in <BB235480-7EF7-3727-8512-14B6E41B25B4> '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python.framework/Versions/3.12/Python' not valid for use in process: library load disallowed by system policy), '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python.framework/Versions/3.12/Python' (code signature in <BB235480-7EF7-3727-8512-14B6E41B25B4> '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python.framework/Versions/3.12/Python' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python.framework/Versions/3.12/Python' (no such file), '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python.framework/Versions/3.12/Python' (code signature in <BB235480-7EF7-3727-8512-14B6E41B25B4> '/Users/jake/Applications/gitcache_v1.0.18_Darwin_arm64/_internal/Python.framework/Versions/3.12/Python' not valid for use in process: library load disallowed by system policy), '/Library/Frameworks/Python.framework/Versions/3.12/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.12/Python' (no such file, not in dyld cache)
I couldn't figure out how to proceed. Do you think this is a MacOS issue or PyInstaller issue? Is there a way to run it without using the prepackaged Python?
Any advice is appreciated. Thanks! 😄