Comments (11)
@madhurbhargava Thank you, works on:
lightblue-0.4 (master)$ python --version
Python 2.7.6
lightblue-0.4 (master)$ which python
/usr/bin/python
lightblue-0.4 (master)$ uname -a
Darwin x 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64
os.system("xcodebuild install -arch 'x86_64' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
from lightblue-0.4.
Try to replace in the setup.py (inside the lightblue-0.4/ directory) the following line
os.system("xcodebuild install -arch '$(NATIVE_ARCH_ACTUAL)' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
by this one
os.system("xcodebuild install -arch 'i386' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
This works for me
from lightblue-0.4.
os.system("xcodebuild install -arch 'i386' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
Above is for 32 bit architectures and hence results in "ImportError: Bundle could not be loaded" on 64 bit machines.
For 64 bit machines use:
os.system("xcodebuild install -arch 'x86_64' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
from lightblue-0.4.
I have the same problem here.
from lightblue-0.4.
You can try to set a variable NATIVE_ARCH_ACTUAL a value corresponding to your kernel version. Or manually change this line in setup.py
from lightblue-0.4.
@BugAndNewsReporter
tried your suggestion it builds but raises wrong architecture - when i later one try:
$ bin/python lightblue-0.4-src/examples/simple_client.py
2014-01-16 09:13:23.558 python[40866:507] Error loading /Library/Frameworks/LightAquaBlue.framework/LightAquaBlue: dlopen(/Library/Frameworks/LightAquaBlue.framework/LightAquaBlue, 265): no suitable image found. Did find:
/Library/Frameworks/LightAquaBlue.framework/LightAquaBlue: mach-o, but wrong architecture
/Library/Frameworks/LightAquaBlue.framework/LightAquaBlue: mach-o, but wrong architecture
Traceback (most recent call last):
File "lightblue-0.4-src/examples/simple_client.py", line 4, in <module>
import lightblue
File "<path_to_virtual_env_based_python_project>/project/lib/python2.7/site-packages/lightblue/__init__.py", line 160, in <module>
from _lightblue import *
File "<path_to_virtual_env_based_python_project>/project/lib/python2.7/site-packages/lightblue/_lightblue.py", line 28, in <module>
import _LightAquaBlue
File "<path_to_virtual_env_based_python_project>/project/lib/python2.7/site-packages/lightblue/_LightAquaBlue.py", line 39, in <module>
globals=globals())
File "<path_to_virtual_env_based_python_project>/project/lib/python2.7/site-packages/PyObjC/objc/_bridgesupport.py", line 736, in initFrameworkWrapper
bundle_path=frameworkPath)
ImportError: Bundle could not be loaded
from lightblue-0.4.
the suggestion given by @BugAndNewsReporter worked for me. thanks
from lightblue-0.4.
Worked!, Thank you!
from lightblue-0.4.
@madhurbhargav 's suggestion worked for me (64 bit processor, running Mavericks). Thanks!
from lightblue-0.4.
@madhurbhargava suggestion worked for me as well. Thanks!
from lightblue-0.4.
@BugAndNewsReporter Thanks to you too!
from lightblue-0.4.
Related Issues (13)
- NSInvalidArgumentException on send (El Capitain, python 2.7)
- error on Mac OS X 10.13.1
- unable to install via python HOT 1
- Implicit declaration of function 'IOBluetooth*' is invalid in C99 on macos 11.1 HOT 5
- Can't install light blue on macOS 11.5 HOT 1
- help
- CompileC error
- Unable to successfully import lightblue after installation
- Can't Install on Mac OS 13.2.1 HOT 1
- Signature mismatch for `deviceInquiryComplete:error:aborted`
- Import error HOT 7
- Issue with OS X yosemite HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightblue-0.4.