Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advertise_service fails in fedora 20 #62

Closed
GoogleCodeExporter opened this issue Jan 29, 2016 · 2 comments
Closed

advertise_service fails in fedora 20 #62

GoogleCodeExporter opened this issue Jan 29, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant