discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Discuss-gnuradio] Wrong number of arguments for overloaded function


From: Nick Foster
Subject: RE: [Discuss-gnuradio] Wrong number of arguments for overloaded function 'gr_top_block_sptr_connect'.
Date: Fri, 4 Dec 2009 22:49:41 +0000

I have fixed this error by completely uninstalling GR and removing the 
associated libraries (including libusrp, which it looks like you missed) from 
the library directories as well as from the Python module include directory. 
Then reinstall.

--n

> From: address@hidden
> To: address@hidden
> Date: Fri, 4 Dec 2009 14:53:39 +0100
> Subject: RE: [Discuss-gnuradio] Wrong number of arguments for overloaded      
> function 'gr_top_block_sptr_connect'.
> CC: 
> 
> I have followed the advise, but it did not work. I am working on Ubuntu 9.04 
> and use gnuradio 3.2.2.
> The error only occurs when I use the SSRP. Other flow-graphs create no errors.
> 
> Are there any other ideas about the cause.
> 
> Regards,
> Johan
> 
> ##############################################################################################
> 
> NotImplementedError: Wrong number of arguments for overloaded function 
> 'gr_top_block_sptr_connect'.
>   Possible C/C++ prototypes are:
>     connect(boost::shared_ptr< gr_top_block> *,gr_basic_block_sptr)
>     connect(boost::shared_ptr< gr_top_block> 
> *,gr_basic_block_sptr,int,gr_basic_block_sptr,int)
> 
> swig/python detected a memory leak of type 'gr_basic_block_sptr *', no 
> destructor found.
> 
> ###############################################################################################
> ________________________________________
> Van: Josh Blum address@hidden
> Verzonden: woensdag 2 december 2009 20:55
> Aan: Johan Mussche
> CC: address@hidden
> Onderwerp: Re: [Discuss-gnuradio] Wrong number of arguments for overloaded    
>   function 'gr_top_block_sptr_connect'.
> 
> I have seen this error before on a fedora 11 system, reproducible too. If you 
> make clean, make, and make install your from your source, and try again, it 
> should go away. I have no idea why.
> 
> Also, I recommend using gnuradio 3.2  (or from the master) which comes with a 
> way-newer version of grc.
> 
> -Josh
> 
> On Wed, Dec 2, 2009 at 10:16 AM, Johan Mussche 
> <address@hidden<mailto:address@hidden>> wrote:
> Hello everyone,
> 
> I am trying to use a SSRP with GNU-radio. In the past, with version 3.1 of 
> gnuradio and GRC 0.69, the SSRP worked.
> 
> Now I am using the latest version of GNU-radio from the svn trunk in 
> combination with swig 1.3.36 and python 2.6.
> I have installed the ssrp-files into gnuradio and added the SSRP-block to 
> GRC. Loading the firmware into the SSRP is no problem but
> when I want to run the flow-graph I get the following error:
> 
> #####################################################################################
> 
> ssrp: firmware /usr/share/ssrp/firmware/rxS_512.ihx loaded successfully.
> Traceback (most recent call last):
>  File "/root/Desktop/top_block.py", line 62, in <module>
>    tb = top_block()
>  File "/root/Desktop/top_block.py", line 52, in __init__
>    self.connect((self.ssrp_simple_source_x_0, 0), 
> (self.gr_interleaved_short_to_complex_0, 0))
>  File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/top_block.py", line 
> 124, in connect
>    self._connect(points[i-1], points[i])
>  File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/top_block.py", line 
> 130, in _connect
>    dst_block.basic_block(), dst_port)
>  File 
> "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_swig_py_runtime.py",
>  line 1443, in connect
>    return _gnuradio_swig_py_runtime.gr_top_block_sptr_connect(*args)
> NotImplementedError: Wrong number of arguments for overloaded function 
> 'gr_top_block_sptr_connect'.
>  Possible C/C++ prototypes are:
>    connect(boost::shared_ptr< gr_top_block> *,gr_basic_block_sptr)
>    connect(boost::shared_ptr< gr_top_block> 
> *,gr_basic_block_sptr,int,gr_basic_block_sptr,int)
> 
> ########################################################################################
> 
> I have also tried to to use the old GRC (0.69) but that gives the same error, 
> so it has nothing to do with GRC.
> 
> Can anyone tell me the cause of this error. Is it because of the newer 
> version of swig or gnuradio?
> 
> Best regards,
> 
> Johan
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden<mailto:address@hidden>
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
                                          
_________________________________________________________________
Get gifts for them and cashback for you. Try Bing now.
http://www.bing.com/shopping/search?q=xbox+games&scope=cashback&form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_Shopping_Giftsforthem_cashback_1x1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]