NameError!

Hey everyone!!
I am pretty trying to use gnuradio and usrp’s from past one month and
also
using the ucla zigbee phy library!!
I was successful in installing the gnuradio following all the
instruction
given at http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall for my
ubuntu 10.04
also i installed ucla_zigbee_phy library from
https://www.cgran.org/wiki/UCLAZigBee
Right now when i run ./usrp_benchmark_us it shows everything ok and runs
tests till 32MB/sec
But when i run the ucla_zigbee_phy examples the current error it is
showing
is
[email protected]:/ucla_zigbee_phy/src/examples# ./cc1k_txtest.py
cordic_freq = 434.845M
data_rate = 38.4k
samples_per_symbol = 8
fs = 307.2k
usrp interp = 416
Using TX d’board A: Flex 2400 Tx MIMO B
Traceback (most recent call last):
File “./cc1k_txtest.py”, line 173, in
main ()
File “./cc1k_txtest.py”, line 153, in main
tx = transmit_path()
File “./cc1k_txtest.py”, line 122, in init
self.packet_transmitter = cc1k_sos_pkt.cc1k_mod_pkts(self,
spb=self.samples_per_symbol, msgq_limit=2)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/ucla_blks/cc1k_sos_pkt.py”,
line 104, in init
self.cc1k_mod = cc1k.cc1k_mod(fg, *args, **kwargs)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/ucla_blks/cc1k.py”,
line 76, in init
gr.hier_block2.init(self, fg, self.nrz, self.fmmod)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/hier_block2.py”,
line 42, in init
self._hb = hier_block2_swig(name, input_signature, output_signature)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_swig_py_runtime.py”,
line 1015, in hier_block2_swig
return _gnuradio_swig_py_runtime.hier_block2_swig(name,
input_signature,
output_signature)
NameError: global name ‘name’ is not defined

Before this the error which was there
[email protected]:/ucla_zigbee_phy/src/examples# ./cc1k_txtest.py
cordic_freq = 434.845M
data_rate = 38.4k
samples_per_symbol = 8
fs = 307.2k
usrp interp = 416
Using TX d’board A: Flex 2400 Tx MIMO B
Traceback (most recent call last):
File “./cc1k_txtest.py”, line 173, in
main ()
File “./cc1k_txtest.py”, line 153, in main
tx = transmit_path()
File “./cc1k_txtest.py”, line 122, in init
self.packet_transmitter = cc1k_sos_pkt.cc1k_mod_pkts(self,
spb=self.samples_per_symbol, msgq_limit=2)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/ucla_blks/cc1k_sos_pkt.py”,
line 104, in init
self.cc1k_mod = cc1k.cc1k_mod(fg, *args, **kwargs)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/ucla_blks/cc1k.py”,
line 76, in init
gr.hier_block2.init(self, fg, self.nrz, self.fmmod)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/hier_block2.py”,
line 42, in init
self._hb = hier_block2_swig(name, input_signature, output_signature)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_swig_py_runtime.py”,
line 1015, in hier_block2_swig
return _gnuradio_swig_py_runtime.hier_block2_swig(*args, **kwargs)
TypeError: in method ‘hier_block2_swig’, argument 1 of type ‘std::string
const’

So i changed the line 1015 in gnuradio_swig_py_runtime.py from return
_gnuradio_swig_py_runtime.hier_block2_swig(*args, **kwargs) to return
_gnuradio_swig_py_runtime.hier_block2_swig(name, input_signature,
output_signature)

Now can anyone help me!!

Sorry Friends
I dont know how but i posted the wrong error
the current error is
[email protected]:/ucla_zigbee_phy/src/examples# ./cc1k_txtest.py
cordic_freq = 434.845M
data_rate = 38.4k
samples_per_symbol = 8
fs = 307.2k
usrp interp = 416
Using TX d’board A: Flex 2400 Tx MIMO B
Traceback (most recent call last):
File “./cc1k_txtest.py”, line 173, in
main ()
File “./cc1k_txtest.py”, line 153, in main
tx = transmit_path()
File “./cc1k_txtest.py”, line 122, in init
self.packet_transmitter = cc1k_sos_pkt.cc1k_mod_pkts(self,
spb=self.samples_per_symbol, msgq_limit=2)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/ucla_blks/cc1k_sos_pkt.py”,
line 104, in init
self.cc1k_mod = cc1k.cc1k_mod(fg, *args, **kwargs)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/ucla_blks/cc1k.py”,
line 76, in init
gr.hier_block2.init(self, fg, self.nrz, self.fmmod)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/hier_block2.py”,
line 42, in init
self._hb = hier_block2_swig(name, input_signature, output_signature)
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_swig_py_runtime.py”,
line 1015, in hier_block2_swig
return _gnuradio_swig_py_runtime.hier_block2_swig(*args, **kwargs)
TypeError: in method ‘hier_block2_swig’, argument 1 of type ‘std::string
const’

Please help me out
Thanks

Shashank G.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs