Double-check the SetLevel function in quisk.py. You can see below the "AF" parameter expects a float. Maybe you have an old quisk.py hanging around?
? def SetLevel(self): ? ? name, value = self.GetNameValue() ? ? if name == '?': # send back supported parameters ? ? ? self.Reply('? Value', 'AGC AF', 0) ? ? elif name == 'AGC': ? ? ? try: ? ? ? ? value = int(value) ? ? ? except: ? ? ? ? self.ErrParam() ? ? ? else: ? ? ? ? self.Reply(0) ? ? ? ? if value: ? ? ? ? ? self.app.BtnAGC.SetValue(1, True) ? ? ? ? else: ? ? ? ? ? self.app.BtnAGC.SetValue(0, True) ? ? elif name == 'AF': ? ? ? try: ? ? ? ? value = float(value) ? ? ? except: ? ? ? ? self.ErrParam() ? ? ? else: ? ? ? ? self.Reply(0) ? ? ? ? v = 1000.0 * math.log10(49.0 * value + 1) / math.log10(50) ? ? ? ? self.app.sliderVol.SetValue(v) ? ? ? ? self.app.ChangeVolume() ? ? else: ? ? ? self.ErrParam()
On Wednesday, December 13, 2023 at 12:45:14 PM CST, David Jones via groups.io <dgjonesy@...> wrote:
Hello,
I'm testing quisk hamlib control and have run into an issue. Not sure I'm do this correctly :
rigctl -m 2 -r localhost:4575
Rig command: _ Info: Quisk version 4.2.25
Rig command: l Level: AF Level Value: 0.123900
Rig command: L Level: AF Level Value: 0.5
Rig command:
When trying the L command for AF I get the following error :
Traceback (most recent call last): ? File "/usr/lib/python3/dist-packages/wx/core.py", line 3282, in <lambda> ??? lambda event: event.callable(*event.args, **event.kw) ) ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk.py", line 6479, in OnReadSound ??? self.HamlibPoll() ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk.py", line 6254, in HamlibPoll ??? if not client.Process():??? ??? # False return indicates a closed connection; remove the handler for this client ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk.py", line 970, in Process ??? self.Handlers.get(self.command, self.UnImplemented)() ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk.py", line 1189, in SetLevel ??? self.app.sliderVol.SetValue(v) ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk_widgets.py", line 360, in SetValue ??? self.slider.SetValue(value) TypeError: Slider.SetValue(): argument 1 has unexpected type 'float' Traceback (most recent call last): ? File "/usr/lib/python3/dist-packages/wx/core.py", line 3282, in <lambda> ??? lambda event: event.callable(*event.args, **event.kw) ) ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk.py", line 6479, in OnReadSound ??? self.HamlibPoll() ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk.py", line 6254, in HamlibPoll ??? if not client.Process():??? ??? # False return indicates a closed connection; remove the handler for this client ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk.py", line 970, in Process ??? self.Handlers.get(self.command, self.UnImplemented)() ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk.py", line 1189, in SetLevel ??? self.app.sliderVol.SetValue(v) ? File "/usr/local/lib/python3.10/dist-packages/quisk/quisk_widgets.py", line 360, in SetValue ??? self.slider.SetValue(value) TypeError: Slider.SetValue(): argument 1 has unexpected type 'float'
|