Hello Everyone,
I'm getting an error while adding a new block to grc version 3.7.2git-110-gb8b9bff2.
I followed the tutorial at http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules
Also had to modify at some points as below.
- in the test code it worked when I changed ;
from gnuradio import gr, gr_unittest into from gnuradio import gr, gr_unittest, blocks
gr.vector_source_f(src_data) into blocks.vector_source_f(src_data)
gr.vector_sink_f() into gr.vector_sink_f()
All the tests pass too.I'm getting an error while adding a new block to grc version 3.7.2git-110-gb8b9bff2.
I followed the tutorial at http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules
Also had to modify at some points as below.
- in the test code it worked when I changed ;
from gnuradio import gr, gr_unittest into from gnuradio import gr, gr_unittest, blocks
gr.vector_source_f(src_data) into blocks.vector_source_f(src_data)
gr.vector_sink_f() into gr.vector_sink_f()
100% tests passed, 0 tests failed out of 2
I added 3 blocks using c++ for first 2 and python for the last as explained in the tutorial.
I can see the blocks in the grc block list and can add them into the sketch.Traceback (most recent call last):
File "top_block.py", line 82, in <module>
tb = top_block()
File "top_block.py", line 48, in __init__
self.test_square3_ff_0 = test.square3_ff()
AttributeError: 'module' object has no attribute 'square3_ff'
test module is placed under /usr/lib/python2.7/site-packages/test
gnuradio is under /usr/lib/python2.7/site-packages/gnuradio
Is there any point in the tutorial that does not match with the current version of gnuradio?
Thanks in advance
Tarik
Tarik
___________________________________
Aydin Tarik Zengin
Aydin Tarik Zengin
No comments:
Post a Comment