Frappe Docker AttributeError: 'Cursor' object has no attribute '_last_executed'

I am getting the below error
AttributeError: ‘Cursor’ object has no attribute ‘_last_executed’. Did you mean: ‘_check_executed’?

While creating a new site.

The image is built using

below are the build environments we used

FRAPPE_REPO=GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

and below are the apps

“url”: “GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)”,
“branch”: “v14.12.0”
“url”: “GitHub - frappe/payments: A payments app for frappe”,
“branch”: “version-14”
“url”: “GitHub - frappe/hrms: Open Source HR and Payroll Software”,
“branch”: “version-14”
“url”: “GitHub - frappe/lms: Easy to Use, 100% Open Source Learning Management System”,
“branch”: “main”


The stack is setup using

Please could someone help to resolve the error

@gsarunk How you resolved this one?

@abrarpv97 it was a problem with the specific release of ERPNext. We upgraded ERPNext version to next stable version.