ImportError: cannot import name 'get_next_schedule_date'

Getting this error on bench console
frappe 13.x.x-develop as of today


In [1]: from frappe.automation.doctype.auto_repeat.auto_repeat i
   ...: mport get_next_schedule_date                            
----------------------------------------------------------------
ImportError                    Traceback (most recent call last)
~/frappe-bench/apps/frappe/frappe/commands/utils.py in <module>
----> 1 from frappe.automation.doctype.auto_repeat.auto_repeat import get_next_schedule_date

ImportError: cannot import name 'get_next_schedule_date'

Same thing, preventing me from opening some doctypes, specifically Sales Order

The issue is related to frappe automation:

ImportError                    Traceback (most recent call last)
~/frappe-bench/apps/frappe/frappe/commands/utils.py in <module>
----> 1 from frappe.automation.doctype.auto_repeat.auto_repeat import get_next_schedule_date

ImportError: cannot import name 'get_next_schedule_date'

Was resolved last month, so update your develop branch and it should work.

https://github.com/frappe/erpnext/commit/b184d43e757f2982aab9b900943c789920609f8c

1 Like