discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] AttributeError: 'module' object has no attribute


From: Nemanja Savic
Subject: Re: [Discuss-gnuradio] AttributeError: 'module' object has no attribute 'square_ff'.
Date: Tue, 26 Feb 2013 10:59:22 +0100

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


On Mon, Feb 25, 2013 at 9:16 PM, Nathan West <address@hidden> wrote:
On Mon, Feb 25, 2013 at 2:05 PM,  <address@hidden> wrote:
>
> ---- Nathan West <address@hidden> 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?

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



--
Nemanja Savić

reply via email to

[Prev in Thread] Current Thread [Next in Thread]