loblab / noip-renew

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

Invalid syntax error #37

Open happymacarts opened 3 years ago

happymacarts commented 3 years ago

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
sabado commented 3 years ago

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.

matthiasbe commented 3 years ago

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