LimeSDR Gnu Radio Plug-in Breaks RTL-SDR Gnu Radio Plug-in

#1

Hello, all! I’m running Gnu Radio Companion on both a desktop system and a laptop, both with Linux Mint 19.2. I have several RTL-based SDRs, and after loading the appropriate packages from the repository, I have no problems using them from GRC. HOWEVER, once I load the Limesuite GR-plugin, the RTL-SDRs will no longer work with GRC. I get the following message when I attempt to run a GRC flowgraph (any flow graph) with one of the RTL-SDRs:

Warning: failed to XInitThreads()
Traceback (most recent call last):
File “/home/gary/gnuradio/rtlTest.py”, line 30, in
import osmosdr
File “/usr/lib/python2.7/dist-packages/osmosdr/init.py”, line 26, in
from osmosdr_swig import *
File “/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py”, line 17, in
_osmosdr_swig = swig_import_helper()
File “/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py”, line 16, 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

Done (return code 1)

Here’s what I’ve tried to fix the problem (all unsuccessful):

  • Reloaded the OS, then reloaded only the GRC plug-ins (thought maybe some other program caused the problem)
  • Uninstalled and reinstalled the Osmocom plug-ins from the repository.
  • Uninstalled and reinstalled the osmocom plug-ins from source.
  • Uninstalled both Limesuite and osmocom plug-ins, then reinstalled in different order (osmocom, then Limesuite, Limesuite, then osmocom).

NOTE: Limesuite always works; its just the osmocom that is broken. I’ve left the laptop without Limesuite so that I can still use my RTL-SDRs, but I’d really like to understand and fix this problem.

Any ideas are welcome.

#2

Just to be clear, you mean gr-limesdr? And how have you installed everything?

#3

Just to be clear, you mean gr-limesdr?

Yes.

And how have you installed everything?

I was able to install gr-limesdr with the instructions provided on the Github site using the PPA, specifically these four commands:

sudo add-apt-repository -y ppa:myriadrf/drivers
sudo add-apt-repository -y ppa:myriadrf/gnuradio
sudo apt update
sudo apt install gr-limesdr

The LimeSDR works perfectly in Gnu Radio once I add the plugin, but it appears to break the RTL-SDR / Osmocom plugin in the process.

#4

Hm, not sure why this would be. @Garmus, any ideas?

#5

I wasn’t able to reproduce this problem in either ubuntu 16.04 or 18.04 when installing the gr-limesdr and gr-osmocom packages from source or using the package manager. So the problem you are experiencing is specific to your install and most likely there is something wrong with library linking.

Does the file _osmosdr_swig.so exsit in /usr/lib/python2.7/dist-packages/osmosdr/ ? Can you provide output of ldd -r /usr/lib/python2.7/dist-packages/osmosdr/_osmosdr_swig.so

#6

$ ldd -r /usr/lib/python2.7/dist-packages/osmosdr/_osmosdr_swig.so
ldd: /usr/lib/python2.7/dist-packages/osmosdr/_osmosdr_swig.so: No such file or directory

Strangely, I have a separate system on which I did NOT load the Limesuite. It provided the same answer as above, but my RTL-SDRs work just fine on it.