agrimgrover / pybluez

Automatically exported from code.google.com/p/pybluez
GNU General Public License v2.0
0 stars 0 forks source link

advertise_service fails in fedora 20 #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start script from 
http://code.google.com/p/pybluez/source/browse/trunk/examples/simple/rfcomm-serv
er.py

What is the expected output? What do you see instead?
Expected: no error
Actual message:
$ python ./rfcomm-server.py
Traceback (most recent call last):
  File "./rfcomm-server.py", line 20, in <module>
    profiles = [ SERIAL_PORT_PROFILE ]
  File "/usr/lib64/python2.7/site-packages/bluetooth/bluez.py", line 176, in advertise_service
    raise BluetoothError (str (e))
bluetooth.btcommon.BluetoothError: (2, 'No such file or directory')

What version of the product are you using? On what operating system?
Fedora 20
Name        : pybluez
Arch        : x86_64
Version     : 0.18
Release     : 7.fc20

Name        : bluez
Arch        : x86_64
Version     : 5.13
Release     : 1.fc20

Additional information:
sdptool does not work either.

Workaround to fix the issue:
I had to change the file
/usr/lib/systemd/system/bluetooth.service
and add the option --compat to bluetoothd. 

Original issue reported on code.google.com by christia...@googlemail.com on 2 Feb 2014 at 7:37

GoogleCodeExporter commented 8 years ago
exact same issue for me, --compat solved. Thanks OP for workaround.

running pybluez 0.20-2 on up-to-date arch system.
bluez 5.17-1

saw same thing on x86 and arm platform.

Original comment by r...@mobhi.com on 15 Apr 2014 at 12:23

GoogleCodeExporter commented 8 years ago
As 'sdptool does not work either' does not work either
this seems to be issue outside PyBluez

Original comment by karu...@wp.pl on 22 Jul 2014 at 2:39