discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] New Module/block call issue: make function??


From: Nada ABDELKADER
Subject: Re: [Discuss-gnuradio] New Module/block call issue: make function??
Date: Wed, 15 May 2013 11:23:53 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.3.11)

Thank you for your help, it works now.

Reagrds,
Nada

Tom Rondeau <address@hidden> a écrit :

On Tue, May 14, 2013 at 11:35 AM, Nada ABDELKADER
<address@hidden> wrote:
Hi,

I've added a module 'sensingmod' with a "noblock" block 'sensing' but when I
tried to call the block from python, I got this error:

Traceback (most recent call last):
  File "./tunnel_tx_simul.py", line 49, in <module>
    from sensingmod import sensing
  File "/usr/local/lib/python2.7/dist-packages/sensingmod/__init__.py", line
45, in <module>
    from sensingmod_swig import *
  File
"/usr/local/lib/python2.7/dist-packages/sensingmod/sensingmod_swig.py", line
188, in <module>
    sensing = sensing.make;
AttributeError: type object 'sensing' has no attribute 'make'

I thought I had to add a function "make" to the block but still got the
error.

Any Idea?

Regards,
Nada

Looks like there were a couple of typos in the templates for the
noblock. I pushed a fix for it to maint/master/next.

For your problem, just go into your swig/sensingmod_swig.i and remove
the GR_SWIG_BLOCK_MAGIC line for this particular class. This only
means anything for gr_block classes.

Tom




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]