Hi Dilip, 3.3.0 is an old version of gnuradio. The code you posted clearly contains GR 3.7 code structure; so you're using an 3.7 gr_modtool with an 3.3.0 GNU Radio; this can't work.
Please use the gr_modtool that comes with your GNU Radio version (there was no official gr_modtool back in the 3.3.0 days in the GR tree). It is not desirable to use such an old version of GR unless you _really_ need to support legacy code, therefore you should try to use GNU Radio 3.7; please install the latest versions using PyBOMBS (http://gnuradio.org/redmine/projects/pybombs/wiki) or build-gnuradio (http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR#Using-the-build-gnuradio-script). Happy exploring, Marcus Müller On 08/07/2013 12:41 AM, dilip thapa wrote:
Hi, I am working with gnuradio 3.3.0 and now trying to create new block using gr_modtool.py. I am able to do following : 1. cmake 2. make 3. sudo make install 4. sudo ldconfig after editing header file of bin and lib with .cc file. Then while using newly created block with GRC I got following error def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") AttributeError: No constructor defined <http://stackoverflow.com/questions/18092242/def-init-self-args-kwargs-raise-attributeerrorno-constructor-define> Detail I have posted here <http://stackoverflow.com/questions/18092242/def-init-self-args-kwargs-raise-attributeerrorno-constructor-define>. Is this error due to lower version of GNURadio, if not how can I solve this. Please help me out. Sent from Windows Mail _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio