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

Update task.sh #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update task.sh #300

wants to merge 1 commit into from

Conversation

IamDaShan
Copy link

ubuntu环境,无法定时更新解析,经查发现命令少了python3 开头,添加上python3 开头后,问题解决。

ubuntu环境,无法定时更新解析,经查发现命令少了python3 开头,添加上python3 开头后,问题解决。
@NewFuture
Copy link
Owner

DDNS/run.py

Line 1 in 914f3c0

#!/usr/bin/env python

这个脚本本身是可执行脚本。
直接 ./run.py 可以运行么?

@IamDaShan
Copy link
Author

DDNS/run.py

Line 1 in 914f3c0

#!/usr/bin/env python

这个脚本本身是可执行脚本。
直接 ./run.py 可以运行么?

原来这样子,不好意思。我试了./run.py不可以运行,但是把#!/usr/bin/env python 改成#!/usr/bin/env python3 就可以运行了。
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/init.py", line 868, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/init.py", line 741, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/init.py", line 465, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/init.py", line 329, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file huaweidns.py, line 129
2022-01-05 03:58:45,452 <huaweidns.request> 139@/home/dashan/Documents/DDNS/dns/huaweidns.py

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

Successfully merging this pull request may close these issues.

2 participants