Apr-09-2018, 11:30 PM
Hi
I am trying to do the first steps on python. I am using Linux Ubuntu and I am trying to capture BLE advertisements data.
I did:
pip install pygatt
sudo apt install python-pip
pip install "pygatt[GATTTOOL]"
pip install git+https://github.com/peplin/pygatt
$ python3 -V
Python 3.5.2
Then: test.py
import pygatt
adapter = pygatt.Adapter()
for device in adapter.discover():
print (device.mac)
When executing it:
$python3 test.py
I get:
Traceback (most recent call last):
File "test.py", line 1, in <module>
import pygatt
ImportError: No module named 'pygatt'
Thanks a lot
imo
I am trying to do the first steps on python. I am using Linux Ubuntu and I am trying to capture BLE advertisements data.
I did:
pip install pygatt
sudo apt install python-pip
pip install "pygatt[GATTTOOL]"
pip install git+https://github.com/peplin/pygatt
$ python3 -V
Python 3.5.2
Then: test.py
import pygatt
adapter = pygatt.Adapter()
for device in adapter.discover():
print (device.mac)
When executing it:
$python3 test.py
I get:
Traceback (most recent call last):
File "test.py", line 1, in <module>
import pygatt
ImportError: No module named 'pygatt'
Thanks a lot
imo