Python ./top_block.py error

Hi, I get this error when trying to run python ./top_block.py

python ./top_block.py
Traceback (most recent call last):
File “./top_block.py”, line 8, in
from gnuradio import analog
ImportError: No module named gnuradio

Do I have to run the python code from a specific dorectory? or set
variables to gnuradio? or is this another error?

I’m running gnuradio on macports osx 10.10