Sep-22-2019, 05:49 PM
It would help if you posted a minimal, yet complete code example that demonstrates the problem - the lines in the traceback you've provided don't match with the code you've posted. In any case, it looks like the error is because something that is expected to be a string is actually an int, so you need to work out where that's happening and read the docs for the various functions to see how to use them correctly.