Opened 12 years ago

Last modified 10 years ago

#38666 closed defect

Unable to successfully import lightblue after installation — at Version 3

Reported by: eroninjapan@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: py-lightblue

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm running OSX 10.8.3 and have included the error message as well as steps to reproduce below.

sudo port selfupdate

sudo port install py27-lightblue

$ python

Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import lightblue

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/__init__.py", line 160, in <module>
    from _lightblue import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_lightblue.py", line 398, in <module>
    class _AsyncDeviceInquiry(Foundation.NSObject): 
TypeError: Error when calling the metaclass bases
    class _AsyncDeviceInquiry does not fully implement protocol IOBluetoothDeviceInquiryDelegate: no implementation for deviceInquiryDeviceNameUpdated:device:devicesRemaining:

Change History (3)

comment:1 Changed 12 years ago by cooljeanius (Eric Gallager)

What does which python return for you? By the version number it looks like you're using the system one. If that's the case, you might want to try doing sudo port select python python27 so that MacPorts's python27 is your default python.

comment:2 Changed 12 years ago by eroninjapan@…

I ran the commands and the output is below. I'm now using MacPort's Python27 but unfortunately I still encounter the same error when attempting the import.

$ which python
/usr/bin/python

$ sudo port select python python27
Selecting 'python27' for 'python' succeeded. 'python27' is now active.

$ which python
/opt/local/bin/python

$ python
Python 2.7.3 (default, Nov 17 2012, 19:54:34) 
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import lightblue
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/__init__.py", line 160, in <module>
    from _lightblue import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_lightblue.py", line 398, in <module>
    class _AsyncDeviceInquiry(Foundation.NSObject): 
TypeError: Error when calling the metaclass bases
    class _AsyncDeviceInquiry does not fully implement protocol IOBluetoothDeviceInquiryDelegate: no implementation for deviceInquiryDeviceNameUpdated:device:devicesRemaining:
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.