Hi,
I'm playing with the howto example as shown by the following link on a Macbook Pro machine.
I can go until $make. When I run $make test, an error pops up and shows
$ make test
Running tests...
Test project /Users/pzhang/tmp/gr-howto/build
Start 1: test_howto
1/2 Test #1: test_howto ....................... Passed 0.02 sec
Start 2: qa_square_ff
2/2 Test #2: qa_square_ff .....................***Failed 0.55 sec
50% tests passed, 1 tests failed out of 2
Total Test time (real) = 0.59 sec
The following tests FAILED:
2 - qa_square_ff (Failed)
Errors while running CTest
make: *** [test] Error 8
I tried $ctest -V, the error message shows
$ ctest -V
UpdateCTestConfiguration from :/Users/pzhang/tmp/gr-howto/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/Users/pzhang/tmp/gr-howto/build/DartConfiguration.tcl
Test project /Users/pzhang/tmp/gr-howto/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: test_howto
1: Test command: /bin/sh "/Users/pzhang/tmp/gr-howto/build/lib/test_howto_test.sh"
1: Test timeout computed to be: 9.99988e+06
1:
1:
1/2 Test #1: test_howto ....................... Passed 0.02 sec
test 2
Start 2: qa_square_ff
2: Test command: /bin/sh "/Users/pzhang/tmp/gr-howto/build/python/qa_square_ff_test.sh"
2: Test timeout computed to be: 9.99988e+06
2: Fatal Python error: PyThreadState_Get: no current thread
2: /Users/pzhang/tmp/gr-howto/build/python/qa_square_ff_test.sh: line 7: 36036 Abort trap: 6 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2 /Users/pzhang/tmp/gr-howto/python/qa_square_ff.py
2/2 Test #2: qa_square_ff .....................***Failed 0.52 sec
50% tests passed, 1 tests failed out of 2
Total Test time (real) = 0.56 sec
The following tests FAILED:
2 - qa_square_ff (Failed)
Errors while running CTest
It seems that the following command does not execute correctly.
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2 /Users/pzhang/tmp/gr-howto/python/qa_square_ff.py
Therefore I enter this command in the terminal and an error shows
$/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2 /Users/pzhang/tmp/gr-howto/python/qa_square_ff.py
Traceback (most recent call last):
File "/Users/pzhang/tmp/gr-howto/python/qa_square_ff.py", line 24, in <module>
import howto_swig as howto
ImportError: No module named howto_swig
I suppose howto_swig should be added to the python path by gr_modtool. Any idea how could I get over this problem? Thanks.
Pengyu