Page 1 of 1

Python Bluetooth advertise_service error

Posted: Wed Jan 13, 2016 1:02 pm
by haylocki
Hi,

I recently installed minibian on my Raspberry Pi model B.

When running a python program I received the following error:

Process Process-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/root/my_bluetooth.py", line 91, in server
profiles = [ SERIAL_PORT_PROFILE ],
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 176, in advertise_service
raise BluetoothError (str (e))
BluetoothError: (2, 'No such file or directory')

After many hours of Googling, I finally found the solution in a Fedora bug report.

To fix the error :

Edit "/lib/systemd/system/bluetooth.service"

and change the line :

ExecStart=/usr/lib/bluetooth/bluetoothd

To :

ExecStart=/usr/lib/bluetooth/bluetoothd --compat

Hopefully someone will find this helpful.

Cheers, Ian

Re: Python Bluetooth advertise_service error

Posted: Wed Oct 05, 2016 1:08 pm
by oferby
Thank!!!!

it did the trick.

Ofer.