# LimeSdrMini2.0 and GnuRadio installation

**URL:** <https://discourse.myriadrf.org/t/limesdrmini2-0-and-gnuradio-installation/7825>\
**Category:** LimeSDR\
**Created:** [12 February 2023 15:18 UTC](https://discourse.myriadrf.org/t/limesdrmini2-0-and-gnuradio-installation/7825 "2023-02-12T15:18:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crania](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@Crania](https://discourse.myriadrf.org/u/Crania)\
**Post date:** [12 February 2023 15:18 UTC](https://discourse.myriadrf.org/t/limesdrmini2-0-and-gnuradio-installation/7825/1 "2023-02-12T15:18:10Z")

</div>

System: Ubuntu 22\_10 (kinetic)  
Python: python3/kinetic,now 3.10.6-1 amd64  
Driver: gr-limesdr/kinetic, 3.0.1-4build1 amd64  
LimeSuite: limesuite/kinetic 20.10.0+dfsg-6 amd64  
GnuRadio: gnuradio/kinetic,now 3.10.3.0-4 amd64  
Radio: LimeSdrMini 2.0  
Other: Many some other packages

Hello,

there is a hard way, to get the LimeSdrMini2.0 running with GnuRadio and Ubuntu.  
I’m trying this now some days with no success.  
After I’m running into some installation mistake/fault/errors  
the installation seems to be correct.

In GnuRadio I have only a smal flowgraph with  
_LimeSuiteSource(RX)_ and _QT GUI Frequency sink_ blocks.

But with this, I get a runtime errror:  
Traceback (most recent call last):  
File “/home/user/TestLimeSdrMini2\_0.py”, line 37, in   
import limesdr  
File “/usr/lib/python3/dist-packages/limesdr/ **init**.py”, line 18, in   
from .limesdr\_python import \*  
ImportError: generic\_type: type “sink” referenced unknown base type “gr::block”

> > > Done (return code 1)

I’m not sure, if this is a LimeDriver, Python, GnuRadio or installation problem…  
(LimeUtil, LimeSuiteGUI and LimeQuickTest work well)

Any hints are welcome  
Karlheinz

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [12 February 2023 17:14 UTC](https://discourse.myriadrf.org/t/limesdrmini2-0-and-gnuradio-installation/7825/2 "2023-02-12T17:14:58Z")

</div>

This type of error usually means that you have more than one version of python installed and that the version being called cannot find what is installed under a different version -

```auto
sudo find / -name "*dist-packages*"

```

will show if there is more than one version installed.

---

<div class="post-metadata">

**Author:** ![Crania](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@Crania](https://discourse.myriadrf.org/u/Crania)\
**Post date:** [14 February 2023 10:24 UTC](https://discourse.myriadrf.org/t/limesdrmini2-0-and-gnuradio-installation/7825/3 "2023-02-14T10:24:45Z")

</div>

System: Ubuntu 22\_04 (jammy)  
Python: python3/jammy-updates,now 3.10.6-1~22.04 amd64 [installed,automatic]  
Driver: gr-limesdr/jammy,now 3.0.1-3build1 amd64 [installed]  
LimeSuite: limesuite/jammy 22.09.1-myriadrf1~ubuntu22.04 amd64  
GnuRadio: gnuradio-dev/jammy,now 3.10.1.1-2 amd64 [installed,automatic]  
gnuradio/jammy,now 3.10.1.1-2 amd64 [installed]  
Radio: LimeSdrMini 2.0 [LimeSDR Mini, media=USB 3.0,  
module=FT601, addr=24607:1027, serial=1D90F5631A4C83]  
Other: Some other packages

Hello,  
there was only Python3.10 installed.  
Therefore I have setup my system completly new with the above listet modules.  
Now I can start GnuRadio without errors, but it produces no signal:

## Generating: ‘/home/user/MyTest.py’ Executing: /usr/bin/python3 -u /home/user/MyTest.py Warning: Ignoring XDG\_SESSION\_TYPE=wayland on Gnome. Use QT\_QPA\_PLATFORM=wayland to run on Wayland anyway.

LimeSuite Source (RX) info  
##################  
Connecting to device  
##################  
LimeSuite version: 20.10.0+dfsg-5  
gr-limesdr version: 2.2.7  
##################  
Device list:  
Nr.:0 device:LimeSDR Mini, media=USB 3.0, module=FT601, addr=24607:1027, serial=1D90F5631A4C83  
##################  
Reference clock 40,00 MHz  
Using device: UNKNOWN(1D90F5631A4C83) GW: 2.1 FW: 8  
##################  
INFO: device\_handler::enable\_channels(): SISO CH0 set for device number 0.  
SISO CH0 set for device number 0.  
INFO: device\_handler::set\_samp\_rate(): set sampling rate: 10 MS/s.  
INFO: device\_handler::set\_oversampling(): Oversampling set to: 1  
INFO: device\_handler::set\_rf\_freq(): RF frequency set [RX]: 100 MHz.  
INFO: device\_handler::set\_analog\_filter(): RX LPF configured  
INFO: device\_handler::set\_digital\_filter(): digital filter CH0 [RX]: 5 MHz.  
INFO: device\_handler::set\_gain(): set gain [RX] CH0: 30 dB.  
INFO: device\_handler::set\_antenna(): CH0 antenna set [RX]: LNAW.  
INFO: device\_handler::calibrate(): Rx calibration finished  
INFO: device\_handler::set\_nco(): NCO [RX] CH0: 10 MHz (0 deg.)(UPCONVERT).  
INFO: device\_handler::set\_tcxo\_dac(): VCTCXO DAC value set to: 125  
INFO: source\_impl::init\_stream(): source channel 0 (device nr. 0) stream setup done.  
##################  
INFO: device\_handler::close\_device(): Disconnected from device number 0.  
##################

> > > Done

But there is still a discrepancy between the gr-limesdr drivers:  
Installed 3.0.1-3, used 2.2.7.  
I think, this is a mistake in the installation procedure/sequence.  
I will further look at that…

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [14 February 2023 16:45 UTC](https://discourse.myriadrf.org/t/limesdrmini2-0-and-gnuradio-installation/7825/4 "2023-02-14T16:45:03Z")

</div>

> [@Crania](#):
>
> gr-limesdr

If you do the build from source, It sometimes helps to force the install location with cmake -

```auto
git clone https://github.com/myriadrf/gr-limesdr.git
cd gr-limesdr
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
sudo ldconfig

```
