Coder Social home page Coder Social logo

Issue with OS X yosemite about lightblue-0.4 HOT 5 OPEN

0-1-0 avatar 0-1-0 commented on July 21, 2024
Issue with OS X yosemite

from lightblue-0.4.

Comments (5)

aodock avatar aodock commented on July 21, 2024

Hi, I followed as said on link. It tool a lot to download at first, and took really long time to complete the installation with many warnings. Later when i tried to import lightblue i got the following error

In [1]:  import lightblue
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/objc/_bridgesupport.py:643: RuntimeWarning: Error parsing BridgeSupport data for IOBluetooth: PyObjCRT_SkipTypeSpec: Got '0x29' at end of union encoding, expecting '0x29'
  warnings.warn("Error parsing BridgeSupport data for %s: %s" % (frameworkName, e), RuntimeWarning)

Later i tried to discover devices,

In [2]:  lightblue.finddevices()
Exception AttributeError: "'_SyncDeviceInquiry' object has no attribute '_inquiry'" in <bound method _SyncDeviceInquiry.__del__ of <lightblue._lightblue._SyncDeviceInquiry object at 0x104052450>> ignored
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-8-0400d43f1d09> in <module>()
----> 1 lightblue.finddevices()

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_lightblue.pyc in finddevices(getnames, length)
     44 
     45 def finddevices(getnames=True, length=10):
---> 46     inquiry = _SyncDeviceInquiry()
     47     inquiry.run(getnames, length)
     48     devices = inquiry.getfounddevices()

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_lightblue.pyc in __init__(self)
    334         super(_SyncDeviceInquiry, self).__init__()
    335 
--> 336         self._inquiry = _AsyncDeviceInquiry.alloc().init()
    337         self._inquiry.cb_completed = self._inquirycomplete
    338 

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_lightblue.pyc in init(self)
    406                 "Mac OS X 10.4, are you running an earlier version?")
    407 
--> 408         self = super(_AsyncDeviceInquiry, self).init()
    409         self._inquiry = \
    410             _IOBluetooth.IOBluetoothDeviceInquiry.inquiryWithDelegate_(self)

AttributeError: 'super' object has no attribute 'init'

from lightblue-0.4.

aodock avatar aodock commented on July 21, 2024

Hi, installing this helped me finally

from lightblue-0.4.

SejalChauhan avatar SejalChauhan commented on July 21, 2024

I am not able to install the package successfully :
error -

clang: error: no such file or directory: 'Modules/_imagekit.m'
clang: error: no input files
error: command 'clang' failed with exit status 1
Installing 'pyobjc-framework-Quartz' failed (status 1)

from lightblue-0.4.

lidio601 avatar lidio601 commented on July 21, 2024

@SejalChauhan try the pyobjc-3.0.3 release.
It worked for me

from lightblue-0.4.

SejalChauhan avatar SejalChauhan commented on July 21, 2024

Yes, after tweaking some settings, it worked for me too. Thanks!

from lightblue-0.4.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.