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

With Bluetooth OFF i am getting an error. #33

Open
CaptainMorgan12 opened this issue Sep 26, 2022 · 0 comments
Open

With Bluetooth OFF i am getting an error. #33

CaptainMorgan12 opened this issue Sep 26, 2022 · 0 comments

Comments

@CaptainMorgan12
Copy link

CaptainMorgan12 commented Sep 26, 2022

Run sudo python3 Bluetooth-Unlock.py on GNOME Librem 5 phone Mobile, Phosh shell, Gnome v 1.3.38+3, blueooth v 5.55-3.1. This may be a feature request of sorts.

Turn off bluetooth device and select search for bluetooth device. Script fails:

`Would you like to activate debug mode? [Y/N] Y
DEBUG is active

Thank you for using Bluetooth-Unlock 9.1 root

Searching for nearby devices...

Traceback (most recent call last):
File "/home/purism/Bluetooth-Unlock/Bluetooth-Unlock.py", line 361, in
get_device_address()
File "/home/purism/Bluetooth-Unlock/Bluetooth-Unlock.py", line 257, in get_device_address
nearby = discover_devices(lookup_names = True)
File "/usr/lib/python3/dist-packages/bluetooth/bluez.py", line 19, in discover_devices
device_id = _bt.hci_get_route()
OSError: [Errno 19] No such device
`

What it should be doing is sit and wait until a bluetooth device becomes available and continue with process. Add device handling and bluetooth interruption management.

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

No branches or pull requests

1 participant