noip-renew
noip-renew copied to clipboard
Invalid syntax error
Ran install on rabspberrypi followed all steps added my no-ip acct info and received the following error
root@retropie:~/noip-renew# ./noip-renew.sh
File "./noip-renew.py", line 35
print(f"[{self.time_string_formatter}] - {msg}")
^
SyntaxError: invalid syntax
Same error here
File "/usr/local/bin/noip-renew.py", line 35
print(f"[{self.time_string_formatter}] - {msg}")
^
SyntaxError: invalid syntax
I found this stackoverflow post explaining the print(f) new syntax. Update to Python 3.6 >= will solve the issue.
I adapted the code for python < 3.6, see #32 If like me your distribution is on python 3.5, changing the code does not take much time. see this commit on my fork https://github.com/matthiasbe/noip-renew/commit/6c8cc1106e1bdb3ac8a11a7e2f5212d42728b343