Thursday, August 20, 2015

Re: [Discuss-gnuradio] OOT Module Attribute Error module object has no attribute 'blockname'

One simple thing that can cause this is forgetting to do "sudo ldconfig" after you do your first "sudo make install"

Various things can cause this, it's a cryptic error that I always hate seeing.

Rich

On Wed, Aug 19, 2015 at 11:51 AM, West, Nathan <natw@ostatemail.okstate.edu> wrote:
My gut is telling me this is a swig problem. I don't know that it's frowned upon, but it's not easy to read without some kind of highlighting that we'd get from github or a gist with files. If I'm correct we'd also need to see swig/ACK.i (probably missing an include and/or gr swig block magic. compare to tutorial swig for sanity check)

On Wed, Aug 19, 2015 at 10:38 AM, Washbourne, Logan <lwashbo@ostatemail.okstate.edu> wrote:
Hello all,

I know this question has been asked before, several times, but I didn't find a solution that allowed me to use my OOT blocks without running into the error stated in the subject of this email.

I scoured through this webpage(http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModulesConfig) and tried adding:
set(GR_REQUIRED_COMPONENTS RUNTIME PMT)

to my top level CMakeLists.txt file, because I am using PMT objects in my block, but that didn't get rid of the error.

The full error thrown is this:

Executing: "/home/comm1/Logan/Thesis/top_block.py"

Traceback (most recent call last):
  File "/home/comm1/Logan/Thesis/top_block.py", line 92, in <module>
    tb = top_block()
  File "/home/comm1/Logan/Thesis/top_block.py", line 65, in __init__
    self.ACK_Text_Sanitize_0 = ACK.Text_Sanitize()
AttributeError: 'module' object has no attribute 'Text_Sanitize'


I looked on the mailing list for that last line error and it pointed me to doing what I mentioned above with the CMakeLists.txt file, but could it be an actual problem with the top_block.py file?

In the addendum is all of the files I could think would be necessary for someone to look at if they chose to, if including this much text is frowned upon, please let me know.

 
Addendum:

Text_Sanitize_impl.cc
*****************************************************************************
#ifdef HAVE_CONFIG_H
#include "config.h"

No comments:

Post a Comment