Open CaptainMorgan12 opened 2 years ago
I had similar issues on Debian. I was able to work around these by installing python3-bluez
using apt
. IMHO, this is preferable since relying on PIP is less reliable. You can find my changes in the only PR if you need more details.
@MaxG87 that resolved the issue i installed:
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.
× 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!