No module named file_manager

I am trying to setup ERPnext and i am getting the following error:

have you changed branch of any of the apps

Did you use bench update? It should’ve stopped you from updating because of a missing dependency.

Do ./env/bin/pip install PIL

You will also need to install its dependencies. Google for them or search for the forum post on it.

Sent from my phone

On 05-Nov-2015, at 9:53 AM, Mohamed Al Marri wrote:

When trying to open the File Manager after update we get this message:

App Versions

"erpnext": "6.7.0",
"frappe": "6.7.0"


Error Report

Traceback (innermost last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 67, in application
response = frappe.handler.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 75, in handle
File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 109, in execute_cmd
ret =, _frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 777, in call
return fn(args, *_newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 63, in getdoctype
docs = get_meta_bundle(doctype)
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 73, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 20, in get_meta
meta = frappe.cache().hget("form_meta", doctype, lambda: FormMeta(doctype))
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/", line 123, in hget
value = generator()
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 20, in
meta = frappe.cache().hget("form_meta", doctype, lambda: FormMeta(doctype))
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 32, in init
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 42, in load_assets
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 146, in load_templates
module = load_doctype_module(
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/", line 64, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix))
File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 583, in get_module
return importlib.import_module(modulename)
File "/usr/lib/python2.7/importlib/", line 37, in import_module
File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/file/", line 19, in
from PIL import Image, ImageOps
ImportError: No module named PIL

Request Data

"type": "GET",
"args": {
"doctype": "File",
"with_parent": 1,
"cached_timestamp": null,
"cmd": "frappe.desk.form.load.getdoctype"
"freeze": true,
"url": "/"

Response JSON

Reply to this email directly or view it on GitHub.

thank you @bharat_Suthar i will have a look at that