0-1-0 / lightblue-0.4

LightBlue python module that compiles successful on OS X 10.8 (Mountain Lion)
GNU General Public License v3.0
96 stars 92 forks source link

unable to install via python #13

Closed a1noack closed 6 years ago

a1noack commented 6 years ago

I run python setup.py install but I get errors. I'm using OSX 10.13.2. I tried changing the permission of the Library/Frameworks folder to rwx for staff but this error persisted. Any ideas?

(py2710) Adams-MacBook-Pro-4:lightblue-0.4 adamnoack$ python setup.py install
running install
running build
running build_py
running install_lib
running install_egg_info
Removing /Users/adamnoack/anaconda/envs/py2710/lib/python2.7/site-packages/lightblue-0.4-py2.7.egg-info
Writing /Users/adamnoack/anaconda/envs/py2710/lib/python2.7/site-packages/lightblue-0.4-py2.7.egg-info
Build settings from command line:
    ARCHS = x86_64
    DEPLOYMENT_LOCATION = YES
    DSTROOT = /
    INSTALL_PATH = /Library/Frameworks

=== BUILD TARGET LightAquaBlue OF PROJECT LightAquaBlue WITH CONFIGURATION Release ===

Check dependencies

Write auxiliary files
write-file /Users/adamnoack/Desktop/thesis_research/python-mindwave-mobile-py27/lightblue-0.4/src/mac/LightAquaBlue/build/LightAquaBlue.build/Release/LightAquaBlue.build/Objects-normal/x86_64/LightAquaBlue.LinkFileList
/bin/mkdir -p /Users/adamnoack/Desktop/thesis_research/python-mindwave-mobile-py27/lightblue-0.4/src/mac/LightAquaBlue/build/SharedPrecompiledHeaders/LightAquaBlue_Prefix-hdesrmpelnbqitggrloyogevohmt
write-file /Users/adamnoack/Desktop/thesis_research/python-mindwave-mobile-py27/lightblue-0.4/src/mac/LightAquaBlue/build/SharedPrecompiledHeaders/LightAquaBlue_Prefix-hdesrmpelnbqitggrloyogevohmt/LightAquaBlue_Prefix.pch.pch.hash-criteria

Create product structure
/bin/mkdir -p /Library/Frameworks/LightAquaBlue.framework/Versions/A
error: Unable to create directory: /Library/Frameworks/LightAquaBlue.framework/Versions/A (Permission denied)

** INSTALL FAILED **

The following build commands failed:
    Create product structure
(1 failure)
a1noack commented 6 years ago

Oops. I was modifying the wrong Frameworks folder. I had to set the permissions of ~/Library/Frameworks to 777. To do this, though, I had to turn off the osx SIP feature following these instructions https://studionetworksolutions.zendesk.com/hc/en-us/articles/115003839246-How-to-disable-Systems-Integrity-Protection-SIP-in-macOS