{"action":"opened","issue":{"url":"https://api.github.com/repos/karulis/pybluez/issues/99","labels_url":"https://api.github.com/repos/karulis/pybluez/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/karulis/pybluez/issues/99/comments","events_url":"https://api.github.com/repos/karulis/pybluez/issues/99/events","html_url":"https://github.com/karulis/pybluez/issues/99","id":111272005,"number":99,"title":"Bluetooth module not working","user":{"login":"sudiptakarmakar","id":2730823,"avatar_url":"https://avatars.githubusercontent.com/u/2730823?v=3","gravatar_id":"","url":"https://api.github.com/users/sudiptakarmakar","html_url":"https://github.com/sudiptakarmakar","followers_url":"https://api.github.com/users/sudiptakarmakar/followers","following_url":"https://api.github.com/users/sudiptakarmakar/following{/other_user}","gists_url":"https://api.github.com/users/sudiptakarmakar/gists{/gist_id}","starred_url":"https://api.github.com/users/sudiptakarmakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudiptakarmakar/subscriptions","organizations_url":"https://api.github.com/users/sudiptakarmakar/orgs","repos_url":"https://api.github.com/users/sudiptakarmakar/repos","events_url":"https://api.github.com/users/sudiptakarmakar/events{/privacy}","received_events_url":"https://api.github.com/users/sudiptakarmakar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-13T21:11:31Z","updated_at":"2015-10-13T21:11:31Z","closed_at":null,"body":"When I'm running this code\r\n```\r\nimport bluetooth as bt\r\nbt.discover_devices(lookup_names=True)\r\n```\r\nI get the following error:\r\n```\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/piyush/.virtualenvs/py27/local/lib/python2.7/site-packages/bluetooth/bluez.py\", line 26, in discover_devices\r\n    device_id = _bt.hci_get_route()\r\nOSError: [Errno 19] No such device\r\n```\r\n\r\nAlso, when I'm calling `advertise_service` following the examples provided, I got the following errors in different times,\r\n```\r\nTraceback (most recent call last):\r\n  File \"build/bdist.linux-x86_64/egg/bluetooth/bluez.py\", line 268, in advertise_service\r\n  bluetooth.btcommon.BluetoothError: error no advertisable device.\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"bt.py\", line 17, in <module>\r\n    advertise_service( server_sock, \"SampleServer\", service_id = uuid, service_classes = [ uuid, SERIAL_PORT_CLASS ], profiles = [ SERIAL_PORT_PROFILE ])\r\n  File \"/home/machinename/.virtualenvs/py27/local/lib/python2.7/site-packages/bluetooth/bluez.py\", line 242, in advertise_service\r\n    raise BluetoothError (str (e))\r\nbluetooth.btcommon.BluetoothError: (2, 'No such file or directory')\r\n```\r\nHere is my [stackoverflow post](http://stackoverflow.com/questions/33110992/python-code-for-bluetooth-throws-error-after-i-had-to-reset-the-adapter) about it."}}