Error cause while Installing ERPNEXT

AttributeError: ‘NoneType’ object has no attribute ‘iter_fields’ while setting up Erpnext

Can you run bench update again and let us know if this error persists?