Student party and assessment group missing

Unabel to install education on:

  • frappe15.45.1
  • erpnext 15.39.3

It says:

  1. Could not find Party Type: Student
  2. No module named ‘frappe.core.doctype.assessment_group’

and then ot start giving “Internal Server Error”. What is the issue? Following is the relevant traceback:

frappe@1c4e45b8020b:~/frappe-bench$ bench install-app education                                                                                                                               
App erpnext already installed                                                                                                                                                                 
                                                                                                                                                                                              
Installing education...                                                                                                                                                                       
Document Insert Error                                                                                                                                                                         
Traceback (most recent call last):                                                                                                                                                            
  File "apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py", line 423, in make_records                                                                                                 
    doc.insert(ignore_permissions=True, ignore_if_duplicate=True)                                                                                                                             
  File "apps/frappe/frappe/model/document.py", line 283, in insert                                                                                                                            
    self._validate_links()                                                                                                                                                                    
  File "apps/frappe/frappe/model/document.py", line 930, in _validate_links                                                                                                                   
    frappe.throw(_("Could not find {0}").format(msg), frappe.LinkValidationError)                                                                                                             
  File "apps/frappe/frappe/__init__.py", line 655, in throw                                                                                                                                   
    msgprint(                                                                                                                                                                                 
  File "apps/frappe/frappe/__init__.py", line 620, in msgprint                                                                                                                                
    _raise_exception()                                                                                                                                                                        
  File "apps/frappe/frappe/__init__.py", line 571, in _raise_exception                                                                                                                        
    raise exc                                                                                                                                                                                 
frappe.exceptions.LinkValidationError: Could not find Party Type: Student                                                                                                                     
                                                                                                                                                                                              
An error occurred while installing education: Module import failed for Assessment Group, the DocType you're trying to open might be deleted.                                                  
Error: No module named 'frappe.core.doctype.assessment_group'   ```