Please It’s Urgent. When I was Updating ERPNEXT see the Error below.
sudo pip3 install bleach-allowlist
Same Error Again.
ubuntu@tecis_erpnext:/home/frappe/frappe-bench$ sudo bench update --reset
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 30, in <module>
from .utils.jinja import (get_jenv, get_template, render_template, get_email_from_template, get_jloader)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 27, in <module>
from frappe.utils.html_utils import sanitize_html
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 5, in <module>
from bleach_allowlist import bleach_allowlist
ModuleNotFoundError: No module named 'bleach_allowlist'
Backing up sites...
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 30, in <module>
from .utils.jinja import (get_jenv, get_template, render_template, get_email_from_template, get_jloader)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 27, in <module>
from frappe.utils.html_utils import sanitize_html
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/html_utils.py", line 5, in <module>
from bleach_allowlist import bleach_allowlist
ModuleNotFoundError: No module named 'bleach_allowlist'
ubuntu@tecis_erpnext:/home/frappe/frappe-bench$
Please check this topic:
Thank You!