# OutOfTree Module Tutorial

**URL:** <https://www.ruby-forum.com/t/outoftree-module-tutorial/238290>\
**Category:** GNU Radio\
**Created:** [January 1, 2014, 2:53pm UTC](https://www.ruby-forum.com/t/outoftree-module-tutorial/238290 "2014-01-01T14:53:09Z")\
**Posts on this page:** 3\
**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:** [January 1, 2014, 2:53pm UTC](https://www.ruby-forum.com/t/outoftree-module-tutorial/238290/1 "2014-01-01T14:53:09Z")

</div>

Dear Helpers,

I am using GNURadio 3.6.4.1. I am following the tutorial on  
OutOfTreeModules  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules](http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules). I  
am  
having trouble in running make test. It fails with

Traceback (most recent call last):  
2: File “/home/lilo/workspace/gr-howto/python/qa\_square\_ff.py”, line  
38,  
in test\_001\_square\_ff  
2: src = blocks.vector\_source\_f(src\_data)  
2: AttributeError: ‘module’ object has no attribute ‘vector\_source\_f’

Is the tutorial compatible with my GNURadio version? Or am I missing  
something?

Thank you in advance.

Regards,  
Tanaga Biru

---

<div class="post-metadata">

**Author:** ![Tanaga\_Biru](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@Tanaga\_Biru](https://www.ruby-forum.com/u/Tanaga_Biru)\
**Post date:** [January 1, 2014, 2:57pm UTC](https://www.ruby-forum.com/t/outoftree-module-tutorial/238290/2 "2014-01-01T14:57:15Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi Tanaga,

no, the tutorial is not compatible with your GR version.  
3.6.4 is _really_ old; please use the current versions (3.7) if you  
want to develop your own GNU Radio modules.  
However, if I may ask: How, where and why did you get 3.6.4.1?

Happy hacking,  
Marcus

On 01.01.2014 14:52, Tanaga Biru wrote:

> AttributeError: ‘module’ object has no attribute ‘vector\_source\_f’  
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1  
Comment: Using GnuPG with Thunderbird - [http://www.enigmail.net/](http://www.enigmail.net/)

iQEcBAEBAgAGBQJSxB5hAAoJEAFxB7BbsDrLwagIAJsnCPuXy+kjJFMSB0xFSEZS  
RYxQ28mKoBN6JJe5VFMzpSwIG4dTckev7hiYyTBWCvoFJvWtp9E1c3pYK5A/QfLu  
0DZz9ORc2V+iMowEgF+6Rh4+ArIS9sGoB9b3TtHpCru5IJ8XGPKSkL2iNpsmgvoA  
0tPDwQdwpiIxYl1BE8EBTajCwq03pVI0newi6KR9wl3oTBTcdx3bZptmbJnAqWsE  
mtyOzUtdgkrzpagFdPoyYLkV2pNI1ean7j6i9GD1glN2JeyJo8vr9vkuIKT847B0  
CulZhCDQZ0x+JM6d+Vsx0M46qlo/mRBrkRb7XOuzHgpblca2n8Nk1geKwMfPr4k=  
=YunE  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![Tanaga\_Biru](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@Tanaga\_Biru](https://www.ruby-forum.com/u/Tanaga_Biru)\
**Post date:** [May 20, 2014, 11:18pm UTC](https://www.ruby-forum.com/t/outoftree-module-tutorial/238290/3 "2014-05-20T23:18:41Z")

</div>

No, your version is not compatible. You can either change your version.  
Or,  
try the following change:

In your code, instead of using /blocks.vector\_source\_f()/ use  
/gr.vector\_source\_f()/ Apply this change to both, the source as well as  
sink  
definition.

HTH,  
Rishabh Dabral

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/OutOfTree-Module-Tutorial-tp45568p48384.html](http://gnuradio.4.n7.nabble.com/OutOfTree-Module-Tutorial-tp45568p48384.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).
