Unable to login in version 10.1.35

Hi,
I’m trying to login to ERPNext since the latest update and I’m facing the following error.

Session Start Failed
cannot import name has_approval_access

I’m using
erpnext 10.1.35
frappe 10.1.34

Any ideas how to troubleshoot?

Did you do a bench migrate ?

There have been changes in the workflow and a patch has been written for it. Make sure the patch is run successfully.

Yes indeed I did do a bench migrate which failed initially but then I fixed the script to pass this issue and migration completed successfully. I’ve reported that issue in https://github.com/frappe/erpnext/issues/14272

For this problem, I removed temporarily has_approval_access from line 10 in

frappe-bench/apps/frappe/frappe/workflow/doctype/workflow_action/workflow_action.py

and I was able to log in.

Afterwards I retyped the line in case there was a typo I couldn’t see visually and made it look like so

from frappe.model.workflow import apply_workflow, get_workflow_name, get_workflow_state_field, has_approval_access

Since then no issues and I’m able to log out and log in again. I’m still troubled as to what that problem was but I can work with ERPNext again now at least.