I was checking the error you were getting and I decided to look for the bluez.py file. However I discovered that the Bluetooth library was not present in my Edison. So, I believe this issue may be related to that library, I'd suggest you to check this file and to look for the meaning of the BluetoothError (str (e)) flag. I mean this issue could be caused by several reasons, like some file of the library may be corrupted or you could have forgotten to unblock the Edison's Bluetooth before trying this script so that when it tries to access Bluetooth, the antenna is not available.
Have you installed pyBluez? You'd have to instal it to find the bluez.py file. This is the path to mine, "/usr/lib/python2.7/site-packages/bluetooth/bluez.py". I have done all the checks, and bluetooth is enabled and available but there isnt any luck. How ever i have tried same script on a windows PC and it worked fine. I dont know if there is compatibility issues involved...
1 of 1 people found this helpful
Just to help someone with the same issue. I solved the problem by doing this (run the Bluetooth daemon in 'compatibility' mode)
Edit this file:
Add -C after "bluetooth"
ExecStart=/usr/lib/bluez5/bluetooth/bluetoothd -E -C
Then reboot the system.
To verify if the the service is running you can type the command:
sdptool browse local