ndevenish / Site-ndevenish

NDevenish.com Jekyll site source
58 stars 4 forks source link

Sandboxed applications #3

Open gpalomar opened 5 years ago

gpalomar commented 5 years ago

Thanks for providing this instructions. It works like a charm!

But when I execute it inside a sandboxed application, i don't have permissions to execute from /usr/local

Console throws: /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Python: no suitable image found. Did find: file system sandbox blocked open() of '/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Python' file system sandbox blocked open() of '/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Python' <<<py2app>>>> /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Python: no suitable image found. Did find: file system sandbox blocked open() of '/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Python' file system sandbox blocked open() of '/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Python' 2019-03-30 11:27:48.764 Be12Sync[34398:5182232] Bridge has encountered a fatal error, and will now terminate. 2019-03-30 11:27:48.765 Be12Sync[34398:5182232] An internal error occurred while attempting to link with:

I have read Apple Sanbox in Depth documentation but nothing helps me to resolve that issue.

Any one with same problem?

Thanks!

LucaMarconato commented 5 years ago

I have the same problem

gpalomar commented 5 years ago

Solved removing the "-A" (creates a symlink) parameter. Write python setup.py py2app and it works and error disappear.

Now, another problem, python says NETWORK_ERROR when I try to call a http request. Seems that network could not be reached from my macOs application :(