V14 update 'No module non profit'

Hi everyone,
I try to update v14 but i’m facing this error " Module Non Profit not found". Non profit module removed from erpnext why its shown Please tell me anyone how to handle this

Thanks
Jecintha

@Jecintha

bench get-app non_profit
bench install-app non_profit

Thanks for reply @bahaou,

Exported some json files like report and custom fields thats why this error shown so I resolved this one, again i 'm facing some error while update v14

File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v13_0/add_doctype_to_sla.py”, line 21, in execute
agreement.save()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 300, in save
return self._save(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 337, in _save
self._validate()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 550, in _validate
self.validate_set_only_once()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 604, in validate_set_only_once
frappe.throw(
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 523, in throw
msgprint(
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 491, in msgprint
_raise_exception()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 443, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.CannotChangeConstantError: Value cannot be changed for Apply On

Resolved…deleted already created Sla records

Thanks
Jecintha

I don’t think it is solved for good. Whan I try to rename an Account, I encounter the unrelated error regarding module:

App Versions

{
	"erpnext": "14.6.0",
	"frappe": "14.14.3",
	"hrms": "1.0.0",
	"payments": "0.0.1",
	"trbabs": "0.0.1",
	"trebelge": "0.0.1",
	"trihale": "0.0.1",
	"trsbuts": "0.0.1",
	"trtaxoffices": "0.0.1",
	"trtcmb": "1.0.0"
}

Route

Form/Account/260.01 - BİLGİSAYAR PROGRAMLARI - FRAMS

Trackeback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 69, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1585, in call
    return fn(*args, **newargs)
  File "apps/erpnext/erpnext/accounts/doctype/account/account.py", line 431, in update_account_number
    frappe.rename_doc("Account", name, new_name, force=1)
  File "apps/frappe/frappe/__init__.py", line 1309, in rename_doc
    return rename_doc(
  File "apps/frappe/frappe/model/rename_doc.py", line 211, in rename_doc
    frappe.clear_cache()
  File "apps/frappe/frappe/__init__.py", line 876, in clear_cache
    frappe.cache_manager.clear_user_cache()
  File "apps/frappe/frappe/cache_manager.py", line 89, in clear_user_cache
    clear_global_cache()
  File "apps/frappe/frappe/cache_manager.py", line 105, in clear_global_cache
    frappe.setup_module_map()
  File "apps/frappe/frappe/__init__.py", line 1516, in setup_module_map
    for module in get_module_list(app):
  File "apps/frappe/frappe/__init__.py", line 1374, in get_module_list
    return get_file_items(os.path.join(os.path.dirname(get_module(app_name).__file__), "modules.txt"))
  File "apps/frappe/frappe/__init__.py", line 1323, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python3.10/importlib/__init__.py", 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 'non_profit'

Request Data

{
	"type": "POST",
	"args": {
		"account_number": "260.01",
		"account_name": "XXXX",
		"name": "260.01 - XXXX"
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/erpnext.accounts.doctype.account.account.update_account_number"
}

Response Data

{
	"exception": "ModuleNotFoundError: No module named 'non_profit'"
}