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

failed log #2

Closed
chgy188 opened this issue Dec 18, 2022 · 3 comments
Closed

failed log #2

chgy188 opened this issue Dec 18, 2022 · 3 comments

Comments

@chgy188
Copy link

chgy188 commented Dec 18, 2022

Python 3.9.13
Traceback (most recent call last):
File "D:\python39\lib\site-packages\itchat\components\login.py", line 255, in maintain_loop
msgList = produce_msg(self, msgList)
File "D:\python39\lib\site-packages\itchat\components\messages.py", line 62, in produce_msg
produce_group_chat(core, m)
File "D:\python39\lib\site-packages\itchat\components\messages.py", line 236, in produce_group_chat
utils.msg_formatter(msg, 'Content')
File "D:\python39\lib\site-packages\itchat\utils.py", line 69, in msg_formatter
d[k] = htmlParser.unescape(d[k])
AttributeError: 'HTMLParser' object has no attribute 'unescape'

@zhayujie
Copy link
Owner

python 3.9 及以上 itchat 不兼容,参考这个 issue: littlecodersh/ItChat#963

建议使用 Python 3.7.1 - 3.9 之间 的版本 ( 3.7.5 亲测可以), 后面考虑修改下itchat 或者 替换其他库

@chgy188 chgy188 closed this as completed Dec 18, 2022
@zhayujie
Copy link
Owner

The case has been solved by using itchat-uos, now supports python 3.9+ and solved the limitation of web wechat.
Commit: 3c7016c

@dfldylan
Copy link

python 3.9 及以上 itchat 不兼容,参考这个 issue: littlecodersh/ItChat#963

建议使用 Python 3.7.1 - 3.9 之间 的版本 ( 3.7.5 亲测可以), 后面考虑修改下itchat 或者 替换其他库

老板,有啥计划的框架吗。我最近找了一圈只找到个GOLANG的还一直在维护
https://github.com/eatmoreapple/openwechat
另外这学期wehcat-uos更新了,但是好像还没人提取新的api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants