gr-osmosdr install issue

Having issues with the site, hardware, source code, or any other issues?
Post Reply
Vine
Posts: 18
Joined: Sat Jun 15, 2013 6:04 am

gr-osmosdr install issue

Post by Vine »

Hi,

I have successfully installed GNU Radio with MacPorts and I have installed from sources gr-osmosdr (I couldn't use MacPort because of a build failure). When I launch GRC, the new blocks (sources/sinks) of gr-osmosdr are available, fine. However when I run the osmocom_fft tool, I have this error :

Code: Select all

Traceback (most recent call last):
  File "/opt/local/bin/osmocom_fft", line 34, in <module>
    import osmosdr
ImportError: No module named osmosdr
So I tried to set PYTHONPATH to /opt/local/lib/python2.7/site-packages/ wherein there is the osmosdr folder, but then the error was :

Code: Select all

Traceback (most recent call last):
  File "/opt/local/bin/osmocom_fft", line 34, in <module>
    import osmosdr
  File "/opt/local/lib/python2.7/site-packages/osmosdr/__init__.py", line 45, in <module>
    from osmosdr_swig import *
  File "/opt/local/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py", line 26, in <module>
    _osmosdr_swig = swig_import_helper()
  File "/opt/local/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py", line 22, in swig_import_helper
    _mod = imp.load_module('_osmosdr_swig', fp, pathname, description)
ImportError: dlopen(/opt/local/lib/python2.7/site-packages/osmosdr/_osmosdr_swig.so, 2): Library not loaded: libgnuradio-osmosdr.0.1.1git.dylib
  Referenced from: /opt/local/lib/python2.7/site-packages/osmosdr/_osmosdr_swig.so
  Reason: image not found
This problem appears also when I run a script generated from GRC. Have you any ideas of what is wrong ? I saw some similar problems on others threads, but no good solutions.

Thanks,
Vincent
Post Reply