Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with python 3.7.3 #34

Open
muralikodali opened this issue Feb 21, 2020 · 4 comments
Open

error with python 3.7.3 #34

muralikodali opened this issue Feb 21, 2020 · 4 comments

Comments

@muralikodali
Copy link

running script giving the following error:

File "./gandi-live-dns.py", line 25
print 'Checking dynamic IP: ' , r._content.strip('\n')
^
SyntaxError: invalid syntax

@jpoggi
Copy link

jpoggi commented Aug 21, 2020

Same error here with python 3.8.2

@jpoggi
Copy link

jpoggi commented Aug 21, 2020

@muralikodali

You have to change edit function by adding () to all line.

example:

print 'Checking dynamic IP: ' , r._content.strip('\n'
become
print('Checking dynamic IP: ' , r._content.strip('\n')

Etc....

see official doc:
https://docs.python.org/3/whatsnew/3.0.html
https://www.python.org/dev/peps/pep-3105/

After correcting those lines, i'm still having other issues, searching....

@jpoggi
Copy link

jpoggi commented Aug 21, 2020

@muralikodali

see here

839bb5d

@paulhenry46
Copy link

Very good work! It works perfectly for me with python 3! Thanks a lot @jpoggi ! Be careful, ipinfo.io returns an error, but with whatismyip.akamai.com, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants