discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problem with new blocks


From: Ben Hilburn
Subject: Re: [Discuss-gnuradio] Problem with new blocks
Date: Wed, 14 Mar 2012 17:34:21 -0700

Loic -

That is a Python error, telling you that your class 'rfid' doesn't have the member 'test'.  This is an error in your code.

How familiar are you with Python?  You may want to read up on some Python documentation to help you understand how that all works.

http://docs.python.org/tutorial/classes.html

Cheers,
Ben



On Tue, Mar 13, 2012 at 9:37 AM, Loic Danceg <address@hidden> wrote:
Hi everybody!

I try to create my own block in a current project (rfid). So there are currently other blocks which works correctly.
I had create my file.cc, my file.h and add the part that i need to add in the file rfid.i

After that, I enter the following command line:

./configure
make
make configure

But when i use my application.py i have this error:

Traceback (most recent call last):
  File "./test.py", line 215, in <module>
    main ()
  File "./test.py", line 65, in main
    tb = my_top_block()
  File "./test.py", line 43, in __init__
    d1 = rfid.test()
AttributeError: 'module' object has no attribute 'test'

Someone know why?

Thank you a lot for your time!


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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