Module import failed for POS Closing Entry

I had an old image with ERPNext and other applications that I was in the process of updating. I’m now trying to deploy a new project using the easy-install.py script, but I’m getting this error : File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 258, in load_doctype_module
raise ImportError(msg) from e
ImportError: Module import failed for POS Closing Entry, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.deprecation_dumpster’