ImportError problem for make check

Hi everybody,

I just cant figure this out, so I have to ask here: I am trying to
import my
own block, but when running “make check”, I get an ImportError. It is
just a
simple test that I only change the name of “howto” module as “myblock”
keep the same for the rest part of code.

Then I modify Makefile.swig.gen and by searching/replacing
ocurrences of ‘howto’ with “myblock”. Should I do some addition
changes in
this step?

After that, under the directory /gnuradio/gr-howto-write-a-block, I run
make check

I got the ImportError as below:

shi@shi-laptop:~/Desktop/myblock$ make check
Making check in config
make[1]: Entering directory /home/shi/Desktop/myblock/config' make[1]: Nothing to be done for check’.
make[1]: Leaving directory /home/shi/Desktop/myblock/config' Making check in src make[1]: Entering directory /home/shi/Desktop/myblock/src’
Making check in lib
make[2]: Entering directory /home/shi/Desktop/myblock/src/lib' make check-am make[3]: Entering directory /home/shi/Desktop/myblock/src/lib’
make[3]: Nothing to be done for check-am'. make[3]: Leaving directory /home/shi/Desktop/myblock/src/lib’
make[2]: Leaving directory /home/shi/Desktop/myblock/src/lib' Making check in python make[2]: Entering directory /home/shi/Desktop/myblock/src/python’
make check-TESTS
make[3]: Entering directory `/home/shi/Desktop/myblock/src/python’
Traceback (most recent call last):
File “./”, line 24, in
import myblock
File “/home/shi/Desktop/myblock/src/lib/”, line 6, in

import _myblock
ImportError: /home/shi/Desktop/myblock/src/lib/.libs/
symbol: _Z22myblock_make_square_ffvFAIL: run_tests

1 of 1 test failed

make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory /home/shi/Desktop/myblock/src/python' make[2]: *** [check-am] Error 2 make[2]: Leaving directory /home/shi/Desktop/myblock/src/python’
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/shi/Desktop/myblock/src’
make: *** [check-recursive] Error 1

Any help will be appreciated

Thank you


View this message in context:
Sent from the GnuRadio mailing list archive at