from config import JD_DEBUG
日志-jd_burning_summer.py
开始执行... 2021-07-21 13:41:43
更新任务状态成功
Traceback (most recent call last):
File "raw_jd_burning_summer.py", line 14, in
更新任务状态成功
config里面没有JD_DEBUG
[root@localhost jd_scripts]# python3.7 jd_burning_summer.py Traceback (most recent call last): File "jd_burning_summer.py", line 14, in from utils.console import println File "/root/jd_scripts/utils/console.py", line 8, in from config import JD_DEBUG File "/root/jd_scripts/config.py", line 44, in with open(CONF_PATH, 'r', encoding='utf-8-sig') as f: FileNotFoundError: [Errno 2] No such file or directory: '/root/jd_scripts/conf/config.yaml'
估计需要配置作者给的docker才可以使用。config.yaml。是配置文件吧
需要配合容器食用