Hi,
Please I am facing below issue with POSA 4.3.2 and ERPNext 14, anyone faced this similar issue, any advice how to solve it?
Versions
Installed Apps
ERPNext: v14.11.0 (version-14)
Frappe Framework: v14.20.0 (version-14)
Payments: v0.0.1 (develop)
POS Awesome: v4.3.2 (version-14)
Stacktrace / full error message
Traceback (most recent call last):
File “apps/frappe/frappe/handler.py”, line 72, in execute_cmd
method = get_attr(cmd)
File “apps/frappe/frappe/handler.py”, line 258, in get_attr
method = frappe.get_attr(cmd)
File “apps/frappe/frappe/init.py”, line 1580, in get_attr
return getattr(get_module(modulename), methodname)
File “apps/frappe/frappe/init.py”, line 1322, 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 “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “apps/posawesome/posawesome/posawesome/api/posapp.py”, line 29, in
from frappe.utils.caching import redis_cache
ImportError: cannot import name ‘redis_cache’ from ‘frappe.utils.caching’ (apps/frappe/frappe/utils/caching.py)
During handling of the above exception, another exception occurred:
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 74, in execute_cmd
frappe.throw(_(“Failed to get method for command {0} with {1}”).format(cmd, e))
File “apps/frappe/frappe/init.py”, line 525, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 493, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 442, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Failed to get method for command posawesome.posawesome.api.posapp.check_opening_shift with cannot import name ‘redis_cache’ from ‘frappe.utils.caching’
Steps to reproduce
- Go to POS Awesome module
- Click on POS Awesome App
- See error message below
Failed to get method for command posawesome.posawesome.api.posapp.check_opening_shift with cannot import name ‘redis_cache’ from ‘frappe.utils.caching’ (/home/frappe/frappe-bench/apps/frappe/frappe/utils/caching.py)
What is Expected?
open POS Awesome and start selling
What is actually happening?
Error message displayed, even no items showns nor customers
Additional context
ERPNext installed as production mode.
POS profile created
Opening entry created
Fiscal year created
Item have stock and price