Hello all,
I created an out-of-tree module “my_module” using gr_modtool (from
git) and added a general type block to the module using “gr_modtool
add -t general my_block”. I am building and installing the module as
directed in the gnuradio out-of-tree modules page (mkdir build…make,
sudo make install, sudo ldconfig), but I keep getting:
File “/gr-my_module/python/my_python_code.py”, line 33, in
import my_module
File “/usr/local/lib/python2.6/dist-packages/my_module/init.py”,
line 45, in
from my_module_swig import *
File
“/usr/local/lib/python2.6/dist-packages/my_module/my_module_swig.py”,
line 254, in
my_module_my_block = my_module_my_block.make;
NameError: name ‘my_module_my_block’ is not defined
The block of type gr_block that I define is similar to ->
lib/fractional_interpolator_ff_impl.h/.cc +
include/filter/fractional_interpolator_ff.h <- in the gr-filter folder
of recent gnuradio distributions (>=v3.6.2). I followed the same
syntax, and the CMakeLists.txt, .i files, etc. look right, and both
blocks have a make() function that takes in arguments. The generated
swig.py files are also similar and make the same call to
“my_module_my_block.make”. I’m assuming fractional_interpolator_ff
works fine, since it is included in the gnuradio distribution
I added /usr/local/include for the my_block.h files to PATH and
LD_LIBRARY_PATH in bashrc (and sourced), but that still didn’t correct
the error.
Thanks,
Lara