简体   繁体   English

电话簿访问配置文件pabp linux

[英]Phone Book Access Profile pabp linux

I try to execute the file 'pbapclient.py'. 我尝试执行文件“ pbapclient.py”。 I downloaded the files from https://github.com/bmwcarit/pypbap , but the console prompt show me some errors. 我从https://github.com/bmwcarit/pypbap下载了文件,但控制台提示显示了一些错误。 I want to print/save all my contact from my android phone(I've got htc one m9).I run antergos. 我想从我的android手机上打印/保存我所有的联系人(我的htc为m9)。我运行antergos。 I try for at least 4 month... thanks for the help. 我尝试了至少4个月...感谢您的帮助。 This is the prompt 这是提示

[mattia@LinuxMattia pypbap-master]$ python3 pbapclient.py 
Traceback (most recent call last): File "pbapclient.py", line 22, in 
<module> from PyOBEX import client File "/usr/lib/python3.7/site- 
packages/PyOBEX/client.py", line 489, in <module>
class SyncClient(Client): File "/usr/lib/python3.7/site- 
packages/PyOBEX/client.py", line 491, in SyncClient
def connect(self, header_list = (headers.Target("IRMC-SYNC"),)):
File "/usr/lib/python3.7/site-packages/PyOBEX/headers.py", line 33, in 
__init__
self.data = self.encode(data)
File "/usr/lib/python3.7/site-packages/PyOBEX/headers.py", line 48, in 
encode return struct.pack(">BH", self.code, len(data) + 3) + data
TypeError: can't concat str to bytes

Thanks for the help 谢谢您的帮助

安装指南( https://github.com/bmwcarit/pypbap#installation )告诉您该程序需要使用python2运行,但是您使用的是python3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM