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

扫码登陆后发现xml 解析问题 #1036

Open
githanw opened this issue Jan 22, 2025 · 1 comment
Open

扫码登陆后发现xml 解析问题 #1036

githanw opened this issue Jan 22, 2025 · 1 comment

Comments

@githanw
Copy link

githanw commented Jan 22, 2025

Environment: Python 3.13
Package Version: itchat == 1.3.10

Error log >
Getting uuid of QR code. Downloading QR code. Please scan the QR code to log in. Please press confirm on your phone. Traceback (most recent call last): File "/Users/xxx/GitLab/my_itchat/main.py", line 7, in <module> itchat.auto_login() ~~~~~~~~~~~~~~~~~^^ File "/Users/xxx/Venvs/itchat/lib/python3.13/site-packages/itchat/components/register.py", line 35, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ loginCallback=loginCallback, exitCallback=exitCallback) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xxx/Venvs/itchat/lib/python3.13/site-packages/itchat/components/login.py", line 53, in login status = self.check_login() File "/Users/xxx/Venvs/itchat/lib/python3.13/site-packages/itchat/components/login.py", line 137, in check_login if process_login_info(self, r.text): ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/Users/xxx/Venvs/itchat/lib/python3.13/site-packages/itchat/components/login.py", line 172, in process_login_info for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes: ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xml/dom/minidom.py", line 2016, in parseString return expatbuilder.parseString(string) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xml/dom/expatbuilder.py", line 922, in parseString return builder.parseString(string) ~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xml/dom/expatbuilder.py", line 220, in parseString parser.Parse(string, True) ~~~~~~~~~~~~^^^^^^^^^^^^^^ xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4

@YaYaLiou
Copy link

YaYaLiou commented Feb 3, 2025

属于兼容问题
#1022

pip uninstall itchat
pip install itchat-uos==1.5.0.dev0

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

2 participants