Friday, November 5, 2021

Re: ImportError: No module named baz_swig

Cinaed,
Thanks for the reply.
librtlsdr-dev was already installed. The other two were not and pulled in some other dependencies
during the install process.
This did not fix my problem though.
I couldn't install gr-baz from the ubuntu repo so followed the build process for gr-baz on github.
I could then get it to run, but with no output.
After further reading, the website recommends a minimum version of 3.8. I note that 3.9 is
available via a PPA so will install that and work through the tutorials (which I didn't find
yesterday). Must have had a "man" look ;-)
Thanks again for your assistance.

Ian

On 6/11/21 6:47 am, Cinaed Simson wrote:
> I'd recommend installing -the following - if you haven't already done so
>
>   librtlsdr-dev
>   libosmosdr-dev
>   libosmocore-dev (not sure)
>
> And I'm just guessing - I don't have gnuradio 3.7 or ubuntu installed.
>
> Also,unless you were able to in install the ubuntu package gr-baz from one of the ubuntu
> repositories - which is unlikely, then download and built  the code from
>
>   https://github.com/balint256/gr-baz
>
> I's an OOT module which doesn't come with gnuradio.
>
> And I would test using the rtl dongle with gnuradio. Create a flowgraph with the "osmocom soure" and
> a "qt gui sink".
>
> -- Cinaed
>
> On 11/5/21 03:40, Ian Bennett wrote:
>> Good Evening,
>>     I am taking my first tentative steps with GNU Radio.
>>     I am using Ubuntu 18.04.6 LTS with a RTL2832U dongle from RTL-SDR.COM. This combination works
>> fine with CubicSDR and rtl_433.
>>     I installed gnuradio-companion from the repo (sudo apt install gnuradio) which gave me version
>> 3.7.11-10.
>>     I found a tutorial that built a FM receiver, so thought that would be a good place to start.
>>     After a few issues building the receiver (solved with google), I finally got to the point
>> where I could execute the flow graph.
>>     Now I get the following in the terminal:
>>
>> Executing: /usr/bin/python -u /data/Amateur_Radio/SDR/GNU-radio/top_block.py
>>
>> Traceback (most recent call last):
>>   File "/data/Amateur_Radio/SDR/GNU-radio/top_block.py", line 35, in <module>
>>     import baz
>>   File "/usr/local/lib/python2.7/dist-packages/baz/__init__.py", line 40, in <module>
>>     from baz_swig import *
>> ImportError: No module named baz_swig
>>
>>     I can see there is "No module named baz_swig" but no amount of googling yielded a solution.
>>     Hoping someone can help.
>>     Regards,
>>
>> Ian
>>
>> .
>
>

No comments:

Post a Comment