Thanks. Please see attached.
Regards,
Ranga.
On Sat, Oct 3, 2015 at 8:41 AM, Marcus Müller <[email protected]>
wrote:
> Could you share your block's xml file from your modules grc/ folder? My
> suspicion is that there might be something wrong with the name/id fields.
>
> Best regards,
> Marcus
>
>
>
> On 03.10.2015 14:28, M. Ranganathan wrote:
>
> Yes I did ldconfid.
>
> The unit tests pass. The standard blocks drag drop fine. Something didn't
> install right for the tutorial. Do I need to edit a file or setting?
>
> Thanks for your response.
>
> Ranga.
> On Oct 3, 2015 6:21 AM, "Richard Bell" <[email protected]> wrote:
>
>> Did you remember to 'sudo ldconfig' after 'sudo make install'?
>>
>> Rich
>>
>> Sent from my iPad
>>
>> > On Oct 3, 2015, at 12:21 AM, M. Ranganathan < <[email protected]>
>> [email protected]> wrote:
>> >
>> > Hello,
>> >
>> > I installed gnuradio using pybombs. I am trying to work my way through
>> the tutorial on how to write a block. I did cmake with the flag
>> >
>> > cmake -DCMAKE_INSTALL_PREFIX=/home/mranga/gnuradio ../
>> >
>> > The location specified is where I had installed gnuradio with pybombs.
>> >
>> > After that, I ran gnuradio-companion. It came up fine and I can
>> drag/drop the standard blocks. However, when I go to drag / drop my custom
>> block, I get the following error.
>> >
>> > File
>> "/home/mranga/gnuradio/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
>> line 255, in draw
>> > window.draw_drawable(gc, self.horizontal_label, 0, 0,
>> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
>> > AttributeError: 'Block' object has no attribute 'horizontal_label'
>> >
>> >
>> > My PYTHONPATH and LD_LIBRARY path were set by sourcing the setenv.sh
>> generated when I installed using pybombs.
>> >
>> > There appears to be some path or setting that is not right. I've been
>> fighting this a while and I can't figure it out. Any help appreciated.
>> >
>> > Thank you in advance.
>> >
>> >
>> >
>> >
>> > --
>> > M. Ranganathan
>> > _______________________________________________
>> > Discuss-gnuradio mailing list
>> > [email protected]
>> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>
>
> _______________________________________________
> Discuss-gnuradio mailing
> [email protected]https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
--
M. Ranganathan
<?xml version="1.0"?>
<block>
<name>square_ff</name>
<key>howto_square_ff</key>
<category>howto</category>
<import>import howto</import>
<make>howto.square_ff()</make>
<!-- Make one 'param' node for every Parameter you want settable from the GUI.
Sub-nodes:
* name
* key (makes the value accessible as $keyname, e.g. in the make node)
* type -->
<param>
<name>...</name>
<key>...</key>
<type>...</type>
</param>
<!-- Make one 'sink' node per input. Sub-nodes:
* name (an identifier for the GUI)
* type
* vlen
* optional (set to 1 for optional inputs) -->
<sink>
<name>in</name>
<type><!-- e.g. int, float, complex, byte, short, xxx_vector, ...--></type>
</sink>
<!-- Make one 'source' node per output. Sub-nodes:
* name (an identifier for the GUI)
* type
* vlen
* optional (set to 1 for optional inputs) -->
<source>
<name>out</name>
<type><!-- e.g. int, float, complex, byte, short, xxx_vector, ...--></type>
</source>
</block>
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio