Installed gnu radio using mac ports. First attempt was bumpy, so
unistalled and reinstalled again.
The companion comes up, but when I try a simple FM receiver (RTL-SDR ->
WBFM -> Audio Sink), I get the following:
Generating: “/Users/daldrich/top_block.py”
Executing: “/Users/daldrich/top_block.py”
Traceback (most recent call last):
File “/Users/daldrich/top_block.py”, line 17, in
import osmosdr
File
“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/init.py”,
line 45, in
from osmosdr_swig import *
ImportError: No module named osmosdr_swig
Hi Dan - Make sure you’ve installed both the gnuradio and gr-osmosdr
ports with the +swig variant. Without it, you do not get the *_swig
import libraries. If this is not the case, then email me off list and
I’ll help you debug the issue. - MLD
First I’ve encountered the same problem at here Multimode.py and osmsdr module - GNU Radio - Ruby-Forum, I couldn’t locate osmosdr.py
module. Afterward I found a module named as init.py and discovered
that it is actually the osmosdr module I am looking for, renamed it and
nor I am getting the same error message as above: ImportError: No module
named osmosdr_swig
As far as remember I’ve installed both the gnuradio and gr-osmosdr
ports without the +swig variant.