Coder Social home page Coder Social logo

Comments (11)

mr-sk avatar mr-sk commented on June 22, 2024 3

@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.

 avatar commented on June 22, 2024 1

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.

madhurbhargava avatar madhurbhargava commented on June 22, 2024 1

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.

jswetzen avatar jswetzen commented on June 22, 2024

I have the same problem here.

from lightblue-0.4.

alexander-akhmetov avatar alexander-akhmetov commented on June 22, 2024

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.

pellekrogholt avatar pellekrogholt commented on June 22, 2024

@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.

lineker avatar lineker commented on June 22, 2024

the suggestion given by @BugAndNewsReporter worked for me. thanks

from lightblue-0.4.

StuartHa avatar StuartHa commented on June 22, 2024

Worked!, Thank you!

from lightblue-0.4.

singular-value avatar singular-value commented on June 22, 2024

@madhurbhargav 's suggestion worked for me (64 bit processor, running Mavericks). Thanks!

from lightblue-0.4.

drastogi avatar drastogi commented on June 22, 2024

@madhurbhargava suggestion worked for me as well. Thanks!

from lightblue-0.4.

drastogi avatar drastogi commented on June 22, 2024

@BugAndNewsReporter Thanks to you too!

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.