noip-renew icon indicating copy to clipboard operation
noip-renew copied to clipboard

Invalid syntax error

Open happymacarts opened this issue 5 years ago • 2 comments

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

happymacarts avatar Sep 11 '20 00:09 happymacarts

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.

sabado avatar Sep 18 '20 18:09 sabado

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

matthiasbe avatar Oct 14 '20 09:10 matthiasbe