On Thu, Sep 9, 2010 at 11:26 PM, Alexandru Csete <oz9...@gmail.com> wrote:

> ...
> (4) Not sure about the Qt stuff... In the source tree I tried to execute
> the pyqt_example.py script and got:
> Traceback (most recent call last):
>   File "pyqt_example.py", line 4, in <module>
>     from gnuradio.qtgui import qtgui
>   File "/opt/local/lib/python2.6/site-packages/gnuradio/qtgui/qtgui.py",
> line 24, in <module>
>     _qtgui = swig_import_helper()
>   File "/opt/local/lib/python2.6/site-packages/gnuradio/qtgui/qtgui.py",
> line 20, in swig_import_helper
>     _mod = imp.load_module('_qtgui', fp, pathname, description)
> ImportError:
> dlopen(/opt/local/lib/python2.6/site-packages/gnuradio/qtgui/_qtgui.so, 2):
> Library not loaded: libqwtplot3d.0.dylib
>   Referenced from:
> /opt/local/lib/python2.6/site-packages/gnuradio/qtgui/_qtgui.so
>   Reason: image not found
>
> I found the libqwtplot3d.0.dylib in /opt/local/lib but I get the same error
> even after adding it to LD_LIBRARY_PATH in the .profile file
>

I learned that on OSX it is dyld and not ld; however, changing it to
DYLD_LIBRARY_PATH gave another error:
Traceback (most recent call last):
  File "./pyqt_example.py", line 4, in <module>
    from gnuradio.qtgui import qtgui
  File "/opt/local/lib/python2.6/site-packages/gnuradio/qtgui/qtgui.py",
line 24, in <module>
    _qtgui = swig_import_helper()
  File "/opt/local/lib/python2.6/site-packages/gnuradio/qtgui/qtgui.py",
line 20, in swig_import_helper
    _mod = imp.load_module('_qtgui', fp, pathname, description)
ImportError:
dlopen(/opt/local/lib/python2.6/site-packages/gnuradio/qtgui/_qtgui.so, 2):
Library not loaded:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
  Referenced from:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
  Reason: Incompatible library version: vecLib requires version 1.0.0 or
later, but libLAPACK.dylib provides version 0.0.0

I tried to google this and found some forum discussions suggesting that this
is problem with the port package and that using DYLD_LIBRARY_PATH is not
recommended - instead DYLD_FALLBACK_LIBRARY_PATH can be used. Tried that and
got a different error:
Traceback (most recent call last):
  File "./pyqt_example.py", line 5, in <module>
    from PyQt4 import QtGui, QtCore
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtCore.so,
2): Symbol not found: __PyByteArray_empty_string
  Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtCore.so
  Expected in: flat namespace
 in
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtCore.so

Alex
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to