[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] "ImportError: No module named myblock" when gener
From: |
Yulong Yang |
Subject: |
Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC |
Date: |
Fri, 22 Apr 2011 10:29:07 +0800 |
Hi,
I try to add all it needs to put my custom block into this module. I add
the corresponding .xml/.cc/.h/.i files into grc/lib/swig folder
separately and modify MakeFile.am files in each folders. However, it
still cannot work. When generating top_block.py in GRC, the console
says:
self.myblock_amplifier_ff_0 = myblock.amplifier_ff(1)
AttributeError: 'module' object has no attribute 'amplifier_ff'
My block is a simple amplifier with a parameter "Gain". My module is
"myblock" generated with the out-of-tree-project command. I tried the
square_ff block before and it works well in GRC. What does this error
exactly mean?
Thank you.
- Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC,
Yulong Yang <=