Closed woody4165 closed 4 years ago
Not so strange! This is because you installed bluepy with pip. This installs it for Python version 2. When you run it with 'python' that also is version 2, so it runs. What you need to do is use
$ sudo apt-get install python3-pip libglib2.0-dev
$ sudo pip3 install bluepy
and then it will work with python3. You should avoid using python version 2 as it has now been made end of life. Let me know if this works.
Thanks @AnthonyKNorman
I haven't thought about pip3!
Now it's working fine.
Hi
I've just installed a pi zero wh with latest raspbian lite and copied the three
.py
files from here, changed the MQTT ip address and trying to execute theble_scan_example.py
What should I check to solve this error?
I've also installed bluepy wirh
sudo pip install bluepy
and rebooted but still same error
Thanks
PS: if I call with
sudo python ble_scan_example.py
it works.
Strange!