I tried to install pybluez using following commands.
pip install pybluez
sudo easy_install pybluez
But for both commands I en
It appears that the releases on PyPI are very outdated, but using the latest from the GitHub repository works perfectly.
$ pip install git+https://github.com/pybluez/pybluez.git
git+https://github.com/pybluez/pybluez.git
PyBluez is only for PC. Try lightblue
Download and install the master distribution: https://github.com/postskolkovo/lightblue-0.4
cd ~/Downloads/lightblue-0.4-master
sudo python setup.py install
If you get the error:
Check dependencies
No architectures to compile for (ARCHS=$(NATIVE_ARCH_ACTUAL), VALID_ARCHS=i386 x86_64).
** INSTALL FAILED **
you'll have to open up setup.py and change:
os.system("xcodebuild install -arch '$(NATIVE_ARCH_ACTUAL)' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
to:
os.system("xcodebuild install -arch 'i386' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
via this discussion