Opened 11 years ago

Last modified 10 years ago

#37361 new defect

py27-lightblue: ImportError: Cannot load LightAquaBlue framework, not found at/opt/local/Library/Frameworks/LightAquaBlue.framework

Reported by: k.teza1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: macports@…, mescalinum@…
Port: py-lightblue

Description

import lightblue

resulting in the following error

2012-12-21 07:04:13.874 Python[4062:f07] PyObjCPointer created: at 0x7fff788af900 of type {__CFBoolean=}
2012-12-21 07:04:13.875 Python[4062:f07] PyObjCPointer created: at 0x7fff788af8f0 of type {__CFBoolean=}
2012-12-21 07:04:13.876 Python[4062:f07] PyObjCPointer created: at 0x7fff788af910 of type {__CFNumber=}
2012-12-21 07:04:13.876 Python[4062:f07] PyObjCPointer created: at 0x7fff788af928 of type {__CFNumber=}
2012-12-21 07:04:13.876 Python[4062:f07] PyObjCPointer created: at 0x7fff788af940 of type {__CFNumber=}
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 28, in <module>
    import _LightAquaBlue
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_LightAquaBlue.py", line 32, in <module>
    _FRAMEWORK_PATH)
ImportError: Cannot load LightAquaBlue framework, not found at/opt/local/Library/Frameworks/LightAquaBlue.framework

Attachments (3)

py26-lightblue.rtf (163.2 KB) - added by k.teza1@… 11 years ago.
I tried to build py26-lightblue.same problem.here is the build log for py26-lightblue
Portfile.patch (896 bytes) - added by mklein-de (Michael Klein) 11 years ago.
Patch to use 10.7 SDK on 10.8 and later
Portfile.2.patch (932 bytes) - added by mklein-de (Michael Klein) 11 years ago.
updated patch

Download all attachments as: .zip

Change History (15)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: py27-lightblue mountaion lion removed
Owner: changed from macports-tickets@… to michael.klein@…
Priority: HighNormal
Summary: py27-lightblue framework error Mac OsX 10.8py27-lightblue: ImportError: Cannot load LightAquaBlue framework, not found at/opt/local/Library/Frameworks/LightAquaBlue.framework

comment:2 Changed 11 years ago by mklein-de (Michael Klein)

please attach the build log (might be gone by now, please rebuild in that case).

Changed 11 years ago by k.teza1@…

Attachment: py26-lightblue.rtf added

I tried to build py26-lightblue.same problem.here is the build log for py26-lightblue

comment:3 Changed 11 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:4 Changed 11 years ago by macports@…

I unzipped the LightAquaBlue-framework-MacOS10.6.zip file, opened the xcode project, changed the Base SDK from 10.6 to 10.7 (because I didn't have 10.6, and using 10.8 failed), and then compiled. I then took the LightAquaBlue.framework product and dropped it in /opt/local/Library/Frameworks/, and now "import lightblue" (and some other test api calls) seems to work. But I have no idea how to fix the actual port file so it installs correctly...

Changed 11 years ago by mklein-de (Michael Klein)

Attachment: Portfile.patch added

Patch to use 10.7 SDK on 10.8 and later

comment:5 in reply to:  4 Changed 11 years ago by mklein-de (Michael Klein)

Replying to macports@…:

I unzipped the LightAquaBlue-framework-MacOS10.6.zip file, opened the xcode project, changed the Base SDK from 10.6 to 10.7 (because I didn't have 10.6, and using 10.8 failed), and then compiled. I then took the LightAquaBlue.framework product and dropped it in /opt/local/Library/Frameworks/, and now "import lightblue" (and some other test api calls) seems to work. But I have no idea how to fix the actual port file so it installs correctly...

can you check whether the attached patch does the trick?

comment:6 Changed 11 years ago by macports@…

Patch didn't work initially, but I changed the line:

configure.sdkroot ${developer_dir}/SDKs/MacOSX10.7.sdk

to be:

configure.sdkroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk

and then it did find the SDK dir. I also changed the double quotes to single quotes:

reinplace "s|DSTROOT=/|SDKROOT=\"${configure.sdkroot}\" DSTROOT=${destroot}|g" \

to

reinplace "s|DSTROOT=/|SDKROOT='${configure.sdkroot}' DSTROOT=${destroot}|g" \

because otherwise it was failing when it tried to run the command later using os.system() in setup.py.

Changed 11 years ago by mklein-de (Michael Klein)

Attachment: Portfile.2.patch added

updated patch

comment:7 in reply to:  6 Changed 11 years ago by mklein-de (Michael Klein)

Thanks, I updated the patch accordingly.

comment:8 Changed 11 years ago by ci42

Resolution: fixed
Status: newclosed

comment:9 Changed 10 years ago by mescalinum@…

Resolution: fixed
Status: closedreopened

I hit this bug and it appears that my py-lightblue portfile is already patched with this patch, but the issue is the same:

$ python2.7
Python 2.7.6 (default, Nov 18 2013, 20:25:17)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] 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 28, in <module>
    import _LightAquaBlue
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_LightAquaBlue.py", line 32, in <module>
    _FRAMEWORK_PATH)
ImportError: Cannot load LightAquaBlue framework, not found at/opt/local/Library/Frameworks/LightAquaBlue.framework
>>>

OSX 10.9.2, Xcode 5.1 Build version 5B130a

comment:10 Changed 10 years ago by mescalinum@…

Cc: mescalinum@… added

Cc Me!

comment:11 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from michael.klein@… to macports-tickets@…
Port: py-lightblue added; py27-lightblue removed
Status: reopenednew

Michael is no longer maintaining this port. See r118707.

comment:12 Changed 10 years ago by mf2k (Frank Schima)

The framework appears to exist here:

$ port contents py27-lightblue | grep LightAquaBlue
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/LightAquaBlue/LightAquaBlue.bridgesupport
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/LightAquaBlue/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/LightAquaBlue/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_LightAquaBlue.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_LightAquaBlue.pyc
Note: See TracTickets for help on using tickets.