rfancn / aliyun-ddns-client

Python DDNS client for Aliyun
402 stars 137 forks source link

in centos 6.8 SyntaxError: invalid syntax #11

Closed Wyerchen closed 7 years ago

Wyerchen commented 7 years ago

[root@Esxi-Centos aliyun-ddns-client]# python3 ddns.py Traceback (most recent call last): File "ddns.py", line 21, in from config import DDNSConfig File "/opt/aliyun-ddns-client/config.py", line 79 print "No section: {0}".format(section) ^ SyntaxError: invalid syntax

rfancn commented 7 years ago

Can you paste your ddns.conf here? Just comment out the private information.

Wyerchen commented 7 years ago

image

rfancn commented 7 years ago

The root cause is current version doesn't support python3, I just added python3 support, pls download the latest version to see if it works or not.

rfancn commented 7 years ago

it seems work for me in python3 env, pls reopen the issue if it doesn't works for you.