Problem when installing erpnext on linux please help

File “/usr/lib/python3.5/runpy.py”, line 184, in _run_module_as_main
17:30:46 web.1 | “main”, mod_spec)
17:30:46 web.1 | File “/usr/lib/python3.5/runpy.py”, line 85, in _run_code
17:30:46 web.1 | exec(code, run_globals)
17:30:46 web.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
17:30:46 web.1 | main()
17:30:46 web.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
17:30:46 web.1 | click.Group(commands=commands)(prog_name=‘bench’)
17:30:46 web.1 | File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 764, in call
17:30:46 web.1 | return self.main(*args, **kwargs)
17:30:46 web.1 | File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 717, in main
17:30:46 web.1 | rv = self.invoke(ctx)
17:30:46 web.1 | File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
17:30:46 web.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
17:30:46 web.1 | File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
17:30:46 web.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
17:30:46 web.1 | File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 956, in invoke
17:30:46 web.1 | return ctx.invoke(self.callback, **ctx.params)
17:30:46 web.1 | File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 555, in invoke
17:30:46 web.1 | return callback(*args, **kwargs)
17:30:46 web.1 | File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/decorators.py”, line 17, in new_func
17:30:46 web.1 | return f(get_current_context(), *args, **kwargs)
17:30:46 web.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 25, in _func
17:30:46 web.1 | ret = f(frappe._dict(ctx.obj), *args, **kwargs)
17:30:46 web.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 547, in serve
17:30:46 web.1 | import frappe.app
17:30:46 web.1 | File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 13, in
17:30:46 web.1 | from werkzeug.contrib.profiler import ProfilerMiddleware
17:30:46 web.1 | ImportError: No module named ‘werkzeug.contrib’

1 Like

Hi @Gagandeep_Singh. You need to downgrade the werkzeug.

This are the steps:

cd frappe-bench/env/bin
source activate
pip install --force-reinstall werkzeug==0.16.0
deactivate

After going this steps try to install erpnext again

1 Like

you could use version-12-hotfix as the branch instead where this issue is fixed and switch branches to version-12 after the next release of Frappe.

1 Like

You should downgrade Werkzeug to the version 0.16.4.

1 Like
cd ${HOME/}frappe-bench
./env/bin/pip install werkzeug==0.16.0
1 Like