ModuleNotFoundError: No module named 'bleach_whitelist'

Hey guys

i am getting this error on any bench command

File “/usr/lib/python3.8/runpy.py”, line 185, in _run_module_as_main
04:25:43 watch.1 | mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
04:25:43 watch.1 | File “/usr/lib/python3.8/runpy.py”, line 111, in _get_module_details
04:25:43 watch.1 | import(pkg_name)
04:25:43 watch.1 | File “/home/shidiki/frappe-bench/apps/frappe/frappe/init.py”, line 18, in
04:25:43 watch.1 | from .utils.jinja import (get_jenv, get_template, render_template, get_email_from_template, get_jloader)
04:25:43 watch.1 | File “/home/shidiki/frappe-bench/apps/frappe/frappe/utils/init.py”, line 9, in
04:25:43 watch.1 | from .html_utils import sanitize_html
04:25:43 watch.1 | File “/home/shidiki/frappe-bench/apps/frappe/frappe/utils/html_utils.py”, line 4, in
04:25:43 watch.1 | import bleach, bleach_whitelist.bleach_whitelist as bleach_whitelist
04:25:43 watch.1 | ModuleNotFoundError: No module named ‘bleach_whitelist’

Thanks
Eliyas

Hi @eliyaskhan18,

Please apply as a command.

./env/bin/pip3 install bleach_whitelist

Thank You!

Thanks for response

I have removed frappe-bench folder then reinstall everything and then it works