一、报错:<error><ret>1203</ret><message>由于安全原因,此微信号不能使用网页版微信。你可以使用 Windows 版微信或 Mac 版微信登录。Windows 版微信下载地址:https://pc.weixin.qq Mac 版微信下载地址:https://mac.weixin.qq</message></error>
解决方案:pip install itchat-uos
二、报错:KeyError:User
解决方案:在 itchat.auto_login(hotReload=True)代码中的去掉hotReload=True即可
itchat.auto_login() 不需要传参
三、报错:AttributeError: module 'schedule' has no attribute 'every'
直接导入schedule即 import schedule
使用schedule.every()函数从而导致的错误,因为你没有安装schedule库,但是import schedule
不会报错,因为已经存在schedule.py文件,我的电脑上因为Django中存在schedule所以不会报错
但是也没有.every()函数的存在,只要安装了schedule库就不会出现问题。
更多推荐
ichat模块schedule模块运行遇到的错误
发布评论