Ctest can't find gnuradio module

I have looked all over and find this question asked but not answered.
I have been following the OOT tutorial to make my own OOT block.
Everything seems to compile correctly but when I run ‘make test’ from
the build folder test 1 passes and test 2 fails

When I run’ctest -V -R square’ I get

File “/Users/chrisdsimpson/src/gnuradio/gr-sofv/python/qa_square_ff.py”,
line 22, in
from gnuradio import gr, gr_unittest
ImportError: No module named gnuradio

When I run ‘cmake -Wno-dev …/’ it all looks good

This is a gnuradio 3.7.3 install on a mac 10.9.4 using macports.
Does anyone have any Ideas about this issue?

Thanks so much

Chris Simpson


chriss-MacBook-Pro:build chrisdsimpson$ make test
Running tests…
Test project /Users/chrisdsimpson/src/gnuradio/gr-sofv/build
Start 1: test_sofv
1/2 Test #1: test_sofv … Passed 0.01 sec
Start 2: qa_square_ff
2/2 Test #2: qa_square_ff …***Failed 0.02 sec

50% tests passed, 1 tests failed out of 2

Total Test time (real) = 0.03 sec

The following tests FAILED:
2 - qa_square_ff (Failed)
Errors while running CTest
make: *** [test] Error 8

chriss-MacBook-Pro:build chrisdsimpson$ ctest -V -R square
UpdateCTestConfiguration from
:/Users/chrisdsimpson/src/gnuradio/gr-sofv/build/DartConfiguration.tcl
UpdateCTestConfiguration from
:/Users/chrisdsimpson/src/gnuradio/gr-sofv/build/DartConfiguration.tcl
Test project /Users/chrisdsimpson/src/gnuradio/gr-sofv/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph…
Checking test dependency graph end
test 2
Start 2: qa_square_ff

2: Test command: /bin/sh
“/Users/chrisdsimpson/src/gnuradio/gr-sofv/build/python/qa_square_ff_test.sh”
2: Test timeout computed to be: 9.99988e+06
2: Traceback (most recent call last):
2: File
“/Users/chrisdsimpson/src/gnuradio/gr-sofv/python/qa_square_ff.py”, line
22, in
2: from gnuradio import gr, gr_unittest
2: ImportError: No module named gnuradio
1/1 Test #2: qa_square_ff …***Failed 0.02 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 0.02 sec

The following tests FAILED:
2 - qa_square_ff (Failed)
Errors while running CTest

chriss-MacBook-Pro:build chrisdsimpson$ cmake -Wno-dev …/
– Build type not specified: defaulting to release.
– Boost version: 1.55.0
– Found the following Boost libraries:
– filesystem
– system
Checking for GNU Radio Module: RUNTIME

  • INCLUDES=/opt/local/include

LIBS=/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib
GNURADIO_RUNTIME_FOUND = TRUE
– Configuring done
– Generating done
– Build files have been written to:
/Users/chrisdsimpson/src/gnuradio/gr-sofv/build

Chris Simpson