Saturday, February 17, 2018

Re: [Discuss-gnuradio] DVB-T TX - ImportError: No module named _osmosdr_swig

Hi Andreas,

to me this sounds like you have not installed osmosdr and or or swig. Forgetting to execute

sudo ldconfig

is also a well-known pitfall. You might want to take a look at

https://packages.ubuntu.com/search?keywords=Gr-osmosdr&searchon=sourcenames

and

https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=Swig&searchon=sourcenames

Best regards,

Maximilian Stiefel

Lördag den 17 februari 2018 skrev Andreas Weller:
> Hi.
> I'm trying to follow the instructions
> onhttp://www.irrational.net/2014/03/02/digital-atv/
>
> But trying finally it fails with this error:
>
>
> andreas@notebook:~/src/sdr-examples$ python2 dvbt-hackrf.py
> Traceback (most recent call last):
> File "dvbt-hackrf.py", line 25, in <module>
> import osmosdr
> File "*/usr/lib/python2.7/dist-packages/osmosdr/*__init__.py", line
> 26, in <module>
> from osmosdr_swig import *
> File "/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py",
> line 21, in <module>
> _osmosdr_swig = swig_import_helper()
> File "/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py",
> line 20, in swig_import_helper
> return importlib.import_module('_osmosdr_swig')
> File "*/usr/lib/python2.7/importlib/*__init__.py", line 37, in import_module
> __import__(name)
> ImportError: No module named _osmosdr_swig
> andreas@notebook:~/src/sdr-examples$
>
> Any idea how to solve this issue?
> OS: Ubuntu 17.10
> Gnuradio: installed from packet manager - 3.7.10
>
> I previously had a self compiled Gnuradio but I removed it:
> andreas@notebook:~/src/sdr-examples$ which gnuradio-config-info
> /usr/bin/gnuradio-config-info
>
>
> Thank you!
>
>
> Kind regards,
> Andreas
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment