Samueli924 / chaoxing

超星学习通/超星尔雅/泛雅超星全自动无人值守完成任务点
1.71k stars 240 forks source link

[BUG反馈] python3 main.py -c config.ini 报错 #330

Closed Tunglies closed 5 months ago

Tunglies commented 6 months ago

代码报错截图 此处上传代码报错处截图

rawpointer@rust:~/chaoxing$ python3 main.py -c config.ini
Traceback (most recent call last):
  File "/home/rawpointer/chaoxing/main.py", line 29, in <module>
    username, password, course_list, speed = init_config()
  File "/home/rawpointer/chaoxing/main.py", line 19, in init_config
    return (config.get("common", "username"),
  File "/usr/lib/python3.10/configparser.py", line 783, in get
    d = self._unify_values(section, vars)
  File "/usr/lib/python3.10/configparser.py", line 1154, in _unify_values
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'common'
rawpointer@rust:~/chaoxing$ git log
commit 95f12074a1ab61a14a924b475b0a8e545a8fadd3 (grafted, HEAD -> main, tag: 3.0.6, origin/main, origin/HEAD)
Author: Samueli924 <454867105@qq.com>
Date:   Fri Mar 29 15:05:19 2024 +0800                                                                                                                                                                                                              Fix JSONDecoderError Import
rawpointer@rust:~/chaoxing$      

网页端课程报错任务点截图 此处上传出现报错的任务点的网页端截图

其他内容 您觉得对问题反馈有帮助的内容

14790897 commented 5 months ago

把config_template.ini改名为config.ini