# (Previously working) AttributeError: 'module' object has no attribute

**URL:** <https://www.ruby-forum.com/t/previously-working-attributeerror-module-object-has-no-attribute/241949>\
**Category:** GNU Radio\
**Created:** [May 14, 2015, 10:03pm UTC](https://www.ruby-forum.com/t/previously-working-attributeerror-module-object-has-no-attribute/241949 "2015-05-14T22:03:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 14, 2015, 10:03pm UTC](https://www.ruby-forum.com/t/previously-working-attributeerror-module-object-has-no-attribute/241949/1 "2015-05-14T22:03:53Z")

</div>

Hello all,

I was woking debuging an error that appear in my application, and in  
order  
to do that I intended to create a really simple block that basically  
just  
connected the output with the input as a bypass, and then I was going to  
modify it with more features to understand the error. All the build and  
installation (and testing) run just fine, but when I tried to run the  
block  
on gnr companion, appeared the common: “AttributeError: ‘module’ object  
has  
no attribute”

I found it strange, as I have already worked with gr\_modtool, so just to  
check if everything was in order, I went through the tutorial again  
(wich  
can be found here:  
[https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules](https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules))  
and  
replicated the procedure for the block “square2\_ff” (that I did when I  
started witg gnuradio), trying to find if there was a step that I was  
skipping. However, the same comes up:

Traceback (most recent call last):  
File “/MY\_WORKING\_FOLDER/apps/top\_block.py”, line 128, in   
tb = top\_block()  
File “/MY\_WORKING\_FOLDER/apps/top\_block.py”, line 97, in **init**  
self.howto\_square2\_ff\_0 = howto.square2\_ff()  
AttributeError: ‘module’ object has no attribute ‘square2\_ff’

I’ve not been working with this a long time, so I’m quite uncertain of  
what  
I’m doing wrong, taking into account that I’ve done the same before and  
it  
worked.

If someone could give me some hints, I’d be very thankful.

Kind regards

---

<div class="post-metadata">

**Author:** ![budu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@budu](https://www.ruby-forum.com/u/budu)\
**Post date:** [May 15, 2015, 1:40pm UTC](https://www.ruby-forum.com/t/previously-working-attributeerror-module-object-has-no-attribute/241949/2 "2015-05-15T13:40:55Z")

</div>

Solved.

I needed just to type “sudo ldconfig” and afterwards it works like a  
charm.

Thanks to all who read the problem.

On Thu, May 14, 2015 at 10:02 PM, Nicolas Cuervo B. \<
