Please use python3. You need to install XML parser, please run the below command to install the same: pip install xmltodict To run the program please execute below command: python test.py