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
95 stars 92 forks source link

Can't install light blue on macOS 11.5 #16

Open Zepp-lin opened 3 years ago

Zepp-lin commented 3 years ago

lightblue-0.4 % sudo python setup.py install Password: running install running build running build_py running install_lib byte-compiling /Users/timothedesbordes/opt/anaconda3/lib/python3.8/site-packages/lightblue/_bluetoothsockets.py to _bluetoothsockets.cpython-38.pyc File "/Users/timothedesbordes/opt/anaconda3/lib/python3.8/site-packages/lightblue/_bluetoothsockets.py", line 391 except _socket.error, err: ^ SyntaxError: invalid syntax

byte-compiling /Users/timothedesbordes/opt/anaconda3/lib/python3.8/site-packages/lightblue/_lightblue.py to _lightblue.cpython-38.pyc File "/Users/timothedesbordes/opt/anaconda3/lib/python3.8/site-packages/lightblue/_lightblue.py", line 60 except _lightbluecommon.BluetoothError, e: ^ SyntaxError: invalid syntax

byte-compiling /Users/timothedesbordes/opt/anaconda3/lib/python3.8/site-packages/lightblue/_macutil.py to _macutil.cpython-38.pyc File "/Users/timothedesbordes/opt/anaconda3/lib/python3.8/site-packages/lightblue/_macutil.py", line 43 kIOBluetoothServiceBrowserControllerOptionsNone = 0L ^ SyntaxError: invalid syntax

running install_egg_info Removing /Users/timothedesbordes/opt/anaconda3/lib/python3.8/site-packages/lightblue-0.4-py3.8.egg-info Writing /Users/timothedesbordes/opt/anaconda3/lib/python3.8/site-packages/lightblue-0.4-py3.8.egg-info Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild install -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES

User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line: DEPLOYMENT_LOCATION = YES DSTROOT = / INSTALL_PATH = /Library/Frameworks

note: Using new build system note: Planning build note: Analyzing workspace note: Constructing build description note: Build preparation complete error: unable to find sdk '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.4u.sdk' (in target 'LightAquaBlue' from project 'LightAquaBlue') warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. (in target 'LightAquaBlue' from project 'LightAquaBlue')

INSTALL FAILED

yeSpud commented 3 years ago

Try running with python2