# Installing OOT Module on Mac

**URL:** <https://www.ruby-forum.com/t/installing-oot-module-on-mac/243179>\
**Category:** GNU Radio\
**Created:** [August 29, 2015, 10:56pm UTC](https://www.ruby-forum.com/t/installing-oot-module-on-mac/243179 "2015-08-29T22:56:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 29, 2015, 10:56pm UTC](https://www.ruby-forum.com/t/installing-oot-module-on-mac/243179/1 "2015-08-29T22:56:37Z")

</div>

Hello,

I’m using GNURadio 3.7.8 installed from MacPorts on a MacBook Air.

I have tried to create a custom module on my MacBook Air using  
gr\_modtool.  
I was able to write, compile and build the code.  
After this I edited the XML file for accessing on gnuradio-companion.

But the block didn’t show up on gnuradio-companion.

so I have set the following in .bash\_profile

export GRC\_BLOCKS\_PATH=“”

and I was able to see the newly generated block.

But when I run the flowgraph I get the following error.

ImportError: No module named

In linux there is sudo ldconfig command, but the command doesn’t exist  
on  
Mac

So after  
“sudo make install”  
Is there anything else to do for mac?

Thanks  
Vamsi and Rich

---

<div class="post-metadata">

**Author:** ![reback](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5ac83/32.png) [@reback](https://www.ruby-forum.com/u/reback)\
**Post date:** [August 30, 2015, 9:08am UTC](https://www.ruby-forum.com/t/installing-oot-module-on-mac/243179/2 "2015-08-30T09:08:49Z")

</div>

Hi Vamsi, hi Rich 🙂

There’s two different directories you need to look at here:

1. the GRC block path. This is directory where GRC looks for the XML  
defining how a block looks like
2. the Pythonpath. This is the directory Python looks in when you do  
something like “import modulename”.

Examine your $PYTHONPATH variable, and see if

export  
$PYTHONPATH=$PYTHONPATH:\</path/to/folder/containing/installed/.py

before starting your Python Flowgraph (ie. before starting GRC from the  
same shell) helps.

Best regards,  
Marcus
