myriadrf / gr-limesdr

gr-limesdr Plugin for GNURadio
Other
142 stars 77 forks source link

AttributeError: 'module' object has no attribute 'XXX' (gnuradio new mod 'XXX' created) #28

Closed ah666 closed 5 years ago

ah666 commented 5 years ago

I have created a new module in gnuradio-companion(GRC), the new project is called zzz and adds the module stoo which has been compiled successfully and can generate view modules in GRC. But when running a simple program including this new mod named stoo in GRC, the error is as follows, I Online access said that the pyc file is asked, but the error path points to the stoloc.py file. This is a python file that is automatically generated by a program running in GRC. Sincerely ask for help ! Thanks!

Traceback (most recent call last): File "/home/zhou/Desktop/stoloc.py", line 159, in main() File "/home/zhou/Desktop/stoloc.py", line 147, in main tb = top_block_cls() File "/home/zhou/Desktop/stoloc.py", line 66, in init self.zzz_stoo_0 = zzz.stoo(0.25, 0.4, 10, 0.001) AttributeError: 'module' object has no attribute 'stoo'

gracid commented 5 years ago

This isn't an issue with gr-limesdr. Read more here: https://wiki.gnuradio.org/index.php/Guided_Tutorial_GNU_Radio_in_C%2B%2B https://wiki.gnuradio.org/index.php/OutOfTreeModules

ah666 commented 5 years ago

This isn't an issue with gr-limesdr. Read more here: https://wiki.gnuradio.org/index.php/Guided_Tutorial_GNU_Radio_in_C%2B%2B https://wiki.gnuradio.org/index.php/OutOfTreeModules

OK,thanks