I am running a Python script that is causing the above error. The unusual thing is this script is running on a different machine and is having no problems.
The diff
In my case, when I run df -i it shows me that my number of inodes are full and then I have to delete some of the small files or folder. Otherwise it will not allow us to create files or folders once inodes get full.
All you have to do is delete files or folder that has not taken up full space but is responsible for filling inodes.