liuyunfz / chaoxing_tool

超星网课助手,拥有 一键完成超星中的任务点/刷取课程学习次数/下载课程资源 等功能。基于python语言
GNU General Public License v3.0
315 stars 58 forks source link

无法一键完成 #21

Closed FASUZO closed 2 years ago

FASUZO commented 2 years ago

image

FASUZO commented 2 years ago

谢谢,已经解决。 另外我使用PyCharm,python3.9.6,源代码运行,会报一下错误

Traceback (most recent call last): File "D:\X\Program\py\chaoxing_tool-master\chaoxing.py", line 4, in import json File "C:\Python39\lib\json__init.py", line 106, in from .decoder import JSONDecoder, JSONDecodeError File "C:\Python39\lib\json\decoder.py", line 11, in import requests File "C:\Python39\lib\site-packages\requests__init__.py", line 100, in check_compatibility(urllib3.version__, chardet_version, charset_normalizer_version) File "C:\Python39\lib\site-packages\requests__init__.py", line 85, in check_compatibility raise Exception("You need either charset_normalizer or chardet installed") Exception: You need either charset_normalizer or chardet installed

liuyunfz commented 2 years ago

您好,可以的话能请问你出现 error:Expecting value: line 1 column 1 (char 0) 错误是怎么解决的吗?因为https://github.com/liuyunfz/chaoxing_tool/issues/22 也出现了相关问题。至于你后面这个pycharm的报错,也许你可以尝试更新requests pip install --upgrade requests模块,它应该会自动安装上chardet 模块。

liuyunfz commented 2 years ago

image

您好,新版本 https://github.com/liuyunfz/chaoxing_tool/commit/d1d485236285e16c79dc988d5c00b7aee0e4854e 已尝试对该问题进行了修复,麻烦您下载最新版本再次尝试。

FASUZO commented 2 years ago

谢谢