On 4 Aug, 2011, at 18:43, luke skywalker wrote:

> Hi,
>   I have Mac OS X Lion 10.7 running. I'm trying to use bluetooth with python. 
> I've installed the lightblue library as it seems to be the only way to have 
> easy access to bluetooth through python. However, when I do: 
> import lighblue
> 
> I get this:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/Library/Python/2.7/site-packages/lightblue/__init__.py", line 160, 
> in <module>
>     from _lightblue import *
>   File "/Library/Python/2.7/site-packages/lightblue/_lightblue.py", line 27, 
> in <module>
>     import _IOBluetooth
>   File "/Library/Python/2.7/site-packages/lightblue/_IOBluetooth.py", line 
> 47, in <module>
>     globals=globals())
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_bridgesupport.py",
>  line 142, in initFrameworkWrapper
>     _parseBridgeSupport(data, globals, frameworkName)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_bridgesupport.py",
>  line 42, in _parseBridgeSupport
>     objc.parseBridgeSupport(data, globals, frameworkName, *args, **kwds)
> ValueError: cftype for 'IOBluetoothDeviceInquiryRef' must include 
> gettypeid_func, tollfree or both
> 
> 
> Looking at:
>  
> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/Resources/BridgeSupport/IOBluetooth.bridgesupport
> No cftypes declared in it have a gettypeid function or a tollfree. Anybody 
> knows what's wrong? I've checked other bridgesupport files and they also have 
> the same pattern (cftypes without gettypeid or tollfree).
> 
> Thx.

Apple's brigesupport files are hopeless, that's why PyObjC ships with its own 
copy of them, which btw. is why I haven't done a new release of pyobjc yet: I 
need to update my version of these files.

Ronald

> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to