loblab / noip-renew

Auto renew (confirm) noip.com free hosts
Apache License 2.0
435 stars 138 forks source link

Syntax error whenever I try to run the script. #50

Open NssOne opened 3 years ago

NssOne commented 3 years ago

pi@pihole:/usr/local/bin $ ./noip-renew-pi.sh File "./noip-renew.py", line 35 print(f"[{self.time_string_formatter}] - {msg}") ^ SyntaxError: invalid syntax pi@pihole:/usr/local/bin $

It doesn't look like I'm good with pasting the output to my phone very well. Anyway, the ^ is pointing to the " after {msg}. Running on Raspberry pi 3. All dependencies updated.

macgiver510 commented 3 years ago

Facing the same issue.

IDemixI commented 3 years ago

Good afternoon to you both,

This error is generally caused by the fact the version of the script you're using is using Python f strings, which was released with Python 3.6 (I believe).

I've been away from this repo for quite some time, but from the random emails I get, I'm pretty sure someone at some point made a slightly modified version of the script that doesn't use f-strings, meaning you can use older versions of Python.

If you can't find this, I recommend looking at some of the closed issues as I've explained in the past how you can upgrade Python to the correct version.

I hope this helps!