Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

python test.py I got an error : OSError: [Errno 2] No such file or directory #1

Closed
beautifulzzzz opened this issue Dec 21, 2018 · 1 comment

Comments

@beautifulzzzz
Copy link

beautifulzzzz commented Dec 21, 2018

Hello:

I use python test.py and get an error:

python-dimond (master) ✗ sudo python test.py
[sudo] password for btfz:
Traceback (most recent call last):
File "test.py", line 11, in
network.connect()
File "/home/btfz/Downloads/BLE_PAPER/python-dimond/dimond/init.py", line 113, in connect
self.device = btle.Peripheral(self.mac, addrType=btle.ADDR_TYPE_PUBLIC)
File "/usr/local/lib/python2.7/dist-packages/bluepy-1.3.0-py2.7.egg/bluepy/btle.py", line 391, in init
self._connect(deviceAddr, addrType, iface)
File "/usr/local/lib/python2.7/dist-packages/bluepy-1.3.0-py2.7.egg/bluepy/btle.py", line 426, in _connect
self._startHelper(iface)
File "/usr/local/lib/python2.7/dist-packages/bluepy-1.3.0-py2.7.egg/bluepy/btle.py", line 284, in _startHelper
preexec_fn = preexec_function)
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

@mjg59
Copy link
Contributor

mjg59 commented May 18, 2019

Sorry for the late response - this suggests that your bluepy install is broken somehow, it's missing the Bluetooth helper.

@mjg59 mjg59 closed this as completed May 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants