https://photos.app.goo.gl/YPUW3kGhUs52vsdM8

Google Photos

This is the link of the error image. Please tell me how to solve it. I have not used str as a global variable anywhere (stackoverflow is suggesting this may be cause of error)