Forum: GNU Radio 'unable to coerce endpoint' Error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Kaleem A. (Guest)
on 2008-11-04 20:54
(Received via mailing list)
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 <module>
    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/%27unable-to-coerce-endpoint...
Sent from the GnuRadio mailing list archive at Nabble.com.
Johnathan C. (Guest)
on 2008-11-04 21:15
(Received via mailing list)
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
Michael D. (Guest)
on 2008-11-04 21:23
(Received via mailing list)
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
Kaleem A. (Guest)
on 2008-11-04 21:37
(Received via mailing list)
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/%27unable-to-coerce-endpoint...
Sent from the GnuRadio mailing list archive at Nabble.com.
This topic is locked and can not be replied to.