Error Evaluating gcode_macro BED_MESH_CALIBRATE
I am trying to set up KAMP (adaptive meshing) and I get the following error after the printer homes, "error evaluating 'gcode_macro BED_MESH_CALIBRATE:gcode': jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'polygon'" I have uploaded the "Adaptive_Mesh.cfg" and updated my printer.cfg file to include it. I also made sure that none of the other configuration files had BED_MESH_CALIBRATE macros defined. I am not really sure what this error means and could use some help resolving this.
Here is my start gcode if that helps:
[gcode_macro START_PRINT]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(0)|int %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(0)|int %}
;Put printing message on LCD screen
M117 Heating...
M140 S{BED_TEMP}
M104 S170
G28 X Y; Home X Y
M190 S{BED_TEMP} ; wait for bed temp
G28 Z ; Home Z
; Auto Leveling
BED_MESH_CALIBRATE; Run bed mesh calibration
M104 S{EXTRUDER_TEMP} ; set extruder temp
G1 X0 Y0 Z10 F5000.0 ; move to start-line position
M109 S{EXTRUDER_TEMP} ; wait for extruder temp
M117 Priming
; Start of print
G21; metric values
G90 ; absolute positioning
M82; set extruder to absolute mode
; now print a line of filament to prepare extrusion
G92 E0 ; reset extruder
G1 X20 Y10 Z0.3 F5000.0 ; move to start-line position
G92 E0 ; reset extruder
G1 X200 Y10 Z0.3 F1500.0 E15 ; draw 1st line
G1 X200 Y10.4 Z0.3 F5000.0 ; move to side a little
G1 X20 Y10.4 Z0.3 F1500.0 E30 ; draw 2nd line
;G1 E34 ; Retract extruder
G92 E0 ; reset extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X10 Y10 Z0.3 F5000.0 ; Move over to prevent blob squish
;Tuning params
;Put printing message on LCD screen
M117 Printing...
; Start of actual GCode for the print