Error after upgrade to v5

Hi,

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/app.py”, line 50, in application
response = frappe.handler.handle()
File “/home/sigma/frappe-bench/apps/frappe/frappe/handler.py”, line 62, in handle
execute_cmd(cmd)
File “/home/sigma/frappe-bench/apps/frappe/frappe/handler.py”, line 85, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/sigma/frappe-bench/apps/frappe/frappe/init.py”, line 732, in call
return fn(*args, **newargs)
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 60, in getdoctype
docs = get_meta_bundle(doctype)
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 70, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 21, in get_meta
meta = FormMeta(doctype)
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 31, in init
self.load_assets()
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 41, in load_assets
self.load_templates()
File “/home/sigma/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 169, in load_templates
module = load_doctype_module(self.name)
File “/home/sigma/frappe-bench/apps/frappe/frappe/modules/init.py”, 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/init.py”, line 520, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/sigma/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_entry/stock_entry.py”, line 11, in
from erpnext.stock.utils import get_incoming_rate
File “/home/sigma/frappe-bench/apps/erpnext/erpnext/stock/utils.py”, 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.