Hangups with 'require' and mavlink_msgs

Hi all! Hope you all are doing well. Having a little bit of trouble configuring an mRo PIxracer Pro with some of the example scripting utilities provided in the ArduPlane documentation.

I’m running the latest 4.4.4, with scripts enabled, and am trying to import ‘mavlink_msgs’ as is demonstrated in the example plane_aerobatics.lua.

I’ve written a very simple handler taken nearly entirely from this code, shown below

local function mavlink_receiver()
    local self = {}
    local mavlink_msgs = require("mavlink_msgs")

    local MESSAGE_ID = mavlink_msgs.get_msgid("DEBUG_VECT")
    gcs:send_named_float(MAV_SEVERITY.EMERGENCY, MESSAGE_ID)

    return self
end

But when the script is loaded, Mission Planner reports: Attempt to call a nil value (global ‘require’). A little bit lost in terms of where this may be coming from, given that things are pulled nearly 1-1 from the examples. Not sure if anyone has any particular insight into this, but would greatly appreciate any assistance that you all may have. Thanks!!