Opened 12 years ago
Last modified 11 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)
Change History (15)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | py27-lightblue mountaion lion removed |
---|---|
Owner: | changed from macports-tickets@… to michael.klein@… |
Priority: | High → Normal |
Summary: | py27-lightblue framework error Mac OsX 10.8 → py27-lightblue: ImportError: Cannot load LightAquaBlue framework, not found at/opt/local/Library/Frameworks/LightAquaBlue.framework |
comment:2 Changed 12 years ago by mklein-de (Michael Klein)
Changed 12 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:4 follow-up: 5 Changed 12 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 12 years ago by mklein-de (Michael Klein)
Attachment: | Portfile.patch added |
---|
Patch to use 10.7 SDK on 10.8 and later
comment:5 Changed 12 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 follow-up: 7 Changed 12 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.
comment:7 Changed 12 years ago by mklein-de (Michael Klein)
Thanks, I updated the patch accordingly.
comment:9 Changed 11 years ago by mescalinum@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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:11 Changed 11 years ago by mf2k (Frank Schima)
Owner: | changed from michael.klein@… to macports-tickets@… |
---|---|
Port: | py-lightblue added; py27-lightblue removed |
Status: | reopened → new |
Michael is no longer maintaining this port. See r118707.
comment:12 Changed 11 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
please attach the build log (might be gone by now, please rebuild in that case).