How to make my own block

hello everyone!
I am learning to make my own block.In
gr-howto-write-a-block-3.2/src/lib directory ,I delete the former .h and
.c files ,and write my own .h and .c files .after modifying the howto.i
,I make and build everything successfullly .then I chang to the
gr-howto-write-a-block-3.2 directory . " ./bootstrap “and “make” are
successful ,but when i make check ,i fail and get the following message
" File “./qa_howto.py”, line 24, in
import qpsk
ImportError: No module named qpsk”.(i am trying to write a qpsk module)
waiting for help

Hi,

I’m also a noob, learning how to write a block. I had the same
problem… I
think
from gnuradio import “your module name” should fix it…

2010/6/10 weizhongshan [email protected]

On Thu, Jun 10, 2010 at 09:43:45PM -0700, bhargava Yammanuru wrote:

directory ,I delete the former .h and .c files ,and write my own .h and .c
files .after modifying the howto.i ,I *make *and build everything
successfullly .then I chang to the **gr-howto-write-a-block-3.2 directory
. " ./bootstrap “and “make” are successful ,but when i make check ,i fail
and get the following message
" File “./qa_howto.py”, line 24, in
import qpsk
ImportError: No module named qpsk”.(i am trying to write a qpsk module)
waiting for help

The easiest way to create the framework for a new block or blocks is to
use the

$ create-gnuradio-out-of-tree-project

command. It copies and renames the gr-howto-write-a-block directory
structure for you.

It’s included in the 3.3.0 release and is installed in PREFIX/bin.
(It lives in the tree under gr-utils/src/python)

Eric

Hi,

when I try

  $ create-gnuradio-out-of-tree-project myblock

I get this error:

Traceback (most recent call last):
File “/usr/local/bin/create-gnuradio-out-of-tree-project”, line 69, in

main()
File “/usr/local/bin/create-gnuradio-out-of-tree-project”, line 51, in
main
ok = extract_and_rename_files(open_tarball(options.tarball),
module_name)
File “/usr/local/bin/create-gnuradio-out-of-tree-project”, line 18, in
open_tarball
close_fds=True, stdout=subprocess.PIPE)
File
“/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py”,
line 623, in init
errread, errwrite)
File
“/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py”,
line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

What should I do ?