Empathybot script not working

Below is the error I get when I run my empathybot python script. I have tried updating my firmware but no luck.

Distance Sensor init: [Errno 121] I2C transfer: Remote I/O error
Traceback (most recent call last):
  File "empathybot2.py", line 38, in <module>
    my_distance_sensor=gpg.init_distance_sensor()		# Distance Sensor goes on A1
  File "build/bdist.linux-armv7l/egg/easygopigo3.py", line 881, in init_distance_sensor
  File "build/bdist.linux-armv7l/egg/di_sensors/easy_distance_sensor.py", line 37, in __init__
  File "build/bdist.linux-armv7l/egg/di_sensors/distance_sensor.py", line 28, in __init__
  File "build/bdist.linux-armv7l/egg/di_sensors/VL53L0X.py", line 126, in __init__
  File "build/bdist.linux-armv7l/egg/di_sensors/dexter_i2c.py", line 177, in write_reg_8
  File "build/bdist.linux-armv7l/egg/di_sensors/dexter_i2c.py", line 145, in transfer
  File "/usr/local/lib/python2.7/dist-packages/periphery/i2c.py", line 133, in transfer
    raise I2CError(e.errno, "I2C transfer: " + e.strerror)
periphery.i2c.I2CError: [Errno 121] I2C transfer: Remote I/O error
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
TypeError: 'NoneType' object is not callable

The script seems to work now. I really do not know how. I had rebooted plenty of times earlier but now it seems to work after rebooting.

1 Like