[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] DVB-T TX - ImportError: No module named _osmosdr_
From: |
CEL |
Subject: |
Re: [Discuss-gnuradio] DVB-T TX - ImportError: No module named _osmosdr_swig |
Date: |
Sat, 17 Feb 2018 16:05:04 +0000 |
Ah, after the apt-get remove part, make sure that you really have no
files belonging to gr-osmosdr installed somewhere on your system: I
smell library clashes there.
On Sat, 2018-02-17 at 16:00 +0000, Müller, Marcus (CEL) wrote:
> Hi Andreas,
>
> ha! I was (pleasantly) suprised to see a argilo's face at the bottom
> of
> that page :)
> Luckily, you need none of the "ppa" steps at the beginning of the
> guide
> for modern Ubuntu: it comes with packages for GNU Radio, gqrx and gr-
> osmosdr.
>
> So, just remove those PPAs, and the packages you've installed through
> them (`apt-get remove gnuradio gnuradio-dev gqrx libboost-all-dev
> libcppunit-dev swig liblog4cpp5-dev`), then `apt-get install gnuradio
> gqrx gr-osmosdr` and jump straight to
>
> git clone https://github.com/BogdanDIA/gr-dvbt.git
>
> That should probably work.
>
> However: Modern GNU Radio already includes gr-dtv, which *probably"
> (I
> actually don't know) contains all the same DVB-T functionality. W6RZ
> (formally known as Ron!) might know more – he's the grandest of gurus
> behind gr-dtv. You might need to go into argilo's examples and
> replace
> a few names, and then can work without gr-dvbt!
>
> Best regards,
> Marcus
>
> On Sat, 2018-02-17 at 16:39 +0100, Andreas Weller wrote:
> > Hi.
> > I'm trying to follow the instructions on
> > http://www.irrational.net/2014/03/02/digital-atv/
> >
> > But trying finally it fails with this error:
> >
> > > address@hidden:~/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
> > > address@hidden:~/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:
> > address@hidden:~/src/sdr-examples$ which gnuradio-config-info
> > /usr/bin/gnuradio-config-info
> >
> >
> > Thank you!
> >
> >
> > Kind regards,
> > Andreas
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
smime.p7s
Description: S/MIME cryptographic signature