SDRPlay Independent Community Forum › Forums › General › Problem – sdrplay with GNU radio 3.10.1 installed via Ubuntu 22.04
- This topic has 3 replies, 2 voices, and was last updated by .
-
AuthorPosts
-
February 17, 2023 at 7:22 am #2204RabbitEarsParticipant
I can get my RSP2 working with just the API, soapysdr and soapysdrplay3 writing simple python code but cannot get the soapy blocks or the gr-sdrplay block running. I haven’t tried the osmocon block as the problem appears to be common across blocks.
At this point not sure where I should be seeking help (ubuntu soapy soapysdrplay or gnuradio or gr-sdrplay3) Hoping someone here can advise what decency is version mismatched.
Generate and run messages using sdrplay3 block which I believe is the block installed from gr-sdrplay3-3.10.0.2 install
######################################################################################################################
from gnuradio import sdrplay3
File “/usr/local/lib/python3.10/dist-packages/gnuradio/sdrplay3/__init__.py”, line 28, in <module>
from .sdrplay3_python import *
ImportError: libgnuradio-sdrplay3.so.3.10.3: cannot open shared object file: No such file or directoryGenerate and run messages using soapy sdrplay
######################################################################################################################
tb = top_block_cls()
File “/home/rabbit/Dev/GRC Projects/first.py”, line 88, in __init__
self.soapy_sdrplay_source_0 = soapy.source(dev, “fc32″, 1, ”,
RuntimeError: SoapySDR::Device::make() no match>>> Done (return code 1)
Generate and run messages using soapy Deprecated block
######################################################################################################################
File “/home/rabbit/Dev/GRC Projects/first.py”, line 101, in __init__
self.soapy_source_0 = soapy.source(dev, “fc32”, 1, dev_args,
RuntimeError: SoapySDR::Device::make() no match>>> Done (return code 1)
Configuration
##############################################################################
Ubuntu 22.04
Python Version 3.10.6The following were loaded using scripts from SDRPlay website.
SDRPLAY API Version 3.07
SoapySDR Version 0.8.1
SoapySDRPlay3 Version 0.4.1This was loaded as an apt-get
GNU Radio Version 3.10.1.1 (Python 3.10.6)This was loaded as a tartball download from git as clonable version only gnuradion V3.9 compatable. Ubuntu 22.04 installs V 3.10.1.1
gr-sdrplay3 Version 3.10.0.2
############################################################################What works, what doesn’t
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
I can control and stream RSP2 using API soapysdr & SoapySDRPlay3. Without GNU Radio
Neither the gr-sdrplay3 nor the soapy deprecated or RSP2 source blocks work
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$SoapySDRUtil –probe=driver=sdrplay
######################################################
## Soapy SDR — the SDR abstraction library ##
######################################################Probe device driver=sdrplay
[INFO] devIdx: 0
[INFO] SerNo: 1701043700
[INFO] hwVer: 2
[INFO] rspDuoMode: 0
[INFO] tuner: 1
[INFO] rspDuoSampleFreq: 0.000000—————————————————-
— Device identification
—————————————————-
driver=SDRplay
hardware=RSP2
sdrplay_api_api_version=3.070000
sdrplay_api_hw_version=2—————————————————-
— Peripheral summary
—————————————————-
Channels: 1 Rx, 0 Tx
Timestamps: NO
Other Settings:
* RF Gain Select – RF Gain Select
[key=rfgain_sel, default=4, type=string, options=(0, 1, 2, 3, 4, 5, 6, 7, 8)]
* IQ Correction – IQ Correction Control
[key=iqcorr_ctrl, default=true, type=bool]
* AGC Setpoint – AGC Setpoint (dBfs)
[key=agc_setpoint, default=-30, type=int, range=[-60, 0]]
* ExtRef Enable – External Reference Control
[key=extref_ctrl, default=true, type=bool]
* BiasT Enable – BiasT Control
[key=biasT_ctrl, default=true, type=bool]
* RfNotch Enable – RF Notch Filter Control
[key=rfnotch_ctrl, default=true, type=bool]—————————————————-
— RX Channel 0
—————————————————-
Full-duplex: NO
Supports AGC: YES
Stream formats: CS16, CF32
Native format: CS16 [full-scale=32767]
Antennas: Antenna A, Antenna B, Hi-Z
Corrections: DC removal
Full gain range: [0, 47] dB
IFGR gain range: [20, 59] dB
RFGR gain range: [0, 8] dB
Full freq range: [0.001, 2000] MHz
RF freq range: [0.001, 2000] MHz
CORR freq range: MHz
Sample rates: 0.0625, 0.096, 0.125, 0.192, 0.25, …, 6, 7, 8, 9, 10 MSps
Filter bandwidths: 0.2, 0.3, 0.6, 1.536, 5, 6, 7, 8 MHzCompile and run messages using sdrplay3 block
from gnuradio import sdrplay3
File “/usr/local/lib/python3.10/dist-packages/gnuradio/sdrplay3/__init__.py”, line 28, in <module>
from .sdrplay3_python import *
ImportError: libgnuradio-sdrplay3.so.3.10.3: cannot open shared object file: No such file or directory>>> Done (return code 1)
February 20, 2023 at 6:35 am #2205RabbitEarsParticipantHoping someone can assist with where the problem lies. I’m assuming its a mismatch of version dependencies. Either a filename has changed or its location. If someone cleverer than I can try this and advise where I should be posting the problem. (ubuntu, sdrplay or gnuradio.) I have looked at the sdrplay scripts and they are cloning latest git repositories.
From a clean install 19/2/2023
Ubuntu 22.04
1.installAPI.sh
2.buildsoapy.sh
sudo apt-get install gnuradioI haven’t installed gr-sdrplay3 as this is already failing here.
using simple grc file with soapy sdrplay source block and qt-gui fft gives the following
************************************************************************************************************
<<< Welcome to GNU Radio Companion 3.10.1.1 >>>
Block paths:
/usr/share/gnuradio/grc/blocksLoading: “/home/rabbit2/Dev/GRC/test.grc”
>>> DoneGenerating: ‘/home/rabbit2/Dev/GRC/test.py’
Executing: /usr/bin/python3 -u /home/rabbit2/Dev/GRC/test.py
Warning: failed to XInitThreads()
Traceback (most recent call last):
File “/home/rabbit2/Dev/GRC/test.py”, line 194, in <module>
main()
File “/home/rabbit2/Dev/GRC/test.py”, line 172, in main
tb = top_block_cls()
File “/home/rabbit2/Dev/GRC/test.py”, line 87, in __init__
self.soapy_sdrplay_source_0 = soapy.source(dev, “fc32″, 1, ”,
RuntimeError: SoapySDR::Device::make() no matchFebruary 22, 2023 at 2:41 am #2206RabbitEarsParticipantok I have solved the issue with gr-sdrplay3 OOT
It installs these files
/usr/local/lib/x86_64-linux-gnu/libgnuradio-sdrplay3.so.3.10.3.0
/usr/local/lib/x86_64-linux-gnu/libgnuradio-sdrplay3.so.3.10.3
/usr/local/lib/x86_64-linux-gnu/libgnuradio-sdrplay3.sobut they needed to be moved from the /usr/local path above and put under the /usr/lib path as below.
/usr/lib/x86_64-linux-gnu/libgnuradio-sdrplay3.so.3.10.3.0
/usr/lib/x86_64-linux-gnu/libgnuradio-sdrplay3.so.3.10.3
/usr/lib/x86_64-linux-gnu/libgnuradio-sdrplay3.soFixedf and closed. I’ll live without the soapy sdrplay sources as they are not as encompassing as the gr=sdrplay3 OOT module
Hope this helps anyone else trying to load gnuradio and sdrplay under Ubuntu 22.04.02
March 13, 2024 at 3:46 pm #2307acadianeParticipantHello,
I have the same configuration than you so I also install gr-sdrplay3 OOT, but now I have this error :
File “/usr/local/lib/python3.10/dist-packages/gnuradio/sdrplay3/__init__.py”, line 24, in <module>
from .sdrplay3_python import *
ImportError: libgnuradio-sdrplay3.so.3.11.0git: cannot open shared object file: No such file or directoryI move the libgnuradio-sdrplay3.so.3.11.0git file to /usr/local/lib/python3.10/dist-packages/gnuradio/sdrplay3/, but the problem remains the same.
Do you have some advice ?
-
AuthorPosts
- You must be logged in to reply to this topic.