When I try to run the code I have the following message:

Traceback (most recent call last):
File "<stdin>", line 59, in <module>
File "<stdin>", line 32, in MPU6866_init
File "<stdin>", line 28, in write_i2c
OSError: [Errno 5] EIO

Do you know what it could be?