Hello,
It seems that the compiling fails, as there will not be enough storage on the device. You were able to install the python package using the opkg because the opkg package for python3-light is smaller than ours. We only offer this package for TRB1xx, TRB5xx, and RUTX devices, which have much more Flash storage.
So I'm afraid the only way to have Python is to install it from opkg after the device is flashed.
Best regards,
DaumantasG