Hello,
I don’t know how python works.
I install library like that:
git clone https://github.com/sixfab/Sixfab_RPi_CellularIoT_Library.git
cd Sixfab_RPi_CellularIoT_Library
sudo python3 setup.py install
and
sudo pip3 install sixfab-cellulariot
I created a python file for relay:
from cellulariot import cellulariot
import time
node = cellulariot.CellularIoTApp()
node.setupGPIO()
node.disable()
time.sleep(1)
node.enable()
time.sleep(0.5)
node.turnOnRelay()
time.sleep(2)
But when I tried:
python3 relay.py
I have this error:
Traceback (most recent call last):
File "relay.py", line 1, in <module>
from cellulariot import cellulariot
File "/usr/local/lib/python3.7/dist-packages/sixfab_cellulariot-1.2.0-py3.7.egg/cellulariot/cellulariot.py", line 11, in <module>
ModuleNotFoundError: No module named 'RPi'
Where is my error?
Thanks