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