writing a client script. I want to fetch some value from another doctype### App Versions
{
"erpnext": "15.38.0",
"frappe": "15.43.0",
"hrms": "15.30.0",
"india_compliance": "15.13.3"
}
Route
Workspaces/Home
Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/modules/utils.py", line 254, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
File "apps/frappe/frappe/__init__.py", line 1483, 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 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/hrms/hrms/hr/doctype/shift_location/shift_location.py", line 7, in <module>
from hrms.hr.utils import set_geolocation_from_coordinates
ImportError: cannot import name 'set_geolocation_from_coordinates' from 'hrms.hr.utils' (apps/hrms/hrms/hr/utils.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 114, 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 1775, 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/load.py", line 72, in getdoctype
docs = get_meta_bundle(doctype)
File "apps/frappe/frappe/desk/form/load.py", line 83, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File "apps/frappe/frappe/desk/form/meta.py", line 42, in get_meta
meta = FormMeta(doctype, cached=False)
File "apps/frappe/frappe/desk/form/meta.py", line 53, in __init__
self.load_assets()
File "apps/frappe/frappe/desk/form/meta.py", line 67, in load_assets
self.load_templates()
File "apps/frappe/frappe/desk/form/meta.py", line 248, in load_templates
module = load_doctype_module(self.name)
File "apps/frappe/frappe/modules/utils.py", line 258, in load_doctype_module
raise ImportError(msg) from e
ImportError: Module import failed for Shift Location, the DocType you're trying to open might be deleted.
Error: cannot import name 'set_geolocation_from_coordinates' from 'hrms.hr.utils' (apps/hrms/hrms/hr/utils.py)
Request Data
{
"type": "GET",
"args": {
"doctype": "Shift Location",
"with_parent": 1,
"cached_timestamp": null
},
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.load.getdoctype",
"request_id": null
}
Response Data
{
"exception": "Error: cannot import name 'set_geolocation_from_coordinates' from 'hrms.hr.utils' (apps/hrms/hrms/hr/utils.py)",
"exc_type": "ImportError",
"_exc_source": "hrms (app)"
}