Open benbucksch opened 4 years ago
diff --git a/pbapheaders.py b/pbapheaders.py index 52227b7..5055d26 100644 --- a/pbapheaders.py +++ b/pbapheaders.py @@ -72,7 +72,7 @@ class VariableLengthProperty(AppParamProperty): return struct.unpack(self.fmt.format(len=length), data)[0]
-class PBAPType(UnicodeHeader): +class PBAPType(Type): code = 0x42
// try to do the following change if build fail, on ubuntu 18.04 diff --git a/setup.py b/setup.py index ba24cb4..5f97f08 100644 --- a/setup.py +++ b/setup.py @@ -22,8 +22,7 @@ setup( dependency_links=["https://bitbucket.org/dboddie/pyobex/get/tip.zip#egg=pyobex-0.26"], install_requires=[ "pybluez==0.22", -"pyobex>=0.26", -"pymongo", +"pymongo==3.6.1", "cmd2==0.8.8" ], )
sudo apt-get install libbluetooth-dev
pip install pyparsing
cd pyobex-0.26/ ; //https://gitlab.com/dboddie/pyobex/-/tree/0.26
sudo python setup.py install
Device
Reproduction steps
python pbapclient.py
connect 20:20:0F:32:D3:29
pull_phonebook telecom/pb.vcf
(vCard 2.1)pull_phonebook --format=1 telecom/pb.vcf
(vCard 3.0)pull_vcard_listing telecom/pb
set_phonebook telecom/pb
pull_vcard_entry 2.vcf
Actual result
Expected result
Getting phonebook entries from smartphone, as README says.
Additional device info
The device shows that it's connected to my computer. It is paired, and during pairing, I specifically allowed phone book / contacts access. On the smartphone, Settings, in the device properties for my computer, it also shows that Contacts access is allowed.