Closed snidwn closed 5 months ago
懂了,是缺库吧。
Warning (from warnings module): File "C:\Users\Administrator\Downloads\main.py", line 15 string = re.sub(u'[^\u4e00-\u9fa5\u0030-\u0039\u0041-\u005a\u0061-\u007a\u3040-\u31FF.]', '', string) SyntaxWarning: invalid escape sequence '.'
Warning (from warnings module): File "C:\Users\Administrator\Downloads\main.py", line 358 re_rule = '\d{4}-\d{2}-\d{2}' SyntaxWarning: invalid escape sequence '\d'
= RESTART: C:\Users\Administrator\Downloads\main.py Traceback (most recent call last): File "C:\Users\Administrator\Downloads\main.py", line 57, in
settings = json.load(f) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\json__init.py", line 293, in load return loads(fp.read(), File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 2 column 17 (char 18) 装好了运行又跳这个错误,求教怎么解决。
可以帖一下settings配置文件的非隐私部分吗
像是配置写错了
id应写在双引号内部,不同id间用英文逗号隔开
另外我删除了你的回复,你的cookie漏出来了
"save_path": H:/"",
"save_path_info": "就算是windows路径也请用 '/' ,而不是反斜杠(可以留空)",
"user_lst": "SoftCreamy2",
"user_lst_info": "填入要下载的用户名(@后面的字符),支持多用户下载,用户名字间逗号(英文逗号,不要有空格)隔开",
不好意思,改成这样了,可还是貌似一样的错误。
Traceback (most recent call last):
File "C:\Users\Administrator\Downloads\main.py", line 57, in
save_path 里的 H:/
也需写在双引号内
不懂PY,是打开IDEL用F5运行吧。直接跳出这个错误。Traceback (most recent call last): File "C:\Users\Administrator\Downloads\main.py", line 4, in
import httpx
ModuleNotFoundError: No module named 'httpx'