ERPNext app reinstallation Error

Hi All,

I have an existing ERPNext installation for some years now with current version 12.5.2. For some reason I production planning folder is missing from from the erpnext folder and the system was complaining.I order to make sure that all the required files are installed I decided to reinstall the ERPNext app. While reinstalling the erpnext app using bench get-app, I was getting an error:

erpnext ContextualVersionConflict: (PyYAML 5.3 Requirement.parse(‘PyYAML==3.13’), set([‘frontmatter’]))

 Can somebody help me with what the error is and how to solve it? 

-Amit