|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] AttributeError: 'gr_msg_queue_sptr' |
Date: | Fri, 22 Nov 2013 17:23:02 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
Hi Nada, that's really hard to tell based on the information you gave.I'm currently on the run, so I can't really look at the 3.6 branch and give definite advice, but: a) make sure there is no special c++-to-python gateway class for the things you're trying to extend b) look into the swig files (ending in .i), whether there is some special wrapping for gr_msg_queue c) in your build directory, delete the swig/ subfolder and rebuild; sometimes, swig/make do strange things d) are you really sure you want to do this? From my point of view I'd rather keep the "real" queue structure, and whenever my "consumer" is able to fetch objects from the message queue, it should probably get them all and prioritize itself; but however, there are strong arguments for your approach :)
Greetings, Marcus On 22.11.2013 16:18, Nada ABDELKADER wrote:
Hi all, I have gnuradio 3.6.5 on Ubuntu 12.10.I needed to add some priority to some packets and insert them on the head of the message queue. I defined a new function "insert_head" in gr_msg_queue.c and gr_msg_queue.h and build my gnuradio. I got this error when running:File "/usr/local/lib/python2.7/dist-packages/gnuradio/digital/pkt.py", line 103, in send_pktself._pkt_input.msgq().insert_head(msg) AttributeError: 'gr_msg_queue_sptr' object has no attribute 'insert_head' Did I miss some thing? Any help plz? Nada ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |