# Ctest can't find gnuradio module

**URL:** <https://www.ruby-forum.com/t/ctest-cant-find-gnuradio-module/231716>\
**Category:** GNU Radio\
**Created:** [August 26, 2014, 5:31am UTC](https://www.ruby-forum.com/t/ctest-cant-find-gnuradio-module/231716 "2014-08-26T05:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [August 26, 2014, 5:31am UTC](https://www.ruby-forum.com/t/ctest-cant-find-gnuradio-module/231716/1 "2014-08-26T05:31:47Z")

</div>

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
