discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Problems while writing Python test for X++ block


From: Derek Kozel
Subject: Re: Problems while writing Python test for X++ block
Date: Wed, 8 Dec 2021 17:06:30 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2

Hi Nikoloz and Jeff,

The tutorial you've linked to has not been fully updated for GNU Radio 3.9 so still talks about SWIG as you discovered. Please use this tutorial instead as it has been updated. It also covers writing a block in C++.
https://wiki.gnuradio.org/index.php/OutOfTreeModules

We have two short contract jobs listed currently as an experiment of paying for improvements to the documentation and tutorials. We're also pursuing a larger grant to change how the documentation is presented so it is easier to get documentation correct for your exact GNU Radio version.
https://jobs.numfocus.org/

Regards,
Derek

On 12/6/2021 11:19 PM, Jeff Long wrote:
There is old code in your module, either left over from previous work, or generated by an older version of GNU Radio that is still on your system. If this is just tutorial code, delete the whole gr-tutorial directory, make sure there is no second (v3.8) installation on your machine, and give it another try. Be sure that there is only one version of GNU Radio on your system. It takes days to figure out some of these problems if there are multiple versions.

On Mon, Dec 6, 2021 at 5:47 PM Nikoloz Glonti <ng91@glonti.com> wrote:
Hello everybody!

I'm writing this message once again, probably previous one never reached
the mailserver.
I'm entercounting problems when trying to make tests of my C++ block -
this one from tutorial
https://wiki.gnuradio.org/index.php/Guided_Tutorial_GNU_Radio_in_C%2B%2B .
How can i import my block to python test code(in tutorial there is
"import tutorial_swig" as tutorial, but in gnuradio 3.9 there is no
longer swig)?

Traceback (most recent call last):
   File
"/niko1/Szkicowniki/gnuradio-bloczki/gr-tutorial/python/qa_my_qpsk_demod_cb.py",
line 3, in <module>
     import tutorial_swig as tutorial
ModuleNotFoundError: No module named 'tutorial_swig'
<end of output>
Test time =   0.23 sec


Thanks in advance!

Niko




reply via email to

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