I'm running Ubuntu 13.04 Server on a Mac OS X (Maverick) and python 2.7.5.
I installed PyBluez and Bluez-libs. When I type
import bluetooth
or
from bluetooth import *
it successfully imports but when I try to run a basic script using the
discover_devices()
method, I get this error
Traceback (most recent call last):
File "./fin.py", line 4, in <module>
devlist = discover_devices()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 17, in discover_devices
sock = _gethcisock ()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 226, in _gethcisock
raise BluetoothError ("error accessing bluetooth device")
bluetooth.btcommon.BluetoothError: error accessing bluetooth device
and when I type
~$ hcitool dev
no devices are named.
Any ideas?
Thanks in advance.