Cannot email after upgrade

I upgraded , and now have :
git branch -a

  • develop
    remotes/upstream/HEAD → upstream/develop
    remotes/upstream/develop
    remotes/upstream/gh-pages
    remotes/upstream/hot-fix-leave-application
    remotes/upstream/hotfix
    remotes/upstream/master
    remotes/upstream/revert-4832-patch-1
    remotes/upstream/revert-5028-paypal-cleanup
    remotes/upstream/v4.x.x
    remotes/upstream/v5.x.x

When I attempt to email or save email account (without changing anything) the following message:

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 20, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 247, in save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 640, in run_before_save_methods
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 601, in run_method
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 766, in composer
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 749, in runner
def compose(fn, *hooks):
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 595, in
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 61, in validate
self.check_smtp()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 99, in check_smtp
password = self.get_password(),
AttributeError: ‘EmailAccount’ object has no attribute ‘get_password’

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 854, in call
methodname = method_string.split(‘.’)[-1]
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 20, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 247, in save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 640, in run_before_save_methods
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 601, in run_method
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 766, in composer
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 749, in runner
def compose(fn, *hooks):
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 595, in
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 61, in validate
self.check_smtp()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 99, in check_smtp
password = self.get_password(),
AttributeError: ‘EmailAccount’ object has no attribute ‘get_password’

scheduling has been enabled.

Thanks

Issue resolved after a bench-update later in the day.

@smino
Are you on develop branch?
Its good to keep production server on master branch.

Hi,

The pre-installed Virtual Box Image shipps with develop branch. I tried to switch to master after importing some customers , and products and it wouldn’t work, so i switched back to develop.

At this point I am using erpnext in parallel with my existing accounting/book keeping system, to evaluate it. I don’t mind that there are glitches in the develop branch ( maybe a bit more unit testing before commits?) , as long as the developers don’t mind people posting problems as they occur.

2 Likes