ValueError: unable to coerce endpoint while running simple_mac.py


#1

Hi all,

I use gnuradio svn version and USRP1. I modified the simple_mac.py in
https://www.cgran.org/browser/projects/bbn_80211/branches/douggeiger. I
got an error and used pdb to debug. However, I still cannot solve it.
Could anyone please give me some hints how to solve this error?

Thank you,
Jane
------------------------------------ERROR-------------------------------------------------
Traceback (most recent call last):
 File “./simple_mac.py”, line 430, in
   main()
 File “./simple_mac.py”, line 372, in main
   fg = my_graph(mac.phy_rx_callback, options)
 File “./simple_mac.py”, line 110, in init
   options.barker)
 File
“/usr/local/src/BBN/bbn_80211/branches/douggeiger/src/examples/bbn_80211b_tx.py”,
line 62, in init
   use_barker=use_barker)
 File “/usr/local/lib/python2.5/site-packages/bbn_80211b_pkt.py”, line
75, in init
   self.connect(self.pkt_input, self.xpsk_mod, self)
 File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 72, in connect
   self._connect(points[i-1], points[i])
 File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 76, in _connect
   (dst_block, dst_port) = self._coerce_endpoint(dst)
 File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 87, in _coerce_endpoint
   raise ValueError(“unable to coerce endpoint”)
ValueError: unable to coerce endpoint

------------------------------------ USING PDB to
DEBUG--------------------------------------

#./simple_mac.py
fusb_block_size = 1024
fusb_nblocks   = 16

gr_fir_ccf: using SSE
/usr/local/lib/python2.5/site-packages/bbn_80211b_pkt.py(75)init()
-> self.connect(self.pkt_input, self.xpsk_mod, self)
(Pdb) c
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(66)connect()
-> if len (points) < 1:
(Pdb) p points
(<gr_block message_source (3)>, <bbn_80211b.bbn_80211b_mod object at
0xa36bccc>, <bbn_80211b_pkt.bbn_80211b_mod_pkts object at 0xa36bc6c>)
(Pdb) n
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(69)connect()
-> if len(points) == 1:
(Pdb)
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(72)connect()
-> for i in range (1, len (points)):
(Pdb) n
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(73)connect()
-> self._connect(points[i-1], points[i])
(Pdb) p i
1
(Pdb) n
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(83)_coerce_endpoint()
-> if hasattr(endp, ‘basic_block’):
(Pdb) n
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(84)_coerce_endpoint()
-> return (endp, 0)
(Pdb)
–Return–
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(84)_coerce_endpoint()->(<gr_bloc…urce (3)>, 0)
-> return (endp, 0)
(Pdb)
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(77)_connect()
-> (dst_block, dst_port) = self._coerce_endpoint(dst)
(Pdb) p dst_port
*** NameError: NameError(“name ‘dst_port’ is not defined”,)
(Pdb) p dst
<bbn_80211b.bbn_80211b_mod object at 0xa36bccc>
(Pdb) n
/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py(83)_coerce_endpoint()
-> if hasattr(endp, ‘basic_block’):
(Pdb)
(Pdb) n
Traceback (most recent call last):
 File “./simple_mac.py”, line 430, in
   main()
 File “./simple_mac.py”, line 372, in main
   fg = my_graph(mac.phy_rx_callback, options)
 File “./simple_mac.py”, line 110, in init
   options.barker)
 File
“/usr/local/src/BBN/bbn_80211/branches/douggeiger/src/examples/bbn_80211b_tx.py”,
line 62, in init
   use_barker=use_barker)
 File “/usr/local/lib/python2.5/site-packages/bbn_80211b_pkt.py”, line
75, in init
   self.connect(self.pkt_input, self.xpsk_mod, self)
 File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 73, in connect
   self._connect(points[i-1], points[i])
 File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 77, in _connect
   (dst_block, dst_port) = self._coerce_endpoint(dst)
 File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 89, in _coerce_endpoint
   raise ValueError(“unable to coerce endpoint”)
ValueError: unable to coerce endpoint