seeraven / gitcache

Local cache for git repositories to speed up working with large repositories and multiple clones.
BSD 3-Clause "New" or "Revised" License
37 stars 6 forks source link

Unable to run on MacOS #58

Open waipeng opened 10 hours ago

waipeng commented 10 hours ago

After getting through the MacOS security messages, I get the following

“Python.framework” is damaged and can’t be opened. You should move it to the Bin.

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! 😄

seeraven commented 4 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

Youw commented 2 hours ago

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.