Role permission manager error


When I try to access the Role permission manager, I get the following error:


Server Error: Please check your server logs or contact tech support.

Traceback (innermost last):
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 49, in application
response = frappe.handler.handle()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 66, in handle
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 77, in execute_cmd
method = get_attr(cmd)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 98, in get_attr
method = frappe.get_attr(cmd)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 519, in get_attr
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 379, in get_module
def has_permission(doctype, ptype=“read”, doc=None, user=None):
File “/usr/lib/python2.7/importlib/”, line 37, in import_module
File “/home/erpnext/frappe-bench/apps/frappe/frappe/core/page/permission_manager/”, line 10, in
from frappe.permissions import reset_perms
ImportError: cannot import name reset_perms

And I cannot access it after closing the window, I’m stuck on the page with a “Loading…” not really loading.

I am running on a VM with Erpnext 5.0.0 alpha

I don’t recall having changed anything in the roles permission…

Is there something wrong with my installation?
Thanks for your help

And also I cannot access the new doctype. Does it have something to do with my admin account?

Have you tried bench update?