Error : ModuleNotFoundError: No module named 'hospitality.hospitality.hospitality'

App Versions

	"erpnext": "14.3.0",
	"frappe": "14.11.1",
	"hospitality": "0.0.1",
	"hrms": "1.0.0",
	"payments": "0.0.1"


Form/Domain Settings/Domain Settings


Traceback (most recent call last):
  File "apps/frappe/frappe/", line 69, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/", line 83, in execute_cmd
    return, **frappe.form_dict)
  File "apps/frappe/frappe/", line 1585, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/", line 23, in savedocs
  File "apps/frappe/frappe/model/", line 303, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/", line 354, in _save
  File "apps/frappe/frappe/model/", line 1089, in run_post_save_methods
  File "apps/frappe/frappe/model/", line 930, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/", line 1270, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/", line 1252, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/", line 927, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/core/doctype/domain_settings/", line 26, in on_update
  File "apps/frappe/frappe/core/doctype/domain/", line 16, in setup_domain
  File "apps/frappe/frappe/core/doctype/domain/", line 80, in setup_data = frappe.get_domain_data(
  File "apps/frappe/frappe/", line 850, in get_domain_data
    return _dict(get_attr(get_hooks("domains")[module][0] + ".data"))
  File "apps/frappe/frappe/", line 1575, in get_attr
    return getattr(get_module(modulename), methodname)
  File "apps/frappe/frappe/", line 1323, in get_module
    return importlib.import_module(modulename)
  File "/usr/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 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'hospitality.hospitality.hospitality'

Request Data

	"type": "POST",
	"args": {
		"doc": "{\"name\":\"Domain Settings\",\"owner\":\"Administrator\",\"modified\":\"2022-10-03 18:17:40.216751\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":\"0\",\"doctype\":\"Domain Settings\",\"active_domains\":[{\"docstatus\":0,\"doctype\":\"Has Domain\",\"name\":\"new-has-domain-1\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"Administrator\",\"parent\":\"Domain Settings\",\"parentfield\":\"active_domains\",\"parenttype\":\"Domain Settings\",\"idx\":1,\"domain\":\"Hospitality\"}],\"__last_sync_on\":\"2022-10-15T07:42:25.954Z\",\"__unsaved\":1}",
		"action": "Save"
	"btn": {
		"jQuery360042883206558463071": {
			"events": {
				"click": [
						"type": "click",
						"origType": "click",
						"guid": 464,
						"namespace": ""
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/"

Response Data

	"exception": "ModuleNotFoundError: No module named 'hospitality.hospitality.hospitality'"

why I’m getting this error.
Following details are of my system:

ERPNext: v14.3.0 (version-14)

Frappe Framework: v14.11.1 (version-14)

Hospitality: v0.0.1 (develop)

Frappe HR: v1.0.0 (develop)

Is this new? I faced the same problem but with me not being able to run any bench commands just now. I just created the app and uninstalled it. Funny fix.

bench install-app app_name
bench uninstall-app app_name

This fixed mine and hopefully yours.