Hi. I've been trying to run the Sense HAT marble run code for the Rasberry Pi https://www.raspberrypi.org/learning/sense-hat-marble-maze/
And I get this error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 734, in get_orientation
return self.get_orientation_degrees()
File "/usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 727, in get_orientation_degrees
orientation = self.get_orientation_radians()
File "/usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 706, in get_orientation_radians
raw = self._get_raw_data('fusionPoseValid', 'fusionPose')
File "/usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 688, in _get_raw_data
if self._read_imu():
File "/usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 669, in _read_imu
self._init_imu() # Ensure imu is initialised
File "/usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 633, in _init_imu
raise OSError('IMU Init Failed, please run as root / use sudo')
OSError: IMU Init Failed, please run as root / use sudo
Can someone help me debug?