LimeSdrMini2.0 and GnuRadio installation

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

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 -

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

will show if there is more than one version installed.

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…

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

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