discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Runtime AttributeError for custom block


From: Vipin Sharma
Subject: [Discuss-gnuradio] Runtime AttributeError for custom block
Date: Sun, 9 Jul 2017 21:31:25 -0700

I have a Python flowgraph which instantiates a few custom blocks (written in C++). The flow graph generate is fine but when I try to run the program through GUI, I get attribute errors as shown below.

After researching a bit, I found out that one potential cause could be missing ITPP libraries as discussed in an old post here: https://lists.gnu.org/archive/html/discuss-gnuradio/2015-02/msg00158.html

I followed through suggested changes (adding following lines in my lib/CMakeList.txt). This doesn't seem to help at all; I don't see any extra libraries being included in the final a1System.so library under build/lib/ after the 'make build'. This likely implies I am still missing a critical step for the custom blocks in C++. Any ideas how I can proceed?

Excerpt from lib/CMakeList.txt file:

list(APPEND a1System_libs
 ${GNURADIO_ALL_LIBRARIES}
 ${ITPP_LIBRARIES}
)
target_link_libraries(gnuradio-a1System ${Boost_LIBRARIES} ${a1System_libs})

Runtime Log from GRC:

File "/home/vipin/a1/grc/a1-rfe+mimo/gr-a1System/build/top_block.py", line 234, in <module>
main() 
File "/home/vipin/a1/grc/a1-rfe+mimo/gr-a1System/build/top_block.py", line 222, in main
tb = top_block_cls()
File "/home/vipin/a1/grc/a1-rfe+mimo/gr-a1System/build/top_block.py", line 164, in __init__
self.a1System_TargetDetector_cf_0 = a1System.TargetDetector_cf(512, 10, 1024, 2, 5, 1, 1, 1, 1)
AttributeError: 'module' object has no attribute 'TargetDetector_cf'

reply via email to

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