Yiyiyimu / QQ-History-Backup

QQ聊天记录备份导出,支持无密钥导出,图片导出。无需编译有GUI界面。Backup Chating History of Instant Messaging QQ.
MIT License
783 stars 61 forks source link

关于聊天记录中图片的问题(试图说明 #13

Closed 114514thD closed 3 years ago

114514thD commented 3 years ago

我首先遵照简介,将/sdcard/Andoird/data/com.tencent.mobileqq放到QQ_History_Backup-v2.1文件夹中,直接使用GUI导出,然而导出的聊天记录中并没有图片,尝试几次均如此。 于是便下载了源码,运行,结果出错 ModuleNotFoundError("No module named 'google'")Traceback (most recent call last): File "C:\Users\XXX\Desktop\QQ_History_Backup-master\QQ_History.py", line 267, in main q.output() File "C:\Users\XXX\Desktop\QQ_History_Backup-master\QQ_History.py", line 208, in output allmsg = self.message() File "C:\Users\XXX\Desktop\QQ_History_Backup-master\QQ_History.py", line 164, in message msg_final = self.decrypt(msgdata, msg_type) File "C:\Users\XXX\Desktop\QQ_History_Backup-master\QQ_History.py", line 108, in decrypt return decode_pic(msg) File "C:\Users\XXX\Desktop\QQ_History_Backup-master\QQ_History.py", line 36, in decode_pic from proto.RichMsg_pb2 import PicRec File "C:\Users\XXX\Desktop\QQ_History_Backup-master\proto\RichMsg_pb2.py", line 5, in from google.protobuf import descriptor as _descriptor ModuleNotFoundError: No module named 'google' 百度一番发现是缺少protobuf这个包,pip install protobuf 再次导出,成功

Yiyiyimu commented 3 years ago

噢我这个功能还没有测试过,如果方便的话提个PR吧~

Yiyiyimu commented 3 years ago

啊对2.1是没有支持图片导出的。。所以你用master才能正常导出