WeChatAssistant icon indicating copy to clipboard operation
WeChatAssistant copied to clipboard

执行python3 Main.py后报错

Open rqd1995 opened this issue 8 years ago • 3 comments

Getting uuid of QR code. Downloading QR code. Traceback (most recent call last): File "Main.py", line 54, in itchat.auto_login(hotReload=True) File "/usr/local/lib/python3.4/dist-packages/itchat/components/register.py", line 32, in auto_login loginCallback=loginCallback, exitCallback=exitCallback) File "/usr/local/lib/python3.4/dist-packages/itchat/components/login.py", line 45, in login picDir=picDir, qrCallback=qrCallback) File "/usr/local/lib/python3.4/dist-packages/itchat/components/login.py", line 118, in get_QR utils.print_qr(picDir) File "/usr/local/lib/python3.4/dist-packages/itchat/utils.py", line 83, in print_qr subprocess.call(['xdg-open', fileDir]) File "/usr/lib/python3.4/subprocess.py", line 537, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib/python3.4/subprocess.py", line 859, in init restore_signals, start_new_session) File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child raise child_exception_type(errno_num, err_msg) FileNotFoundError: [Errno 2] No such file or directory: 'xdg-open'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "Main.py", line 57, in mylog.WriteLog(e) File "/home/wechat/WeChatForRevocation/log.py", line 19, in WriteLog fw.write(time.ctime() + "\n" + msg + "\n\n\n") TypeError: Can't convert 'FileNotFoundError' object to str implicitly

系统使用debian8.2 x32 python3.4,已安装itchat(用pip3安装)

rqd1995 avatar Jun 18 '17 09:06 rqd1995

@rqd1995 我在windows下编码,相关路径,你按照linux编码进行调整。

ZKeeer avatar Jun 20 '17 01:06 ZKeeer

需要调整哪呢啊 @rqd1995 aaaaaaaaa

MyZiegler avatar Sep 04 '17 15:09 MyZiegler

可以看到zlib没装,需要先装上,不然Pillow可能不能用

XAS-712 avatar Apr 01 '18 02:04 XAS-712