【发布时间】:2016-08-09 03:00:56
【问题描述】:
我只是想在https://code.google.com/p/pybluez/source/browse/trunk/examples/simple/rfcomm-server.py 上运行 RFCOMM 服务器示例
$ python2 rfcomm-server.py
Traceback (most recent call last):
File "rfcomm-server.py", line 20, in <module>
profiles = [ SERIAL_PORT_PROFILE ],
File "/usr/lib/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')
我收到此错误。我的代码在 Windows 上运行,但我无法在 Ubuntu 15.10 上运行。
【问题讨论】:
-
你安装过多次 BlueZ 包吗?
标签: bluetooth