On Wed, Apr 23, 2014 at 10:42 PM, Sara Chérif <[email protected]>wrote:

>  I run  the file "ofdm_txrx.py" from terminal using command ./ofdm_txrx.py
> But I got errors !!! why ?
>
> Thanks in advance ! Here is the output on terminal:
>
>
> ./ofdm_txrx_me.py: line 26:
> OFDM Transmitter / Receiver hier blocks.
>
> For simple configurations, no need to connect all the relevant OFDM blocks
> to form an OFDM Tx/Rx--simply use these.
> : No such file or directory
> ./ofdm_txrx_me.py: line 31: import: command not found
> from: can't read /var/mail/gnuradio
> ./ofdm_txrx_me.py: line 33: import: command not found
> from: can't read /var/mail/utils
> ./ofdm_txrx_me.py: line 36: try:: command not found
> from: can't read /var/mail/gnuradio
> from: can't read /var/mail/gnuradio
> from: can't read /var/mail/gnuradio
> ./ofdm_txrx_me.py: line 41: except: command not found
> ./ofdm_txrx_me.py: line 43: import: command not found
> ./ofdm_txrx_me.py: line 44: import: command not found
> ./ofdm_txrx_me.py: line 45: import: command not found
> ./ofdm_txrx_me.py: line 47: _def_fft_len: command not found
> ./ofdm_txrx_me.py: line 48: _def_cp_len: command not found
> ./ofdm_txrx_me.py: line 49: _def_frame_length_tag_key: command not found
> ./ofdm_txrx_me.py: line 50: _def_packet_length_tag_key: command not found
> ./ofdm_txrx_me.py: line 51: _def_packet_num_tag_key: command not found
> ./ofdm_txrx_me.py: line 53: syntax error near unexpected token `('
> ./ofdm_txrx_me.py: line 53: `_def_occupied_carriers = (range(-26, -21) +
> range(-20, -7) + range(-6, 0) + range(1, 7) + range(8, 21) + range(22,
> 27),)'
>
>
It looks like it's not being recognized by your shell as a Python program.
Try running as:

 $ python ofdm_txrx.py

Tom
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to