eliasj / pbap Goto Github PK
View Code? Open in Web Editor NEWPhonebook Access Profile for Python
Phonebook Access Profile for Python
Hi Elias, I got the last commit of your file yesterday wich was updated a few hours ago, my issue that am dealing with is:
when I make a call to the phonebook access using your files. (pbap.py) I can see without any trouble the constructor and the methods: "set_Phonebook()", "pull_phonebook", "pull_vcard_listing" of the class PBAP... until now perfect, I can see my 5 contacts names on the Phone, listed by the "vcf_id" and "full_name" but when I try to do: pull_vcard_entry("0.vcf") I should get my Phone number, but I get instead: OBEXResponse reason=not found code=0x44 header 0{}, no matter which contact I try to pull, I get the same Error, Do you have any Idea why?
Thanks in advance
ok . i know you won't help , but i 'll give it a try.
i installed all the prerequisites lightblue, openOBEX, pyBluez (and the prerequisites of the prerequisites) e.t.c.
when i run your code (i made a file example.py )
it prints out
sudo python example.py
Traceback (most recent call last):
File "example.py", line 5, in
pb = pbap.PBAP(devices[0][0])
and WITHOUT SUDO:
python example.py
Traceback (most recent call last):
File "example.py", line 5, in
pb = pbap.PBAP(devices[0][0])
IndexError: list index out of range
i think it seems like lightblue is having a problem?
can u provide some guideline in order to make pbap work?
i know it's been a while but i really need your help, im under a specific pressure.
Thank you.
Skulle behöva din hjälp där.
Det är så att jag håller på med min Raspberry Pi.
Har allt installerat (Bluez, PyBluez, Lightblue och din Pbap)
Men den slänger ur sig fel meddelanden hela tiden:
Problem 1:
Traceback (most recent call last):
File "bb.py", line 5, in
pb = pbap.PBAP(devices[0][0])
Och problem 2:
Traceback (most recent call last):
File "bb.py", line 7, in
phonebook = pb.pull_phonebook()
File "/home/pi/pbap-master/pbap/pbap.py", line 73, in pull_phonebook
raise Exception("Could not get the phonebook" + str(response))
Exception: Could not get the phonebook<OBEXResponse reason='Bad Request' code=0x40 (0xc0) headers={}>
Hoppas du vet var felet ligger!
pbap.PBAP('f4:98:d6:10:46:8b')
Traceback (most recent call last):
File "", line 1, in
File "pbap.py", line 16, in init
self.__find_service_port()
File "pbap.py", line 26, in __find_service_port
for (a, port, service) in lightblue.findservices(self.__device_address):
File "/Library/Python/2.7/site-packages/lightblue/_lightblue.py", line 73, in findservices
_macutil.createbtdevaddr(devaddr))
ValueError: depythonifying array of 6 items, got one of 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.