-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Radioconda with SDRPlay OOT Module Reports TypeError: set_sample_rate(): incompatible function arguments #54
Comments
Instead of using Unfortunately the latest version Franco |
Franco |
Tonight I took a better look at those error messages, and I am pretty sure you are hitting the same bug discussed in this issue: #50. I fixed the problem in this commit: d1351b1 Unfortunately that commit is in 3.11.0.8, where I have that problem with This said, do double check the Python script generated by GNU Radio Companion from your flowgraph ( Franco |
Franco If I add the boolean parameters to the .grc file and run it from the Radioconda prompt it runs OK. This indicates that the SDRPlay block in Radio Companion is wrong but I installed the SDRPlay module using the same conda package file on both PCs. Could it be that running the conda package does not install the new files but picks up files still present from an earlier installation even though I uninstalled Radioconda and all other GNU Radio versions before doing a clean installation? This would account for the blocks missing the entries for RF Attenuation Mode and Synchronous Updates, which I expect are the missing boolean parameters. The installation on the PC that works was a first time installation of GNU Radio on that PC. Maybe there are a few files that I can copy from the working to the non-working system. Phil |
Phil, If they are, you may want to look at the timestamp of when the bad ones were created, and perhaps that might give you a better idea of what happened. As you have already figured out, you could simply copy those YAML from the computer with the good ones to the other one with the bad ones (you may want to backup the old ones, just in case), regenerate the Python scripts, and I am pretty certain that the error message would go away. Franco |
Franco Phil |
Phil, Franco |
Franco Fixed, although I am still puzzled. It seems that the relevant cache is not within the Radioconda folder so is not deleted when Radioconda is uninstalled. Can you tell me which version of the block I should see: the one with the option for synchronous updates true/false or the one without it. My guess is the latter as the RSP1a probably does not support this feature. Thanks |
Phil, To check the gr-sdrplay3 code and YAML files that were used and installed in say version
git will switch the files there to exactly what they were when the commit tagged with Franco |
Radioconda installation on Windows 11 desktop PC using: radioconda-2024.05.29-Windows-x86_64.exe and no upgrades.
GNURadio version 3.10.10.0, Python 3.11.9.
SDRPlay API 3.15 using: SDRplay_RSP_API-Windows-3.15.exe
SDRPlay OOT module installed using: gnuradio-sdrplay3-3.11.0.2.post2+ga4071c6-py311hf0272db_0.tar.bz2
Simple flowgraph of RSP1A into GUI Frequency Sink.
Flowgraph does not run with following report:
Generating: "C:\Users\phila\Documents\GNURadio\RSP1A_Test_Radioconda.py"
Executing: C:\Users\phila\radioconda\python.exe -u C:\Users\phila\Documents\GNURadio\RSP1A_Test_Radioconda.py
Traceback (most recent call last):
File "C:\Users\phila\Documents\GNURadio\RSP1A_Test_Radioconda.py", line 185, in
main()
File "C:\Users\phila\Documents\GNURadio\RSP1A_Test_Radioconda.py", line 163, in main
tb = top_block_cls()
^^^^^^^^^^^^^^^
File "C:\Users\phila\Documents\GNURadio\RSP1A_Test_Radioconda.py", line 75, in init
self.sdrplay3_rsp1a_1.set_sample_rate(2000000.0)
TypeError: set_sample_rate(): incompatible function arguments. The following argument types are supported:
1. (self: gnuradio.sdrplay3.sdrplay3_python.rsp, rate: float, synchronous: bool) -> float
Invoked with: <gnuradio.sdrplay3.sdrplay3_python.rsp1a object at 0x00000173160932B0>, 2000000.0
rsp1a :info: total samples: [0,0]
Running mamba update --all -y does not help.
On a Windows 11 tablet PC and the same versions of software installed in August 2024 it works OK but the SDRPlay: RSP1A block is different. It has additional parameters:
Gain Options Tab: RF Attenuation mode: dB/LNA state
Other Options Tab: Synchronous Updates
The latestversion of the SDRPlay OOT Module using: gnuradio-sdrplay3-3.11.0.8-py311h702a0ab_0.tar.bz2 results in:
ImportError: DLL load failed while importing sdrplay3_python: The specified procedure could not be found.
as reported in ryanvolz/radioconda#116.
I use GNURadio (not Radioconda) with SDRPlay RSP1A under Linux with no problems but do not want to install dual boot on my tablet PC.
The text was updated successfully, but these errors were encountered: