AttributeError: 'module' object has no attribute 'square_ff'

hi everyone,i have made my own block in gnuradio name square_ff from out
of tree module.i hsvr successfully interfaced it withgnuradio.but
problem is when i want to use that block in gnuradio then the following
error i get in terminal.
AttributeError: ‘module’ object has no attribute ‘square_ff’.
kindly help me

On Fri, Feb 22, 2013 at 9:02 AM, Omer O. [email protected] wrote:

Have you run ‘make install’? Where are you installing it to? You can
your python2.7/dist-packages directory (in whatever install prefix you
used) to make sure that it’s there. Then make sure PYTHONPATH is
to that directory so Python knows where to find it.


On Mon, Feb 25, 2013 at 2:05 PM, [email protected] wrote:

---- Nathan W. [email protected] wrote:

Someone can correct me if I’m wrong, but I think this is the error that
happens if you haven’t run ldconfig (on Ubuntu).

Try sudo ldconfig There’s a gnuradio wiki page that explains what it does

Im sorry this is probably a super basic question but which directory should i
run the ‘sudo ldconfig’? because i am getting a similar error (running a a
different program in GRC, that made me disable some GUI sliders; but
now the program is dies a different way.

It shouldn’t matter which directory you run it in. It just updates the
dynamic linker config (see man ldconfig for info) and doesn’t have
anything to do with the current working directory

You’ll have to copy and paste any errors before I (or anyone else)
will have a chance of knowing what the problem is, but the above links
may be useful as well.
I also don’t know what is. But it sounds like something
you made. Does your module pass make test?

It might be that you have some version mismatch, or i don’t know how to
call that. Check inside of your _swig.i and see whether this MAGIC thig
above include statement. That was problem in my case.

Gr_modtool generated something like this:

%include “test_pkdt.h”

And it should be like this:

%include “test_pkdt.h”