Forum: GNU Radio AttributeError: 'module' object has no attribute 'square_ff'.

Posted by Omer Omer (Guest)
on 2013-02-22 15:03
(Received via mailing list)
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
Posted by Tom Rondeau (Guest)
on 2013-02-22 15:12
(Received via mailing list)
On Fri, Feb 22, 2013 at 9:02 AM, Omer Omer <omer9994@yahoo.com> 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
Posted by Nathan West (Guest)
on 2013-02-26 14:20
(Received via mailing list)
On Mon, Feb 25, 2013 at 2:05 PM,  <md123@nycap.rr.com> wrote:
>
> ---- Nathan West <nathan.west@okstate.edu> 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...
http://gnuradio.org/redmine/projects/gnuradio/wiki...

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?
Posted by Nemanja Savic (Guest)
on 2013-02-26 15:14
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.