Update failure (v11) Email Digest module failure

I get the following error when I do a bench update:

Updating DocTypes for erpnext : [============ ]

ImportError: Module import failed for Email Digest (erpnext.setup.doctype.email_digest.email_digest Error: cannot import name ‘get_link_to_report’)

My system is now in “Updating” mode and I can’t log in.

1 Like

I had the same error when updating one server but not another, did you find a solution to this issue?

Hi,

Sorry, I got no solution for you. I’m in “discovery” mode, working out what ERPNext can do for me, and how.

One thing that did seem to happen was that the installs of frappe and erpnext were on different branches. This caused some weird issues and it all got so out of shape I decided to start afresh with a new machine.

1 Like

Cheers @fishter, I’ve been in “discovery” mode on and off for several months…

You are right regarding the problem, on the working server:

bench version
erpnext 11.1.10
foundation 0.0.1
frappe 11.1.10

And on the server with the error above:

bench version
erpnext 12.x.x-develop
foundation 0.0.1
frappe 11.1.10

But I couldn’t switch to the master branch using the command:

bench switch-to-master
...
Branch master does not exist in Upstream for erpnext

So following this suggestion:

rm -rf apps/erpnext
bench get-app erpnext https://github.com/frappe/erpnext --branch master
bench update --patch
bench version
erpnext 11.1.10
foundation 0.0.1
frappe 11.1.10