Error after upgrade to v5


i think there is lot modules changed in v5… i got this :
Server Error: Please check your server logs or contact tech support. Traceback (innermost last):
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 50, in application
response = frappe.handler.handle()
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 62, in handle
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 85, in execute_cmd
ret =, **frappe.form_dict)
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 732, in call
return fn(*args, **newargs)
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/”, line 60, in getdoctype
docs = get_meta_bundle(doctype)
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/”, line 70, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/”, line 21, in get_meta
meta = FormMeta(doctype)
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/”, line 31, in init
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/”, line 41, in load_assets
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/”, line 169, in load_templates
module = load_doctype_module(
File “/home/sigma/frappe-bench/apps/frappe/frappe/modules/”, line 62, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix))
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 520, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/”, line 37, in import_module
File “/home/sigma/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_entry/”, line 11, in
from erpnext.stock.utils import get_incoming_rate
File “/home/sigma/frappe-bench/apps/erpnext/erpnext/stock/”, line 9, in
from frappe.utils.email_lib import sendmail
ImportError: No module named email_lib

when i want to open the stock entry list

Use from frappe import sendmail

Sorry I thought it is in a custom code. Will fix it, please raise the issue
in github.

Hi actually i got some problem too on import frappe.widgets.reportview … please fix it as well

We have already fixed both issues. Please update and check.