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
check
your python2.7/dist-packages directory (in whatever install prefix you
used) to make sure that it’s there. Then make sure PYTHONPATH is
pointing
to that directory so Python knows where to find it.

Tom

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
somewhere.

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, OP25_grc.py) 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

http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules#Finalizing-your-work-and-installing
http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#I-get-an-error-when-importing-from-Python-_gnuradio_swig_py_runtimeso-undefined-symbol-what-do-I-do

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 OP25_grc.py 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
is
above include statement. That was problem in my case.

Gr_modtool generated something like this:

%include “test_pkdt.h”
GR_SWIG_BLOCK_MAGIC(test,pkdt);

And it should be like this:

GR_SWIG_BLOCK_MAGIC(test,pkdt);
%include “test_pkdt.h”

Best

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs