[MacPorts] #47922: ImportError: No module named gnuradio
MacPorts
noreply at macports.org
Mon Jun 1 11:57:20 PDT 2015
#47922: ImportError: No module named gnuradio
------------------------------+--------------------------------
Reporter: plcortesc@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: High | Milestone:
Component: wiki | Version: 2.3.3
Keywords: gnuradio, python | Port:
------------------------------+--------------------------------
Hello everyone!
I have some troubles trying to execute a GNURadio python script. Gnuradio-
companion works well, but when I modify the python script in order to
modify the blocks, I cannot execute it from the terminal getting always
this error:
$ python top_block.py
Traceback (most recent call last):
File "top_block.py", line 8, in <module>
from gnuradio import eng_notation
ImportError: No module named gnuradio
Then I try to set up the environment variable $PYTHONPATH as follows:
$ export PYTHONPATH=/opt/local/lib/python2.7/site-packages:$PYTHONPATH
Now, the error changes when I try to run the top_block.py script:
$ python top_block.py
Traceback (most recent call last):
File "top_block.py", line 9, in <module>
from gnuradio import gr
File "/usr/local/lib/python2.7/site-packages/gnuradio/gr/__init__.py",
line 41, in <module>
File "/usr/local/lib/python2.7/site-
packages/gnuradio/gr/runtime_swig.py", line 28, in <module>
File "/usr/local/lib/python2.7/site-
packages/gnuradio/gr/runtime_swig.py", line 20, in swig_import_helper
ImportError: No module named _runtime_swig
Do you have any suggestions? I am completely stuck and I don't know how to
keep going. Thank you in advance!
--
Ticket URL: <https://trac.macports.org/ticket/47922>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list