Just to be precise, this is the error I am getting:
AttributeError: 'PosixPath' object has no attribute 'tell'

I don’t understand your guess. What is causing this issue, how do I avoid it? I use Path objs everywhere, how do I know no other weird unexpected bugs will occur?
do you know what is causing this?