Can anyone in here help me?

i am studying about frappe, and i have created apps in frappe, but when i push to github and my teams clone that app, and in different host / laptop, when creating new document Packages in my app Module, there has an error
can anyone help me :wink:
this is link of the app Nyuuk - Tripwe Frappe Learn

App Versions

{
	"frappe": "16.0.0-dev",
	"tripwe_app": "0.0.1"
}

Route

Form/Packages/new-packages-nntqnzndea

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 502, in evaluate_alert
    alert.send(doc)
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 179, in send
    self.load_standard_properties(context)
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 430, in load_standard_properties
    module = get_doc_module(self.module, self.doctype, self.name)
  File "apps/frappe/frappe/modules/utils.py", line 50, in get_doc_module
    return frappe.get_module(module_name)
  File "apps/frappe/frappe/__init__.py", line 1506, 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 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  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 'tripwe_app.tripwe.notification.package_{{doc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 110, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1784, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
  File "apps/frappe/frappe/desk/form/save.py", line 39, in savedocs
    doc.save()
  File "apps/frappe/frappe/model/document.py", line 335, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 357, in _save
    return self.insert()
  File "apps/frappe/frappe/model/document.py", line 306, in insert
    self.run_method("after_insert")
  File "apps/frappe/frappe/model/document.py", line 961, in run_method
    self.run_notifications(method)
  File "apps/frappe/frappe/model/document.py", line 1021, in run_notifications
    _evaluate_alert(alert)
  File "apps/frappe/frappe/model/document.py", line 1004, in _evaluate_alert
    evaluate_alert(self, alert.name, alert.event)
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 512, in evaluate_alert
    msg = f"<details><summary>{title}</summary>{message}</details>"
UnboundLocalError: local variable 'message' referenced before assignment

Request Data

{
	"type": "POST",
	"args": {
		"doc": "{\"docstatus\":0,\"doctype\":\"Packages\",\"name\":\"new-packages-nntqnzndea\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"Administrator\",\"categories\":[{\"docstatus\":0,\"doctype\":\"Categories\",\"name\":\"new-categories-cppzkefuto\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"Administrator\",\"parent\":\"new-packages-nntqnzndea\",\"parentfield\":\"categories\",\"parenttype\":\"Packages\",\"idx\":1,\"category_name\":\"Category\"}],\"package_name\":\"Teting\",\"travel_agent\":\"Agent\",\"desc\":\"Desc\",\"duration\":259200,\"prce\":1000000,\"location\":\"2313f5febe\",\"maps\":\"{\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"properties\\\":{},\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[73.009386,19.062247]}}]}\",\"preview\":\"/private/files/IMG_20221231_113558.jpg\"}",
		"action": "Save"
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.save.savedocs",
	"request_id": null
}

Response Data

{
	"exception": "UnboundLocalError: local variable 'message' referenced before assignment",
	"exc_type": "UnboundLocalError"
}
{
    "exception": "UnboundLocalError: cannot access local variable 'message' where it is not associated with a value",
    "exc_type": "UnboundLocalError",
    "exc": "[\"Traceback (most recent call last):\\n  File \\\"apps/frappe/frappe/email/doctype/notification/notification.py\\\", line 489, in evaluate_alert\\n    alert.send(doc)\\n  File \\\"apps/frappe/frappe/email/doctype/notification/notification.py\\\", line 166, in send\\n    self.load_standard_properties(context)\\n  File \\\"apps/frappe/frappe/email/doctype/notification/notification.py\\\", line 417, in load_standard_properties\\n    module = get_doc_module(self.module, self.doctype, self.name)\\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n  File \\\"apps/frappe/frappe/modules/utils.py\\\", line 50, in get_doc_module\\n    return frappe.get_module(module_name)\\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n  File \\\"apps/frappe/frappe/__init__.py\\\", line 1504, in get_module\\n    return importlib.import_module(modulename)\\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n  File \\\"/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/importlib/__init__.py\\\", line 126, in import_module\\n    return _bootstrap._gcd_import(name[level:], package, level)\\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1204, in _gcd_import\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1176, in _find_and_load\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1126, in _find_and_load_unlocked\\n  File \\\"<frozen importlib._bootstrap>\\\", line 241, in _call_with_frames_removed\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1204, in _gcd_import\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1176, in _find_and_load\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1126, in _find_and_load_unlocked\\n  File \\\"<frozen importlib._bootstrap>\\\", line 241, in _call_with_frames_removed\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1204, in _gcd_import\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1176, in _find_and_load\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1126, in _find_and_load_unlocked\\n  File \\\"<frozen importlib._bootstrap>\\\", line 241, in _call_with_frames_removed\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1204, in _gcd_import\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1176, in _find_and_load\\n  File \\\"<frozen importlib._bootstrap>\\\", line 1140, in _find_and_load_unlocked\\nModuleNotFoundError: No module named 'tripwe_app.tripwe.notification.package_{{doc'\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \\\"apps/frappe/frappe/app.py\\\", line 110, in application\\n    response = frappe.api.handle(request)\\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^\\n  File \\\"apps/frappe/frappe/api/__init__.py\\\", line 49, in handle\\n    data = endpoint(**arguments)\\n           ^^^^^^^^^^^^^^^^^^^^^\\n  File \\\"apps/frappe/frappe/api/v1.py\\\", line 42, in create_doc\\n    return frappe.new_doc(doctype, **data).insert()\\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n  File \\\"apps/frappe/frappe/model/document.py\\\", line 306, in insert\\n    self.run_method(\\\"after_insert\\\")\\n  File \\\"apps/frappe/frappe/model/document.py\\\", line 961, in run_method\\n    self.run_notifications(method)\\n  File \\\"apps/frappe/frappe/model/document.py\\\", line 1021, in run_notifications\\n    _evaluate_alert(alert)\\n  File \\\"apps/frappe/frappe/model/document.py\\\", line 1004, in _evaluate_alert\\n    evaluate_alert(self, alert.name, alert.event)\\n  File \\\"apps/frappe/frappe/email/doctype/notification/notification.py\\\", line 499, in evaluate_alert\\n    msg = f\\\"<details><summary>{title}</summary>{message}</details>\\\"\\n                                                ^^^^^^^\\nUnboundLocalError: cannot access local variable 'message' where it is not associated with a value\\n\"]"
}

This is the error. in your function you are probably using a variable that is not defined. so best to look at your custom code for any variable not defined before it is used and define it.

Thank you for response my question.
and i have found the problem in Notification which is from ERPNext, want to configure before. Thank You

I’m pulling my custom application to the docker. I have even set the notification list and pulled the custom application to the docker. It is giving me the following error
{
“setup_wizard_failure_message”: “Failed to update global settings”,
“exception”: “UnboundLocalError: cannot access local variable ‘message’ where it is not associated with a value”,
“exc_type”: “UnboundLocalError”,
“exc”: “["Traceback (most recent call last):\n File \"apps/frappe/frappe/email/doctype/notification/notification.py\", line 507, in evaluate_alert\n alert.send(doc)\n File \"apps/frappe/frappe/email/doctype/notification/notification.py\", line 184, in send\n self.load_standard_properties(context)\n File \"apps/frappe/frappe/email/doctype/notification/notification.py\", line 435, in load_standard_properties\n module = get_doc_module(self.module, self.doctype, self.name)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/modules/utils.py\", line 46, in get_doc_module\n app=frappe.local.module_app[scrub(module)],\n ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^\nKeyError: ‘turiya_app’\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"apps/frappe/frappe/app.py\", line 114, in application\n response = frappe.api.handle(request)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/api/init.py\", line 49, in handle\n data = endpoint(**arguments)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/api/v1.py\", line 36, in handle_rpc_call\n return frappe.handler.handle()\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/handler.py\", line 49, in handle\n data = execute_cmd(cmd)\n ^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/handler.py\", line 85, in execute_cmd\n return frappe.call(method, **frappe.form_dict)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/init.py\", line 1768, in call\n return fn(*args, **newargs)\n ^^^^^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/utils/typing_validations.py\", line 31, in wrapper\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py\", line 61, in setup_complete\n return process_setup_stages(stages, args)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py\", line 81, in process_setup_stages\n task.get(\"fn\")(task.get(\"args\"))\n File \"apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py\", line 111, in update_global_settings\n create_or_update_user(args)\n File \"apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py\", line 224, in create_or_update_user\n user.insert()\n File \"apps/frappe/frappe/model/document.py\", line 308, in insert\n self.run_method(\"after_insert\")\n File \"apps/frappe/frappe/model/document.py\", line 964, in run_method\n self.run_notifications(method)\n File \"apps/frappe/frappe/model/document.py\", line 1024, in run_notifications\n _evaluate_alert(alert)\n File \"apps/frappe/frappe/model/document.py\", line 1007, in _evaluate_alert\n evaluate_alert(self, alert.name, alert.event)\n File \"apps/frappe/frappe/email/doctype/notification/notification.py\", line 517, in evaluate_alert\n msg = f\"

{title}{message}
\"\n ^^^^^^^\nUnboundLocalError: cannot access local variable ‘message’ where it is not associated with a value\n"]”
}

I have tired by copying the json from my instance inside the docker notification.json still it is not helping.

how to resolve this notification message value error?