>>> %Run we_bot_pi_demo.py
Initialize WeBot Class
Traceback (most recent call last):
File "/home/pi/We-Bot-main/we_bot_pi_demo.py", line 37, in <module>
webot_pi = WeBot()
File "/home/pi/We-Bot-main/webot/webot.py", line 41, in __init__
self.i2c = smbus2.SMBus(1)
File "/usr/local/lib/python3.7/dist-packages/smbus2-0.4.1-py3.7.egg/smbus2/smbus2.py", line 280, in __init__
self.open(bus)
File "/usr/local/lib/python3.7/dist-packages/smbus2-0.4.1-py3.7.egg/smbus2/smbus2.py", line 310, in open
self.fd = os.open(filepath, os.O_RDWR)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-1'
>>>
Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio
Traceback (most recent call last):
File "/home/pi/We-Bot-main/we_bot_pi_demo.py", line 37, in <module>
webot_pi = WeBot()
File "/home/pi/We-Bot-main/webot/webot.py", line 55, in __init__
raise IOError("Can't connect to pigpio")
OSError: Can't connect to pigpio