These are chat archives for littlecodersh/ItChat

9th
May 2018
yeyimilk
@yeyimilk
May 09 02:28
请问你们调用 it.auto_login()会报错吗?
Getting uuid of QR code.
Downloading QR code.
Traceback (most recent call last):
File "robot.py", line 4, in <module>
itchat.auto_login();
File "/home/ubuntu/.local/lib/python2.7/site-packages/itchat/components/register.py", line 36, in auto_login
loginCallback=loginCallback, exitCallback=exitCallback)
File "/home/ubuntu/.local/lib/python2.7/site-packages/itchat/components/login.py", line 49, in login
picDir=picDir, qrCallback=qrCallback)
File "/home/ubuntu/.local/lib/python2.7/site-packages/itchat/components/login.py", line 123, in get_QR
utils.print_qr(picDir)
File "/home/ubuntu/.local/lib/python2.7/site-packages/itchat/utils.py", line 83, in print_qr
subprocess.call(['xdg-open', fileDir])
File "/usr/lib/python2.7/subprocess.py", line 523, in call
return Popen(popenargs, *kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory