Code Monkey home page Code Monkey logo

bluetooth-unlock's Introduction

Branch Info

This branch is Stable, it should work properly

Note: This project will only recieve OS-support and critical updates by me as it is considered stable

Bluetooth-Unlock

Unlock your Linux Computer using a Bluetooth device when nearby

About

Bluetooth unlock is a python script that checks for your device periodically to check if you are there, and if no connection is found then your computer locks

Installation

Step 1: Download the files

Step 2: Run install.sh (mandatory)

Step 3: Run Bluetooth-Unlock.py using: python3 Bluetooth-Unlock.py

It's that simple!, if a linux distro is not supported by BU create a feature request in the issue section

bluetooth-unlock's People

Contributors

blackpantheros avatar chfanghr avatar jose1711 avatar lethalethan avatar thisisjoesgh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bluetooth-unlock's Issues

Can't install on Linux Mint 20.1 - Cinnamon

Looking for a way to unlock my linux box with bluetooth. this doesn't seem to be a popular/wanted feature. yours is the newest code I've found.
after running sudo ./install.sh, i get

Distribution: Linuxmint Unsupported system please install dependencies yourself, sorry for the inconvenience Dependencies: python3 python3-pip bluetooth libbluetooth-dev tar PIP Dependencies: pybluez If you feel this OS should be supported please create a feature request in the issue section Install has worked!

when I do
sudo apt insatll python3 python3-pip bluetooth libbluetooth-dev tar
i get

`Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.8.2-0ubuntu2).
bluetooth is already the newest version (5.53-0ubuntu3).
tar is already the newest version (1.30+dfsg-7ubuntu0.20.04.1).
python3-pip is already the newest version (20.0.2-5ubuntu1.3).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libbluetooth-dev : Depends: libc6-dev but it is not going to be installed or
libc-dev`

E: Unable to correct problems, you have held broken packages.

this is a fresh linux mint install. i don't have any broken packages that I know how to see.

Any advice?

Thank you!

Update Service is Currently Broken

The update service is currently broken, this may have happened due to a power outage/failure earlier today and was presumably updating at the same time. I am doing the best I can to restore it but I think I'm just going to reinstall everything since all databases are screwed up and it will be easier. I will try to get the backup server, back up and running but until then you'll have to update from GitHub or the Bluetooth-Unlock website. Sorry for any inconvenience, I will have a better way next time of doing updates ๐Ÿ˜ƒ.

POP! Os

Can we have Pop OS in supported OS.

Btw stucking in

Searching for nearby devices...

[]

Enter Bluetooth Address of the device (e.g AA:BB:CC:DD:EE:FF):

Fedora 40 l2ping missing

Describe the bug
Failed to set capabilities on file '/usr/bin/l2ping': No such file or directory

To Reproduce
Steps to reproduce the behaviour:

  1. $ sudo bash install.sh
  2. See error
  3. $ python3 Bluetooth-Unlock.py
  4. See error

Expected behaviour

  • install.sh is able to set capabilities
  • python3 kept running without an error

Desktop (please complete the following information):

  • Operating System: Fedora Linux 40
  • KDE Plasma Version: 6.1.2
  • KDE Frameworks Version: 6.3.0
  • Qt Version: 6.7.2
  • Kernel Version: 6.9.8-200.fc40.x86_64 (64-bit)

Additional context

$ sudo bash install.sh

=============================================
Bluetooth Unlock Tool For Linux Distributions
            Setup Version V.8.1              
=============================================

Distribution: Fedora: 1
Using Yum on Fedora!
Last metadata expiration check: 3:26:43 ago on Fri Jul 12 08:53:42 2024.
Package python3-3.12.4-1.fc40.x86_64 is already installed.
Package python3-pip-23.3.2-1.fc40.noarch is already installed.
Package python3-bluez-0.23-15.fc40.x86_64 is already installed.
Package bluez-libs-5.76-1.fc40.x86_64 is already installed.
Package tar-2:1.35-3.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Install complete! please run Bluetooth-Unlock.py
Install has worked!
Failed to set capabilities on file '/usr/bin/l2ping': No such file or directory

$ python3 Bluetooth-Unlock.py
Python 3 has been detected you may continue

Would you like to check for an update? [Y/N] y
Downloading Update.ini from GitHub...
Done!

(03/11/2020 18:50):- Bluetooth-Unlock V1 Now has a full release 


Desktop Environment found, using: KDE

Device Address found, using: [REMOVED]


Bluetooth-Unlock is a free open-source project and always will be
I would like you to consider donating to allow me to do other projects
The donation links are on the website: https://lethalethan.github.io/Bluetooth-Unlock/
Thanks :)

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

Thank you for using Bluetooth-Unlock 9.1 [REMOVED]

Device Address is [REMOVED]

This is the sections found in config.ini
['VERSION', 'DESKTOP', 'DEVADDR']
Desktop Environment is KDE
Device Address is [REMOVED] 


Thank you to these contributors: jose1711, maaudrana, blackPanther OS, jellykells, chfanghr
Thanks to all of them :)

Bluetooth-Unlock is now active!
Traceback (most recent call last):
  File "/home/[REMOVED]/PortablePrograms/Bluetooth-Unlock-BU-V1FR1/Bluetooth-Unlock.py", line 364, in <module>
    main_bu_code()
  File "/home/[REMOVED]/PortablePrograms/Bluetooth-Unlock-BU-V1FR1/Bluetooth-Unlock.py", line 301, in main_bu_code
    check = subprocess.Popen(["l2ping", DEVADDR, "-t", "1", "-c", "1"], shell=False, stdout=subprocess.PIPE)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'l2ping'

Can't install on Deepin !

Is your feature request related to a problem? Please describe.
Can't install on Deepin !

Describe the solution you'd like
I have installed the dependence needed (maybe).
But here you see

Distribution: Deepin: 1
Unsupported system please install dependencies yourself, sorry for the inconvenience
Dependencies: python3 python3-pip bluetooth libbluetooth-dev tar
PIP Dependencies: pybluez

Describe alternatives you've considered
I hope to use this script on Deepin, thanks.

Additional context
Add any other context or screenshots about the feature request here.
ๅ›พ็‰‡
ๅ›พ็‰‡

Not working on Fedora 35 (5.14.16-301.fc35.x86_64)(GNOME 41.1)

Describe the bug
Does not install on Fedora 35

To Reproduce
Steps to reproduce the behaviour:

  1. Boot Fedora
  2. Run install.sh
  3. Run Bluetooth Unlock Python script

Expected behaviour
It works perfectly

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux: Fedora 35
  • Version: BU-V1-Stable (latest commit)

Additional context
Also pip install pybluez results in the following:

2021-11-15T13:17:26,247 Using pip 21.2.3 from /usr/lib/python3.10/site-packages/pip (python 3.10)
2021-11-15T13:17:26,249 Defaulting to user installation because normal site-packages is not writeable
2021-11-15T13:17:26,266 Created temporary directory: /tmp/pip-ephem-wheel-cache-md7uopjo
2021-11-15T13:17:26,266 Created temporary directory: /tmp/pip-req-tracker-xt29vkoe
2021-11-15T13:17:26,266 Initialized build tracking at /tmp/pip-req-tracker-xt29vkoe
2021-11-15T13:17:26,266 Created build tracker: /tmp/pip-req-tracker-xt29vkoe
2021-11-15T13:17:26,266 Entered build tracker: /tmp/pip-req-tracker-xt29vkoe
2021-11-15T13:17:26,266 Created temporary directory: /tmp/pip-install-mnjkc5oq
2021-11-15T13:17:26,279 1 location(s) to search for versions of pybluez:
2021-11-15T13:17:26,279 * https://pypi.org/simple/pybluez/
2021-11-15T13:17:26,280 Fetching project page and analyzing links: https://pypi.org/simple/pybluez/
2021-11-15T13:17:26,281 Getting page https://pypi.org/simple/pybluez/
2021-11-15T13:17:26,281 Found index url https://pypi.org/simple
2021-11-15T13:17:26,452   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/0f/59/9ebd5c52831e2e37d628e40d2da3a86517df76388c8d5088e35f55a8f28f/PyBluez-0.20.win32-py2.7.exe#sha256=24d0db4b426179136d540f897ca2bc510b21898e31ffc2a2760849c12de29d8a (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,453   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/88/22/c6af0c15746ef8017c58d9cdd7b0de807a001392c51677ec82325b135fa4/PyBluez-0.20.win32-py3.1.exe#sha256=aca793b7b7621267643150f97204ea7bb9228c93b9222e620b5743af4ccb2cdf (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,453   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/c1/52/49e24a3e14711a931cf79d26a3e585c43aa605f8049bc7779d7eb6d45bdd/PyBluez-0.20.win32-py3.3.exe#sha256=be26651dd029aab60e7391deb142b3cee83a95d193bce29fe647418f7313586e (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,453   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/dd/e6/4ce2a1529b94db6118d05ef70f181a2ef1d0e1c20164386d4cd1ea6b05f2/PyBluez-0.20.win32-py3.4.exe#sha256=a9c990fd99c45ad9d93a8a20c062a36d644590fd1e6c33e9e431679e8d11649d (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,453   Found link https://files.pythonhosted.org/packages/05/92/c28bf15c336b444ced9bb994153fba2d5c6b603e49730801f10a49f0dee6/PyBluez-0.20.zip#sha256=8b7c1553027dc2c93140f26111b6c9ecac0b7c525eeb660c8f5fddc81652720d (from https://pypi.org/simple/pybluez/), version: 0.20
2021-11-15T13:17:26,453   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/bd/7d/07ea27d208d8ad23a29c4d53b6de5fc90a64c1cc763aef23ffb0df9c832f/PyBluez-0.21.win32-py2.7.exe#sha256=74058e5862c7a72d1642fd52f21bf891e1db8964c181719b4af328a36e404898 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,453   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/02/68/490c6a7e11e1cb9aac1e2ea0d4766ee5371e7e9236a56aa935dad9a20cfc/PyBluez-0.21.win32-py3.3.exe#sha256=aef388a305d6edde0e90cc17cf1a3481bac654102de274db9e1b6f5e32127e4f (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,454   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/1f/93/ef3ef76a6302bdda2d54866e1c211fe12bf148f5e28eb51383c8a8a4f108/PyBluez-0.21.win32-py3.4.exe#sha256=d7af9fdbbdd771b2abb62ee7032fb4b4770365bd45451e2e9431866db20ee086 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,454   Found link https://files.pythonhosted.org/packages/31/90/395b6e8c4e56f27747d268a768e8ecaf7ac1fc32cebd374b03ee56c415f4/PyBluez-0.21.zip#sha256=c10966bac1c62b025bb97a1141e6fc87adad8038ff2e5402ce5e9b5f1c0ebb91 (from https://pypi.org/simple/pybluez/), version: 0.21
2021-11-15T13:17:26,468   Skipping link: none of the wheel's tags (cp27-none-win32) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/bb/53/7b242af33321989c3568d11cf2764c52044c7fa97987b8b36f0a18fd87be/PyBluez-0.22-cp27-none-win32.whl#sha256=15f7deeedf1e1ef06be88a457e8cd69c61e6a621914b082f64644e20a58f8589 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,469   Skipping link: none of the wheel's tags (cp34-none-win32) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/c2/94/3691e91c07e759a038b191f11f643a44da095608de287515b41d6858b52d/PyBluez-0.22-cp34-none-win32.whl#sha256=75009604b0923aec14e8dfa544e5713cb983fbfaa4af1646ae66234901de3979 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,469   Skipping link: none of the wheel's tags (cp35-none-win32) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/50/ef/e77f66975a856a88bc73c01020c4111e5ecaa0c0242d41284eda77f286a3/PyBluez-0.22-cp35-none-win32.whl#sha256=5e2d602894c82291f677c6a8b1bd06fa140f0eaff7e9c4537537faa73df017f0 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,469   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/dd/3b/2f6562867e822d862657ff4279ba5e668248670113eb0a71eef4b5948f1c/PyBluez-0.22.win32-py2.7.exe#sha256=7fd5f575d0faca67998f60b3cd4fcf03854a9a7d7798b35e325e324537db3173 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,469   Skipping link: unsupported archive format: .exe: https://files.pythonhosted.org/packages/d1/fa/860b847dbda2ff37c12cde2c3ecab914726920baaf1a3e3968e537186381/PyBluez-0.22.win32-py3.4.exe#sha256=a0592aacfdd0f4deb58f010b14ffde7d44c36ade122f6506065416f2ee10647a (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,469   Found link https://files.pythonhosted.org/packages/c1/98/3149481d508bee174335be6725880f00d297afebe75c15e917af8f6fe169/PyBluez-0.22.zip#sha256=4ce006716a54d9d18e8186a3f1c8b12a8e6befecffe8fd5828a291fb694ce49d (from https://pypi.org/simple/pybluez/), version: 0.22
2021-11-15T13:17:26,469   Skipping link: none of the wheel's tags (cp27-cp27m-macosx_10_13_x86_64) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/0b/e0/3528f46dc1867e53f927d7cd4af8dae17eadf651772c92e2330384155dcd/PyBluez-0.23-cp27-cp27m-macosx_10_13_x86_64.whl#sha256=7fe58ee9e53bc171d70907f5c5d3e47bc9ca4c0643dd7ca0f43ed388c916f3d4 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,469   Skipping link: none of the wheel's tags (cp27-cp27m-win_amd64) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/1c/d7/54d3d32f7f220efb9d50a2e7bf522fcce576d96e909b6210f01e23a517db/PyBluez-0.23-cp27-cp27m-win_amd64.whl#sha256=92abf92965261093e88c9d39353f3fc4d2997f5c9bd8c19fc23b1beb91e40e17 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,470   Skipping link: none of the wheel's tags (cp35-cp35m-macosx_10_13_x86_64) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/bb/42/d8fd9fad81eac543b4a9ed898cfd4eaedbd8784a79958aa8ef4a3d573774/PyBluez-0.23-cp35-cp35m-macosx_10_13_x86_64.whl#sha256=46a0c4cb39fb84c235ae7442363562575d11d7cca61b77ef035d832d15824bdd (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,470   Skipping link: none of the wheel's tags (cp35-cp35m-win_amd64) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/db/c7/27a722931bfca928552a56b544c2bd1e2d6c2d54e0b981df19604f1b2102/PyBluez-0.23-cp35-cp35m-win_amd64.whl#sha256=493d8a184433efbe7965420b6933bca37d3cacdcd168905c56d3459a8c4a5834 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,470   Skipping link: none of the wheel's tags (cp36-cp36m-macosx_10_13_x86_64) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/bc/75/9f0cdf988ba5d21bc1cfa9a8432eac034f4586956e43980f4a660f99a7b3/PyBluez-0.23-cp36-cp36m-macosx_10_13_x86_64.whl#sha256=87499a2ebbd3a3a7d2e1b3286a4cdf05a5c8a51eb2a0503c51f7698334f44412 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,470   Skipping link: none of the wheel's tags (cp36-cp36m-win_amd64) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/11/76/7ad6c3f5af44e01f857f24fcb48b19f8f47d5c83b8be5870b12a111535a3/PyBluez-0.23-cp36-cp36m-win_amd64.whl#sha256=319dab31a15d10e4797a618deed5bafc3b1c074b3a9b6270d780b3ea7ed472d5 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,470   Skipping link: none of the wheel's tags (cp37-cp37m-macosx_10_13_x86_64) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/41/6f/108953aa521a1741e015add51ca7548602513f3da779e70b97c53b06b1c7/PyBluez-0.23-cp37-cp37m-macosx_10_13_x86_64.whl#sha256=22f5963e2ad6dfb7dddadb39ab29c3863bcd5335fbf324af948a2811c43f2455 (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,470   Skipping link: none of the wheel's tags (cp37-cp37m-win_amd64) are compatible (run pip debug --verbose to show compatible tags): https://files.pythonhosted.org/packages/3e/78/d4ba3d69a20313be05afbea2ce5d29f7fa39f7a5c091fc7c1331a3feb3c1/PyBluez-0.23-cp37-cp37m-win_amd64.whl#sha256=578a2651fb48484cecd3e67c089daa53950223b5c0ee29113ff8900e49422aec (from https://pypi.org/simple/pybluez/)
2021-11-15T13:17:26,471   Found link https://files.pythonhosted.org/packages/08/9f/e9d93b266d2d1ea988780a52a696073ba0a65df65a532165fdf6ff90d0ed/PyBluez-0.23.tar.gz#sha256=c8f04d2e78951eaa9de486b4d49381704e8943d0a6e6e58f55fcd7b8582e90de (from https://pypi.org/simple/pybluez/), version: 0.23
2021-11-15T13:17:26,471 Skipping link: not a file: https://pypi.org/simple/pybluez/
2021-11-15T13:17:26,471 Given no hashes to check 4 links for project 'pybluez': discarding no candidates
2021-11-15T13:17:26,479 Collecting pybluez
2021-11-15T13:17:26,480   Created temporary directory: /tmp/pip-unpack-sy4k5bbv
2021-11-15T13:17:26,495   Using cached PyBluez-0.23.tar.gz (97 kB)
2021-11-15T13:17:26,535   Added pybluez from https://files.pythonhosted.org/packages/08/9f/e9d93b266d2d1ea988780a52a696073ba0a65df65a532165fdf6ff90d0ed/PyBluez-0.23.tar.gz#sha256=c8f04d2e78951eaa9de486b4d49381704e8943d0a6e6e58f55fcd7b8582e90de to build tracker '/tmp/pip-req-tracker-xt29vkoe'
2021-11-15T13:17:26,535     Running setup.py (path:/tmp/pip-install-mnjkc5oq/pybluez_91f441a6b0fd454cb56f76567af50a64/setup.py) egg_info for package pybluez
2021-11-15T13:17:26,535     Created temporary directory: /tmp/pip-pip-egg-info-rbh2qxuz
2021-11-15T13:17:26,536     Running command python setup.py egg_info
2021-11-15T13:17:26,987     running egg_info
2021-11-15T13:17:26,988     creating /tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info
2021-11-15T13:17:26,988     writing /tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info/PKG-INFO
2021-11-15T13:17:26,988     writing dependency_links to /tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info/dependency_links.txt
2021-11-15T13:17:26,988     writing eager_resources to /tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info/eager_resources.txt
2021-11-15T13:17:26,988     writing requirements to /tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info/requires.txt
2021-11-15T13:17:26,988     writing top-level names to /tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info/top_level.txt
2021-11-15T13:17:26,988     writing manifest file '/tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info/SOURCES.txt'
2021-11-15T13:17:27,019     reading manifest file '/tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info/SOURCES.txt'
2021-11-15T13:17:27,019     reading manifest template 'MANIFEST.in'
2021-11-15T13:17:27,019     warning: no files found matching 'README'
2021-11-15T13:17:27,022     warning: no files found matching '*.c' under directory 'macos'
2021-11-15T13:17:27,023     warning: no previously-included files matching '*.pyc' found under directory '*'
2021-11-15T13:17:27,023     warning: no previously-included files matching '*.o' found under directory '*'
2021-11-15T13:17:27,023     warning: no previously-included files matching '*.opp' found under directory '*'
2021-11-15T13:17:27,023     adding license file 'COPYING'
2021-11-15T13:17:27,024     writing manifest file '/tmp/pip-pip-egg-info-rbh2qxuz/PyBluez.egg-info/SOURCES.txt'
2021-11-15T13:17:27,059   Source in /tmp/pip-install-mnjkc5oq/pybluez_91f441a6b0fd454cb56f76567af50a64 has version 0.23, which satisfies requirement pybluez from https://files.pythonhosted.org/packages/08/9f/e9d93b266d2d1ea988780a52a696073ba0a65df65a532165fdf6ff90d0ed/PyBluez-0.23.tar.gz#sha256=c8f04d2e78951eaa9de486b4d49381704e8943d0a6e6e58f55fcd7b8582e90de
2021-11-15T13:17:27,059   Removed pybluez from https://files.pythonhosted.org/packages/08/9f/e9d93b266d2d1ea988780a52a696073ba0a65df65a532165fdf6ff90d0ed/PyBluez-0.23.tar.gz#sha256=c8f04d2e78951eaa9de486b4d49381704e8943d0a6e6e58f55fcd7b8582e90de from build tracker '/tmp/pip-req-tracker-xt29vkoe'
2021-11-15T13:17:27,062 Created temporary directory: /tmp/pip-unpack-ucxbc82d
2021-11-15T13:17:27,063 Using legacy 'setup.py install' for pybluez, since package 'wheel' is not installed.
2021-11-15T13:17:27,479 Installing collected packages: pybluez
2021-11-15T13:17:27,480   Created temporary directory: /tmp/pip-record-9ovpgkid
2021-11-15T13:17:27,481     Running command /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mnjkc5oq/pybluez_91f441a6b0fd454cb56f76567af50a64/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mnjkc5oq/pybluez_91f441a6b0fd454cb56f76567af50a64/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9ovpgkid/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/netherquark/.local/include/python3.10/pybluez
2021-11-15T13:17:27,834     running install
2021-11-15T13:17:27,834     running build
2021-11-15T13:17:27,835     running build_py
2021-11-15T13:17:27,848     creating build
2021-11-15T13:17:27,848     creating build/lib.linux-x86_64-3.10
2021-11-15T13:17:27,848     creating build/lib.linux-x86_64-3.10/bluetooth
2021-11-15T13:17:27,848     copying bluetooth/btcommon.py -> build/lib.linux-x86_64-3.10/bluetooth
2021-11-15T13:17:27,848     copying bluetooth/ble.py -> build/lib.linux-x86_64-3.10/bluetooth
2021-11-15T13:17:27,848     copying bluetooth/macos.py -> build/lib.linux-x86_64-3.10/bluetooth
2021-11-15T13:17:27,848     copying bluetooth/bluez.py -> build/lib.linux-x86_64-3.10/bluetooth
2021-11-15T13:17:27,848     copying bluetooth/widcomm.py -> build/lib.linux-x86_64-3.10/bluetooth
2021-11-15T13:17:27,849     copying bluetooth/msbt.py -> build/lib.linux-x86_64-3.10/bluetooth
2021-11-15T13:17:27,849     copying bluetooth/__init__.py -> build/lib.linux-x86_64-3.10/bluetooth
2021-11-15T13:17:27,849     /usr/lib/python3.10/site-packages/setuptools/lib2to3_ex.py:36: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
2021-11-15T13:17:27,849       warnings.warn(
2021-11-15T13:17:27,849     Fixing build/lib.linux-x86_64-3.10/bluetooth/btcommon.py build/lib.linux-x86_64-3.10/bluetooth/ble.py build/lib.linux-x86_64-3.10/bluetooth/macos.py build/lib.linux-x86_64-3.10/bluetooth/bluez.py build/lib.linux-x86_64-3.10/bluetooth/widcomm.py build/lib.linux-x86_64-3.10/bluetooth/msbt.py build/lib.linux-x86_64-3.10/bluetooth/__init__.py
2021-11-15T13:17:27,857     Skipping optional fixer: buffer
2021-11-15T13:17:27,880     Skipping optional fixer: idioms
2021-11-15T13:17:27,939     Skipping optional fixer: set_literal
2021-11-15T13:17:27,971     Skipping optional fixer: ws_comma
2021-11-15T13:17:28,627     Fixing build/lib.linux-x86_64-3.10/bluetooth/btcommon.py build/lib.linux-x86_64-3.10/bluetooth/ble.py build/lib.linux-x86_64-3.10/bluetooth/macos.py build/lib.linux-x86_64-3.10/bluetooth/bluez.py build/lib.linux-x86_64-3.10/bluetooth/widcomm.py build/lib.linux-x86_64-3.10/bluetooth/msbt.py build/lib.linux-x86_64-3.10/bluetooth/__init__.py
2021-11-15T13:17:28,630     Skipping optional fixer: buffer
2021-11-15T13:17:28,644     Skipping optional fixer: idioms
2021-11-15T13:17:28,751     Skipping optional fixer: set_literal
2021-11-15T13:17:28,776     Skipping optional fixer: ws_comma
2021-11-15T13:17:28,819     running build_ext
2021-11-15T13:17:28,822     building 'bluetooth._bluetooth' extension
2021-11-15T13:17:28,823     creating build/temp.linux-x86_64-3.10
2021-11-15T13:17:28,823     creating build/temp.linux-x86_64-3.10/bluez
2021-11-15T13:17:28,823     gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./port3 -I/usr/include/python3.10 -c bluez/btmodule.c -o build/temp.linux-x86_64-3.10/bluez/btmodule.o
2021-11-15T13:17:28,884     In file included from bluez/btmodule.c:20:
2021-11-15T13:17:28,885     bluez/btmodule.h:4:10: fatal error: Python.h: No such file or directory
2021-11-15T13:17:28,885         4 | #include "Python.h"
2021-11-15T13:17:28,885           |          ^~~~~~~~~~
2021-11-15T13:17:28,885     compilation terminated.
2021-11-15T13:17:28,888     error: command '/usr/bin/gcc' failed with exit code 1
2021-11-15T13:17:28,932 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mnjkc5oq/pybluez_91f441a6b0fd454cb56f76567af50a64/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mnjkc5oq/pybluez_91f441a6b0fd454cb56f76567af50a64/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9ovpgkid/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/netherquark/.local/include/python3.10/pybluez Check the logs for full command output.
2021-11-15T13:17:28,933 Exception information:
2021-11-15T13:17:28,933 Traceback (most recent call last):
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 783, in install
2021-11-15T13:17:28,933     success = install_legacy(
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/operations/install/legacy.py", line 121, in install
2021-11-15T13:17:28,933     raise LegacyInstallFailure
2021-11-15T13:17:28,933 pip._internal.operations.install.legacy.LegacyInstallFailure
2021-11-15T13:17:28,933 
2021-11-15T13:17:28,933 During handling of the above exception, another exception occurred:
2021-11-15T13:17:28,933 
2021-11-15T13:17:28,933 Traceback (most recent call last):
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 173, in _main
2021-11-15T13:17:28,933     status = self.run(options, args)
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 203, in wrapper
2021-11-15T13:17:28,933     return func(self, options, args)
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 390, in run
2021-11-15T13:17:28,933     installed = install_given_reqs(
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/req/__init__.py", line 73, in install_given_reqs
2021-11-15T13:17:28,933     requirement.install(
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 801, in install
2021-11-15T13:17:28,933     six.reraise(*exc.parent)
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_vendor/six.py", line 719, in reraise
2021-11-15T13:17:28,933     raise value
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/operations/install/legacy.py", line 109, in install
2021-11-15T13:17:28,933     runner(
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/utils/subprocess.py", line 274, in runner
2021-11-15T13:17:28,933     call_subprocess(
2021-11-15T13:17:28,933   File "/usr/lib/python3.10/site-packages/pip/_internal/utils/subprocess.py", line 244, in call_subprocess
2021-11-15T13:17:28,933     raise InstallationSubprocessError(proc.returncode, command_desc)
2021-11-15T13:17:28,933 pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mnjkc5oq/pybluez_91f441a6b0fd454cb56f76567af50a64/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mnjkc5oq/pybluez_91f441a6b0fd454cb56f76567af50a64/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9ovpgkid/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/netherquark/.local/include/python3.10/pybluez Check the logs for full command output.
2021-11-15T13:17:28,947 Removed build tracker: '/tmp/pip-req-tracker-xt29vkoe'

Do not depend on external resource for version checking

process = subprocess.Popen(["wget", "-q", "-O", "Update.ini", "https://ecloud.zapto.org/index.php/s/AKeEkGxC2nww2KX/download"], shell=False, stdout=subprocess.PIPE)

If you think people are happy to see scripts downloading external resources (be it just a small text file) from unknown resources, then think again. One approach would be

  • drop dependency on wget (replace it with python requests)
  • be more transparent (use github).

Checkout out this example:

import requests
..
..
r = requests.get('https://github.com/LethalEthan/Bluetooth-Unlock/releases/latest')
latest_version = r.url.split('/')[-1]  # BU-V1RC6

Should I add windows and mac OS support?

I would like to make Bluetooth-Unlock more Universal and add support for windows and mac os. I don't know how I'm going to do it but I'll find a way. I've looked for a program for all platforms but I didn't seem to find many, I'll also add support with the GUI I'm currently working on (but still having some issues) so it will be user-friendly and hopefully work on all platforms, the non-GUI mode will also be available. Submit your thought in the comments

logo design contribution

want to make a logo for this projects if you have any requirements then let me know.its free for open source projects.
Thank you

With Bluetooth OFF i am getting an error.

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.

python3 Bluetooth-Unlock.py commit errors !

Describe the bug
Python 3 has been detected you may continue

Traceback (most recent call last):
File "Bluetooth-Unlock.py", line 33, in
config.read("config.ini")
File "/usr/lib/python3.5/configparser.py", line 696, in read
self._read(fp, filename)
File "/usr/lib/python3.5/configparser.py", line 1063, in _read
lineno)
configparser.DuplicateSectionError: While reading from 'config.ini' [line 3]: section 'VERSION' already exists

Install Script Does Not Run

Expected behavior
Install script runs without issue

Actual behavior
Running install script returns the following error:

bash: ./install.sh: bash: bad interpreter: No such file or directory

To reproduce

  1. Type ./install.sh
  2. Press enter

Desktop:

  • OS: Mint 19
  • Version: BU-V1RC8.1

Bluetooth-Unlock version 2: electric boogaloo

Bluetooth-Unlock will be made into a proper process and with a GUI. It may take a while since I'm busy with college but I'll get it done eventually, my main priority project right now is HoneyGO a Minecraft server written in golang. BU-V1 will only receive OS-Support updates and critical vulnerability fixes.

Not working on Manjaro Rolling (5.10.56-1-MANJARO)(GNOME 40.3.0)

Describe the bug
I'm fairly noobish with Manjaro, its not even been a week since I installed it, and I'm a novice coder too. So I don't really know what went wrong exactly. I do however, have logs.

To Reproduce
Just run install.sh on Manjaro I guess?

Expected behaviour
It installs and works OOB

Logs

Cloning into 'Bluetooth-Unlock'...
remote: Enumerating objects: 798, done.
remote: Counting objects: 100% (65/65), done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 798 (delta 31), reused 10 (delta 8), pack-reused 733
Receiving objects: 100% (798/798), 311.90 KiB | 877.00 KiB/s, done.
Resolving deltas: 100% (412/412), done.
 ๏Œ’ ๎‚ฐ ๏€• ~ ๎‚ฐ cd Bluetooth-Unlock                                             ๎‚ฒ โœ” 
 ๏Œ’ ๎‚ฐ ๏ผ ~/Bluetooth-Unlock ๎‚ฐ ๏„“ ๏„ฆ BU-V1-Stable ๎‚ฐ sudo pacman -S python3 python3-pip bluetooth libbluetooth-dev tar
warning: python-3.9.6-1 is up to date -- reinstalling
error: target not found: python3-pip
error: target not found: bluetooth
error: target not found: libbluetooth-dev
warning: tar-1.34-1 is up to date -- reinstalling
 ๏Œ’ ๎‚ฐ ๏ผ ~/Bluetooth-Unlock ๎‚ฐ ๏„“ ๏„ฆ BU-V1-Stable ๎‚ฐ yay -S python3 python3-pip bluetooth libbluetooth-dev tar   
warning: python-3.9.6-1 is up to date -- reinstalling
warning: tar-1.34-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) python-3.9.6-1  tar-1.34-1

Total Download Size:    0.80 MiB
Total Installed Size:  55.47 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 python-3.9.6-1-x86_64 is up to date
 tar-1.34-1-x86_64     817.2 KiB  1625 KiB/s 00:01 [######################] 100%
 Total (2/2)           817.2 KiB   879 KiB/s 00:01 [######################] 100%
(2/2) checking keys in keyring                     [######################] 100%
(2/2) checking package integrity                   [######################] 100%
(2/2) loading package files                        [######################] 100%
(2/2) checking for file conflicts                  [######################] 100%
(2/2) checking available disk space                [######################] 100%
:: Processing package changes...
(1/2) reinstalling python                          [######################] 100%
(2/2) reinstalling tar                             [######################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the info directory file...
 -> Could not find all required packages:
	python3-pip (Target)
	bluetooth (Target)
	libbluetooth-dev (Target)
 ๏Œ’ ๎‚ฐ ๏ผ ~/Bluetooth-Unlock ๎‚ฐ ๏„“ ๏„ฆ BU-V1-Stable ๎‚ฐ pip install pybluez     ๎‚ฒ โœ” ๎‚ณ ๏€“ 
Defaulting to user installation because normal site-packages is not writeable
Collecting pybluez
  Downloading PyBluez-0.23.tar.gz (97 kB)
     |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 97 kB 5.4 MB/s 
Using legacy 'setup.py install' for pybluez, since package 'wheel' is not installed.
Installing collected packages: pybluez
    Running setup.py install for pybluez ... done
Successfully installed pybluez-0.23
 ๏Œ’ ๎‚ฐ ๏ผ ~/Bluetooth-Unlock ๎‚ฐ ๏„“ ๏„ฆ BU-V1-Stable ๎‚ฐ sudo ./install.sh
=============================================
Bluetooth Unlock Tool For Linux Distributions
            Setup Version V.8.1              
=============================================

 Setup will start in: 4
Distribution: ManjaroLinux
Unsupported system please install dependencies yourself, sorry for the inconvenience
Dependencies: python3 python3-pip bluetooth libbluetooth-dev tar
PIP Dependencies: pybluez
If you feel this OS should be supported please create a feature request in the issue section
Install has worked!
Failed to set capabilities on file `/usr/bin/l2ping' (No such file or directory)
usage: setcap [-h] [-q] [-v] [-n <rootid>] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]

 Note <filename> must be a regular (non-symlink) file.
 -r          remove capability from file
 -           read capability text from stdin
 <capsN>     cap_from_text(3) formatted file capability

 -h          this message and exit status 0
 -q          quietly
 -v          validate supplied capability matches file
 -n <rootid> write a user namespace limited capability
 --license   display the license info
 ๏Œ’ ๎‚ฐ ๏ผ ~/Bluetooth-Unlock ๎‚ฐ ๏„“ ๏„ฆ BU-V1-Stable ๎‚ฐ python3 Bluetooth-Unlock.py
Python 3 has been detected you may continue

Would you like to check for an update? [Y/N] Y
Downloading Update.ini from GitHub...
Done!

(03/11/2020 18:50):- Bluetooth-Unlock V1 Now has a full release 


Would you like to see the available desktop environments? [Y/N] Y
GNOME has not been found
MATE has not been found
XSCREENSAVER has not been found

Please Enter your Desktop Environment can be:
"LOGINCTL" (Recommended) (Don't use sudo)
"KDE" (Doesn"t work on older versions)
"GNOME"
"XSCREENSAVER"
"MATE"
"CINNAMON"
GNOME
GNOME has been selected


Bluetooth-Unlock is a free open-source project and always will be
I would like you to consider donating to allow me to do other projects
The donation links are on the website: https://lethalethan.github.io/Bluetooth-Unlock/
Thanks :)

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

Thank you for using Bluetooth-Unlock 9.1 netherquark 

Searching for nearby devices...

[] 

Enter Bluetooth Address of the device (e.g AA:BB:CC:DD:EE:FF): DB:52:98:45:0C:93

Thank you to these contributors: jose1711, maaudrana, blackPanther OS, jellykells, chfanghr
Thanks to all of them :)

Bluetooth-Unlock is now active!
Traceback (most recent call last):
  File "/home/netherquark/Bluetooth-Unlock/Bluetooth-Unlock.py", line 364, in <module>
    main_bu_code()
  File "/home/netherquark/Bluetooth-Unlock/Bluetooth-Unlock.py", line 301, in main_bu_code
    check = subprocess.Popen(["l2ping", DEVADDR, "-t", "1", "-c", "1"], shell=False, stdout=subprocess.PIPE)
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'l2ping'

Desktop (please complete the following information):

  • OS: Manjaro Rolling (5.10.56-1-MANJARO)(GNOME 40.3.0)
  • Version BU-V1 Stable commit@056c785 (ie latest)

Additional context
Probably somewhat irrelevant, but my bluetooth dongle is a TP-Link UB400(BT4), and the device I wanted to connect was my Mi Band 4 (DB:52:98:45:0C:93). The dongle works perfectly with everything else OOB on both Ubuntu and Manjaro. It even supported Xiaomi Blaze Unlock on Windows 10.

Do not offer a choice to compile python3 manually

Why would anyone want to use a self-compiled python3 binaries instead of a (often digitally signed) package from an official repository? By doing sudo make install you're only calling for problems (future conflicts with package manager). Ok, asking if a user wants to install python3 is a good idea but why not to simply run apt install python3?

did not find my phone

Describe the bug
my phone was on and connected yet when the software scanned it found two other devices and not my phone. I manually added my phone MAC address and all is working fine! Just would have been nice had the software found it

To Reproduce
I suspect you would need my phone and my laptop

Expected behaviour
see above

Screenshots

Desktop (please complete the following information):
Ubunto 20.4 GNOME

Additional context

Python3 detection

It is absolutely legit to run python script by calling it directly like this:

chmod +x Bluetooth-Unlock.py 
./Bluetooth-Unlock.py 

On system with both Python2 and Python3 installed but Python2 being the default (e. g. Debian) you'll get the following:
Python 2 has been detected please run in Python3!

I think calling python3 in hashbang line would be a better solution.

User should not be presented with options containing missing requisites

I don't think it is a good idea to present all options no matter if - say - gnome-screensaver-command is available or not. Script should first detect what commands are available and then let the user choose. Also there's a lot of duplicated code in "calling screensaver" section towards the end of the script - it would be nice to clean it up a bit.

Completed install with the following error

Ubuntu: 22.04.1, MacBook Pro 2011 17", Python 3.10.6;

In bash when running install.sh it generates an error. When trying to install PyBluez it cannot do that either.

`0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Collecting pybluez
Downloading PyBluez-0.23.tar.gz (97 kB)
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” 97.6/97.6 KB 2.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

ร— python setup.py egg_info did not run successfully.
โ”‚ exit code: 1
โ•ฐโ”€> [1 lines of output]
error in PyBluez setup command: use_2to3 is invalid.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

ร— Encountered error while generating package metadata.
โ•ฐโ”€> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Install complete! please run Bluetooth-Unlock.py
`

Also running python program does not work:

python3 Bluetooth-Unlock.py
Cannot import the bluetooth modules!
Please run install.sh!
Please make sure you are using python3!

Dependency error

What are the dependencies?

python
Python 2.7.15 (default, May  1 2018, 05:55:50) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information


python3
Python 3.6.6rc1 (default, Jun 13 2018, 06:59:48) 
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

uname -r
4.16.0-1-amd64

 cat /etc/debian_version 
buster/sid

sudo install.sh

=============================================
Bluetooth Unlock Tool For Linux Distributions
            Setup Version V.7.0              
=============================================

Distribution: Debian: 1
Unsupported system please install dependencies yourself, sorry for the inconvenience

Saving options to config file

please add a possibility to save chosen options into config file. it's not really user friendly to have user enter the same data over and over.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.