CXRunfree / Autovisor

2024智慧树刷课脚本 基于Python Playwright的自动化程序 [有免安装版]
https://github.com/CXRunfree/Autovisor.git
MIT License
218 stars 19 forks source link

脚本运行时命令行黑框显示一瞬间后关闭,未能成功运行 #15

Closed tianyeMedicago closed 6 months ago

tianyeMedicago commented 6 months ago

如题,系统win11,电脑自带的edge路径是C:\Program Files (x86)\Microsoft\Edge\Application,已确认uri和账号密码无误

CXRunfree commented 6 months ago

你是否运行的是源代码?如果是,可以在cmd中输入python Autovisor.py查看报错原因,猜测可能是没导入依赖库playwright

tianyeMedicago commented 6 months ago

我运行的是封装的

CXRunfree commented 6 months ago

如果是发行版,请在cmd中输入 .\Autovisor.exe 查看报错原因;上述方法都需要cmd切换到该文件路径下才能执行。

tianyeMedicago commented 6 months ago

Traceback (most recent call last): File "Autovisor.py", line 7, in File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "res\configs.py", line 6, in _config.read('account.ini') File "configparser.py", line 698, in read File "configparser.py", line 1097, in _read configparser.DuplicateOptionError: While reading from 'account.ini' [line 16]: option 'https' in section 'course-url' already exists [6808] Failed to execute script 'Autovisor' due to unhandled exception!

CXRunfree commented 6 months ago

网址格式不太对,换行之后最左边要加个空格

tianyeMedicago commented 6 months ago

好我试试看

tianyeMedicago commented 6 months ago

解决了,非常感谢