Changes between Initial Version and Version 3 of Ticket #47922


Ignore:
Timestamp:
Jun 2, 2015, 6:47:02 AM (9 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

What is "python"? Is that Apple's Python, or MacPorts'? You'll probably only have success using MacPorts' Python. You can get that by either running "/opt/local/bin/python2.7" every time you want to use MacPorts Python, or by running "sudo port select --set python python27" once, which will create a symlink at /opt/local/bin/python pointing to /opt/local/bin/python2.7; from then on, assuming /opt/local/bin is in your PATH, you can just run "python".

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47922

    • Property Priority changed from High to Normal
    • Property Keywords gnuradio python removed
    • Property Component changed from wiki to ports
    • Property Port gnuradio added
  • Ticket #47922 – Description

    initial v3  
    33I 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:
    44
    5 
     5{{{
    66$ python top_block.py
    77
     
    1010    from gnuradio import eng_notation
    1111ImportError: No module named gnuradio
    12 
     12}}}
    1313
    1414Then I try to set up the environment variable $PYTHONPATH as follows:
    1515
    16 
     16{{{
    1717$ export PYTHONPATH=/opt/local/lib/python2.7/site-packages:$PYTHONPATH
    18 
     18}}}
    1919
    2020Now, the error changes when I try to run the top_block.py script:
    2121
    22 
     22{{{
    2323$ python top_block.py
    2424Traceback (most recent call last):
     
    2929  File "/usr/local/lib/python2.7/site-packages/gnuradio/gr/runtime_swig.py", line 20, in swig_import_helper
    3030ImportError: No module named _runtime_swig
    31 
     31}}}
    3232
    3333Do you have any suggestions? I am completely stuck and I don't know how to keep going. Thank you in advance!