Advertisement

07.09.2008 at 06:06PM PDT, ID: 23552398 | Points: 500
[x]
Attachment Details

Python and bluetooth problem

Asked by gemdeals395 in Bluetooth, Python Scripting Language, Leopard (MAC OS 10.5)

Tags: Python, 2.5, OS X Leopard

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/htdocs/web/msc/test.py", line 3, in <module>
    import lightblue
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/lightblue/__init__.py", line 164, in <module>
    from _lightblue import *
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/lightblue/_lightblue.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/htdocs/web/msc/test.py", line 3, in <module>
    import bluetooth
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bluetooth/__init__.py", line 39, in <module>
    from osx import *
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bluetooth/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
[+][-]07.10.2008 at 11:48PM PDT, ID: 21980373

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628