脚本运行时命令行黑框显示一瞬间后关闭,未能成功运行
Closed this issue · 7 comments
如题,系统win11,电脑自带的edge路径是C:\Program Files (x86)\Microsoft\Edge\Application,已确认uri和账号密码无误
你是否运行的是源代码?如果是,可以在cmd中输入python Autovisor.py查看报错原因,猜测可能是没导入依赖库playwright
我运行的是封装的
如果是发行版,请在cmd中输入 .\Autovisor.exe 查看报错原因;上述方法都需要cmd切换到该文件路径下才能执行。
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!
网址格式不太对,换行之后最左边要加个空格
好我试试看
解决了,非常感谢