These are chat archives for littlecodersh/ItChat

8th
Sep 2017
ofriend-jinxin
@ofriend-jinxin
Sep 08 2017 07:32
扫描二维码后:Please scan the QR code to log in.
Please press confirm on your phone.
Traceback (most recent call last):
File "weixin.py", line 4, in <module>
itchat.auto_login(enableCmdQR=2,hotReload=True)
File "/usr/local/lib/python2.7/site-packages/itchat/components/register.py", line 32, in auto_login
loginCallback=loginCallback, exitCallback=exitCallback)
File "/usr/local/lib/python2.7/site-packages/itchat/components/login.py", line 53, in login
status = self.check_login()
File "/usr/local/lib/python2.7/site-packages/itchat/components/login.py", line 137, in check_login
if process_login_info(self, r.text):
File "/usr/local/lib/python2.7/site-packages/itchat/components/login.py", line 172, in process_login_info
for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes:
File "/usr/local/lib/python2.7/xml/dom/minidom.py", line 1928, in parseString
return expatbuilder.parseString(string)
File "/usr/local/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/usr/local/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
求大神帮忙
ofriend-jinxin
@ofriend-jinxin
Sep 08 2017 07:41
itchat.auto_login(enableCmdQR=2,hotReload=True)
去掉,hotReload=True 就可以登陆了。