Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【更新】报错合集(收集网友反馈问题) #6

Open
1 task
lwm98 opened this issue Nov 1, 2021 · 15 comments
Open
1 task

【更新】报错合集(收集网友反馈问题) #6

lwm98 opened this issue Nov 1, 2021 · 15 comments
Labels
bug Something isn't working

Comments

@lwm98
Copy link
Owner

lwm98 commented Nov 1, 2021

  • 报错AttributeError: module 'collections' has no attribute 'Callable'

原因: 依赖安装缺失/错误
解决办法: 删除依赖文件,重新安装一遍

@lwm98
Copy link
Owner Author

lwm98 commented Nov 1, 2021

  • 安装依赖报错:Could not find a version that satisfies the requirement pycryptodome

原因: 依赖安装缺失/错误
解决办法: requirements.txt里面的pycryptodome==3.8.9改成pycryptodome==3.10.0 然后运行pip install -r requirements.txt

@lwm98 lwm98 changed the title 【更新】报错合集 【更新】报错合集(收集网友反馈问题) Nov 1, 2021
@lwm98 lwm98 added the bug Something isn't working label Nov 1, 2021
@lwm98 lwm98 pinned this issue Nov 1, 2021
@lwm98
Copy link
Owner Author

lwm98 commented Nov 1, 2021

  • 出现较多的问题: fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached

原因: 由于DB无法获得在线的useragent的文件
解决办法:缓存useragent的文件到本地,不用它的自动获取。详情参考 链接
注:文件已经上传到本repo中,直接把它复制粘贴到临时文件夹中即可(查看临时文件夹位置可以参考上述链接,文件main.py中已加上,运行复制即可)。

@S-HongJie
Copy link

在尝试捡漏时候
出现一下情况
抢票失败,正在重试,发生错误:'NoneType' object has no attribute 'attrs'

@S-HongJie
Copy link

7F55BA7C-BAC6-4FD7-9D46-6940CED8EDB3附图

@lwm98
Copy link
Owner Author

lwm98 commented Nov 22, 2021

  • 出现较多的问题: 抢票失败,正在重试,发生错误:'NoneType' object has no attribute 'attrs'

原因:门票网页里面没有返回对应的sch_data,mid等参数
解决办法:暂无。本人预约其他科目是可以成功的,其中第一次也有返回这个报错,但是自动重试第二次就成功了(啥也没动)。所以只能暂时推测为 ①网络问题 ②160抽风 ③要么160那边改请求参数了,没有响应回来的数据

@lwm98
Copy link
Owner Author

lwm98 commented Nov 22, 2021

在尝试捡漏时候 出现一下情况 抢票失败,正在重试,发生错误:'NoneType' object has no attribute 'attrs'

#6 (comment)

@yanjiajie7
Copy link

'NoneType' object is not iterable 发生错误

@ghost
Copy link

ghost commented Dec 28, 2021

ValueError: check_hostname requires server_hostname

@xinliang12138
Copy link

大佬,cityid 怎么查啊,想知道杭州的cityid ,添加了杭州的cityid 后,其他地方需要添加别的代码吗

@S-HongJie
Copy link

大佬,cityid 怎么查啊,想知道杭州的cityid ,添加了杭州的cityid 后,其他地方需要添加别的代码吗

杭州好像3024

@xinliang12138
Copy link

xinliang12138 commented Feb 23, 2022 via email

@mumong
Copy link

mumong commented Mar 31, 2022

'NoneType' object is not iterable 发生错误

我也是这个错误,还有如果只想抢疫苗该怎么挂号啊?

@sen13
Copy link

sen13 commented May 15, 2022

File "main.py", line 155
def get_headers() -> json:
^
SyntaxError: invalid syntax

@sen13
Copy link

sen13 commented May 15, 2022

File "main.py", line 155 def get_headers() -> json: ^ SyntaxError: invalid syntax

麻烦大佬看看

@srm19111
Copy link

心态炸了,一堆依赖导不进去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants