ValueError: invalid literal for int() with base 10: '' in Line:21
last_seen_id = int(f_read.read().strip()) This line is giving the stated Error
Experiencing the same problem. Were you able to solve this?
@LydiaKip Sorry to say this but I have almost 0 rememberance of this repo after this long but after working with Python I will try to explain this error at least. ValueError is encountered when we pass an inappropriate argument type. Here, we are talking about the ValueError caused by passing an incorrect argument to the int() function. When we pass a string representation of a float or any string representation other than that of int, it gives a ValueError. The point to be noted is that the int( ) function uses the decimal number system as its base for conversion ie. base = 10 is the default value for conversion. And in the decimal number system, we have numbers from 0 to 9 excluding the decimal (.) and other characters(alphabets and special chars). Therefore, int() with base = 10 can only convert a string representation of int and not floats or chars.
I'm not sure if this could help but this is the best I could do as per my time schedule.
Thank you so much.I think I understand better.