Error in guided mode

In guided mode I’m trying to move to a specific lat lon using the following pymavlink command

master.mav.set_position_target_global_int_send(
0, # time_boot_ms (not used)
master.target_system,
master.target_component,
mavutil.mavlink.SET_POSITION_TARGET_GLOBAL_INT,
3, # coordinate frame - mav_frame global
3580, # type mask - use position
30391986, # latitiude *1e7
-97901289, # longitude *1e7
0, # altitude in m above sea level, home or terrain
0, # x vel in m/s positive is north
0, # y vel
0, # z vel
0, # accel x
0, # accel y
0, # accel z
0, # yaw in rad - 0 is forward
0) # yaw rate rad/s

The error I’m getting is as follows:

AttributeError: module ‘pymavlink.dialects.v20.ardupilotmega’ has no attribute ‘SET_POSITION_TARGET_GLOBAL_INT’

Any help fixing the error is much appreciated!

Which ardupilot version? which pymavlink version?

pymavlink 2.4.41
ardupilot copter 4.4