Pixhawk Cube rasberry pi 4 communicated

I can’t communicate with rasberry cube

this is the error i get
"
ERROR:dronekit:Exception in message handler for HEARTBEAT
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/dronekit/init.py”, line 1531, in notify_message_listeners
fn(self, name, msg)
File “/usr/local/lib/python3.7/dist-packages/dronekit/init.py”, line 1223, in listener
raise APIException(“mode (%s, %s) not available on mavlink definition” % (m.custom_mode, m.base_mode))
dronekit.APIException: mode (0, 4) not available on mavlink definition"