I am developing an OOT. I have a preliminary version working, and now I
am working on a new version.
To make the new version, n the build directory, I first did a "sudo make
uninstall".
I changed some code in one of three block (dstar_decode_bs) in my module
as well as added two new classes (.cc and .h file) in lib. I also added
the two new cc files to CMakeList.txt file in lib.
I removed the build folder and did a cmake, make and "sudo make
install". (And "sudo ldconfig" just for good measure.)
Now I am getting the well-referenced "AttributeError" error with a very
simple test flow graph:
Executing: /usr/bin/python -u /home/tom/top_block.py
--------------------------------------------------------------------
Using Volk machine: avx2_64_mmx_orc
gr::log :INFO: audio source - Audio sink arch: alsa
Traceback (most recent call last):
File "/home/tom/top_block.py", line 109, in <module>
main()
File "/home/tom/top_block.py", line 97, in main
tb = top_block_cls()
File "/home/tom/top_block.py", line 67, in __init__
self.ambe3000_dstar_decode_bs_0 =
ambe3000.dstar_decode_bs("/dev/ttyUSB0", 230400)
AttributeError: 'module' object has no attribute 'dstar_decode_bs'
>>> Done
-----------------------------------------------------------------------
My block doesn't depend on any other block, so I don't think I have to
change GR_REQUIRED_COMPONENTS in the top level CMakeList.txt file.
You can see the working preliminary version (in the "master" branch) and
the non-working new version (in the "syncing" branch) at
https://github.com/ac2ie/gr-ambe3000. I have been searching for a
solution to the AttributeError message, but haven't found anything useful.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio