Error with each "bench" command

Hello Everyone,

I’m facing a problem while running bench command on my system, every time i got this error whatever command i run such as “bench update - bench migrate - bench restart … etc”

erpnext@erpnext-vm-2:/opt/bench/erpnext$ bench restart
WARN: bench is installed in editable mode!

This is not the recommended mode of installation for production. Instead, install the package from PyPI with: pip install frappe-bench

Traceback (most recent call last):
File “/usr/lib/python3.8/”, line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/usr/lib/python3.8/”, line 111, in _get_module_details
File “/opt/bench/erpnext/apps/frappe/frappe/”, line 25, in
from frappe.query_builder import (
File “/opt/bench/erpnext/apps/frappe/frappe/query_builder/”, line 6, in
from frappe.query_builder.terms import ParameterizedFunction, ParameterizedValueWrapper
File “/opt/bench/erpnext/apps/frappe/frappe/query_builder/”, line 8, in
from import format_timedelta
File “/opt/bench/erpnext/apps/frappe/frappe/utils/”, line 19, in
from traceback_with_variables import iter_exc_lines
ModuleNotFoundError: No module named ‘traceback_with_variables’

1 Like