'unable to coerce endpoint' Error


#1

Hi,

I have following message, can someone tell me how can I remove it?

Traceback (most recent call last):
File “./Master_tmp_GUI.py”, line 650, in
main ()
File “./Master_tmp_GUI.py”, line 646, in main
app = stdgui2.stdapp(my_graph, “COMAC”, nstatus=1)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line 36, in init
wx.App.init (self, redirect=False)
File
“/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7757, in init
self._BootstrapApp()
File
“/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7354, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line 39, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line 60, in init
self.panel = stdpanel (self, self, top_block_maker)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line 81, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “./Master_tmp_GUI.py”, line 108, in init
self.rxpath = receive_path(options, times, panel)
File “/usrp/cognitive/gr-comac1.0/src/python/receive_path.py”, line
226,
in init
self.connect (self.u, self.fft_input)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 50, in connect
self._connect(points[i-1], points[i])
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 54, in _connect
(dst_block, dst_port) = self._coerce_endpoint(dst)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 65, in _coerce_endpoint
raise ValueError(“unable to coerce endpoint”)
ValueError: unable to coerce endpoint

Best Regards

Kaleem Ahmad

View this message in context:
http://www.nabble.com/'unable-to-coerce-endpoint'-Error-tp20328688p20328688.html
Sent from the GnuRadio mailing list archive at Nabble.com.


#2

On Tue, Nov 4, 2008 at 10:53 AM, kaleem ahmad removed_email_address@domain.invalid
wrote:

I have following message, can someone tell me how can I remove it?

[…]

File “/usrp/cognitive/gr-comac1.0/src/python/receive_path.py”, line 226,
in init
self.connect (self.u, self.fft_input)
[…]
File “/usr/local/lib/python2.5/site-packages/gnuradio/gr/hier_block2.py”,
line 65, in _coerce_endpoint
raise ValueError(“unable to coerce endpoint”)
ValueError: unable to coerce endpoint

It is complaining that either self.u or self.fft_input is not a
regular or hierarchical block.

-Johnathan


#3

I am using stdgui2.std_top_block to inherit my main class, then I am
connecting rxpath and txpath to it, its working fine (Both rxpath and
txpath
are inherited from gr.hier_block2).

But when I add following, I get this ‘coerce error’:

self.fft_input = fftsink.fft_sink_c(…) PLEASE NOTE THAT I AM
USING
fftsink NOT fftsink2

self.connect (self.u, self.fft_input)

Can we use fftsink with stdgui2 rather than stdgui???

otherwise what can be the reason, Is there any example program using
fftsink2 (Actually I tried a lot but I could not use fftsink2 that’s why
I
used fftsink)

Kaleem Ahmad

Johnathan C.-2 wrote:

[…]


Discuss-gnuradio mailing list
removed_email_address@domain.invalid
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


View this message in context:
http://www.nabble.com/'unable-to-coerce-endpoint'-Error-tp20328688p20329212.html
Sent from the GnuRadio mailing list archive at Nabble.com.


#4

On Nov 4, 2008, at 1:53 PM, kaleem ahmad wrote:

I have following message, can someone tell me how can I remove it?

Not without seeing your code. Please don’t post the whole file to the
list; instead, put the file into an openly-available repository & send
a link to it. - MLD