Completed install with the following error
Opened this issue · 2 comments
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!
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:
- sudo apt install python3-bluez
- sudo apt install bluetooth
- sudo apt install libbluetooth-dev