Ofdm_txrx.py

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),)’

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sara,

this is a python module, not an executable file.
It seems like you tried to run it, and since it does not specify
otherwise, your shell tried to treat it as a shell script. Won’t work.

That file contains hierarchical blocks, which you can use in a flow
graph, not on their own.

I still get the feeling that you’re jumping around in GNU Radio code
without really knowing what you’re looking at. I suggest doing the
introductory guides from the wiki; please go to http://gnuradio.org
and read the “How do I use GNU Radio?” page and at least the first two
“beginner level tutorials” from
http://gnuradio.org/redmine/projects/gnuradio/wiki/Tutorials page.

Greetings,
Marcus

On 24.04.2014 04:42, Sara C. wrote:

blocks to form an OFDM Tx/Rx–simply use these. : No such file or
./ofdm_txrx_me.py: line 48: _def_cp_len: command not found
_______________________________________________ Discuss-gnuradio
mailing list [email protected]
Discuss-gnuradio Info Page

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTWMVbAAoJEBQ6EdjyzlHtg9sH/2GcP0iQFNEWm/z/g5hw+Dzh
G2lSNoGFvxpn2EMfiSd8p3BxUnxc0mRLQFDel6f8wJjUGVUkB7WGvYKs7Kf5SDl5
Sq5IU0ceRVOFG/23rpeVtCaXwbAOM5xswfCPykase6Wi1Zr19uzPf62r3ssqzXPT
rFnfBmPVWfpADE7Pbvajy+pyufKqEy0GBqjvWH0aUBVfiKGzZCwF8UQ5229vtiuE
43uPZi+TduBf92VyyoGTNQvhsli4kiB2+uE906jcIojjIPX6xQjQuTNeDnpLRrI7
hzlhiNjsFUd4Cr/S6Uamgvb38pDALhQWdP6GwQbGXTa9P26CdxgkxBgbmZ41/Fk=
=T8Ud
-----END PGP SIGNATURE-----

On Wed, Apr 23, 2014 at 10:42 PM, Sara C.
[email protected]wrote:

to form an OFDM Tx/Rx–simply use these.
./ofdm_txrx_me.py: line 43: import: command not found
27),)’

It looks like it’s not being recognized by your shell as a Python
program.
Try running as:

$ python ofdm_txrx.py

Tom

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sara,

this is a python module, not an executable file.
It seems like you tried to run it, and since it does not specify
otherwise, your shell tried to treat it as a shell script. Won’t work.

That file contains hierarchical blocks, which you can use in a flow
graph, not on their own.

I still get the feeling that you’re jumping around in GNU Radio code
without really knowing what you’re looking at. I suggest doing the
introductory guides from the wiki; please go to http://gnuradio.org
and read the “How do I use GNU Radio?” page and at least the first two
“beginner level tutorials” from
http://gnuradio.org/redmine/projects/gnuradio/wiki/Tutorials page.

Greetings,
Marcus

On 24.04.2014 04:42, Sara C. wrote:

OFDM blocks to form an OFDM Tx/Rx–simply use these. : No such file
./ofdm_txrx_me.py: line 48: _def_cp_len: command not found
_______________________________________________ Discuss-gnuradio
mailing list [email protected]
Discuss-gnuradio Info Page

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTWNP5AAoJEBQ6EdjyzlHtZ1IH/1MU8yjObQt0vSxeRA0PAtW/
9z15fYN1LRFk8bc0ikjzl1brMg30N9XOrQJkZkCLhdUG65DFAxCI0eM//DSEAJCo
/6aN7K7msXEzG9UwLC5eV3vNpQatS2LWIVzX4boXJeL9WWReGCwMZO4D7Sr2oQrr
LyySHE/RF3j8qiz04Yy5vl4AvXCam94jfCj4CZ/eahqOGjaF3RRk83xtfJ5kD+tU
NIBWf/gZ0mG5GJDKEsqbbEh3ngd7/D510QYQy3D4f7JrHzKnfhblIDUiBlRQvzgF
SyXYhiy3IaM9uH4lHbRLcFyv+P5Ny7lFOgrxSaxDqb4JYdXUM77UPE8kXsoSDB8=
=DCm+
-----END PGP SIGNATURE-----