Hello sir,
Thank you for your reply.
I am using a 128 GB SD card for the Jetson Nano so I believe it is not the issue with memory. It was working for me on my Windows 10 PC without a GPU and even on my Linux PC with a GPU. I do not know why is it not working on Jetson Nano. It gives a lot of errors, the last error being an AttributeError. I have formatted the SD card and I am going to do the installations again so I would really appreciate your help 
Thanking you in advance for your help.
Best Regards,
Nitish.