Error while viewing the published Blog post

Hi everyone,

I’m getting error while viewing a published blog

I’m using:
ERPNext: v14.62.3

Frappe Framework: v14.65.0

Frappe HR: v16.0.0-dev (develop)

Payments: v0.0.1 (develop)

Traceback (most recent call last):
  File "apps/frappe/frappe/modules/", line 241, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(module_name)
  File "apps/frappe/frappe/", line 1329, in get_module
    return importlib.import_module(modulename)
  File "/usr/local/lib/python3.10/importlib/", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "apps/webshop/webshop/webshop/doctype/website_item/", line 17, in <module>
    from webshop.webshop.doctype.item_review.item_review import get_item_reviews
  File "apps/webshop/webshop/webshop/doctype/item_review/", line 13, in <module>
    from webshop.webshop.doctype.webshop_settings.webshop_settings import (
  File "apps/webshop/webshop/webshop/doctype/webshop_settings/", line 10, in <module>
    from webshop.webshop.redisearch_utils import (
  File "apps/webshop/webshop/webshop/", line 10, in <module>
    from import TagField, TextField
ModuleNotFoundError: No module named 'redis.commands'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "apps/frappe/frappe/website/", line 17, in get_response
    endpoint, renderer_instance = path_resolver.resolve()
  File "apps/frappe/frappe/website/", line 59, in resolve
    if renderer_instance.can_render():
  File "apps/frappe/frappe/website/page_renderers/", line 16, in can_render
    if self.search_in_doctypes_with_web_view():
  File "apps/frappe/frappe/website/page_renderers/", line 28, in search_in_doctypes_with_web_view
    condition_field = self.get_condition_field(meta)
  File "apps/frappe/frappe/website/page_renderers/", line 96, in get_condition_field
    controller = get_controller(
  File "apps/frappe/frappe/model/", line 93, in get_controller
    site_controllers[doctype] = _get_controller()
  File "apps/frappe/frappe/model/", line 75, in _get_controller
    module = load_doctype_module(doctype, module_name)
  File "apps/frappe/frappe/modules/", line 245, in load_doctype_module
    raise ImportError(msg) from e
ImportError: Module import failed for Website Item, the DocType you're trying to open might be deleted.<br> Error: No module named 'redis.commands'

Hi @harshvadhiya,

Please uninstall the webshop from the site.
If uninstalled the please migrate the site and then check it.

Second thing, If you are using Frappe ERPNext version 14 then HRMS and Payment apps must have in version 14.

bench switch-to-branch version-14 hrms
bench switch-to-branch version-14 payments

bench update --patch
     // OR
bench --site sitename migrate

Thank You!

1 Like

It worked. Thank You.