Hi there,
Im developing a project which I am using Python (which 2.5 is included with leopard) and Bluetooth in which I need it to communicate with all nearby devices. I have downloaded and installed both PyBlueZ
http://org.csail.mit.edu/pybluez/release/pybluez-src-0.1.tar.gz and Lightblue
http://lightblue.sourceforge.net/ which are both Python Bluetooth wrappers and I am getting errors Including both in the script using the Python IDE IDLE. When I import lightblue I get the error:
>>> ==========================
====== RESTART ==========================
======
>>>
Traceback (most recent call last):
File "/Users/jschulze/Sites/htd
ocs/web/ms
c/test.py"
, line 3, in <module>
import lightblue
File "/Library/Frameworks/Pytho
n.framewor
k/Versions
/2.5/lib/p
ython2.5/s
ite-packag
es/lightbl
ue/__init_
_.py", line 164, in <module>
from _lightblue import *
File "/Library/Frameworks/Pytho
n.framewor
k/Versions
/2.5/lib/p
ython2.5/s
ite-packag
es/lightbl
ue/_lightb
lue.py", line 27, in <module>
import Foundation
ImportError: No module named Foundation
>>>
And when I import bluetooth for PyBlueZ i get the error:
>>> ==========================
====== RESTART ==========================
======
>>>
Traceback (most recent call last):
File "/Users/jschulze/Sites/htd
ocs/web/ms
c/test.py"
, line 3, in <module>
import bluetooth
File "/Library/Frameworks/Pytho
n.framewor
k/Versions
/2.5/lib/p
ython2.5/s
ite-packag
es/bluetoo
th/__init_
_.py", line 39, in <module>
from osx import *
File "/Library/Frameworks/Pytho
n.framewor
k/Versions
/2.5/lib/p
ython2.5/s
ite-packag
es/bluetoo
th/osx.py"
, line 3, in <module>
raise NotImplementedError
NotImplementedError
>>>
Can someone help me in resolving this issue. I need the bluetooth functions imported to finish the application via IDLE but can't seem to get anything imported without errors.
Thanks in advance!
Start Free Trial