Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- N2adr-Sdr
- Messages
Search
Re: Default Quisk config file path change
The configuration file is ~/.quisk_conf.py and is invisible. Or do you mean the files quisk_init.json, quisk_settings.json and others? If so, create a configuration file ~/.quisk_conf.py with these lines:
favorites_file_path = "/home/jim/pub/quisk_favorites.txt"
settings_file_path? = "/home/jim/pub/quisk_settings.json"
Of course, change the path. After you create the new path, you can copy the quisk files to the new location. Jim N2ADR |
Re: Virtual Environment
Glad to see I'm not the only one who's confused!
Pipx seems to be what the raspbian foundation people are recommending, but they're very hard to pin down on the subject. I'm afraid I don't know the details of how the virtual environment installers like pipx interact with all the dependencies. This has all become way too complicated and there are far too many fingers tampering with build option settings along the way. I'm just an old school programmer from the days when life was simpler trying to keep up. I did several clean installs on Pi of Bookworm, on both Pi4 b and the Pi 5b I just received using the procedure I listed before and they seem to work for now. I believe this is because the dependencies I install in the first step using APT are system wide and are adequate for quisk's needs. I think that only items from the quisk packaging are being installed in the virtual environment. Unfortunately I don't really know what pipx does and it's yet another thing to track down with no reliable documentation. It can take a very long time to run, sometimes. The Bookworm release also has renoved all the old directory structures and debugging tools with logs being particularly hard to locate. I haven't yet fiigured out how to install from the local debug builds I'm using without breaking something. I'm guessing one has to either completely understand what pipX does with regard to environment variables or build a package and then install it as if it came from a repository like the pipx authors are assuming. I'm of the opinion that once these system wide packages needed for common dependencies get diluted by out-of-repository bug fixes and subsequent installations that Debian doesn't track we're back to the same old dependency hell. One may need to build private copies of each dependency and install them into each virtual environment. I think static packaging or complete sandboxing is the only long term solution and Gnu and other licensing often conflicts with that and require more cooperation from the OS than Debian is currently providing. Trying to fake them this way is doomed. hope this helps (but a lot of it is just opinion)... M |
Re: Virtual Environment
Using pipx seems like a good idea, but I must be missing something. I am trying to run Quisk from the virtual environment VENV created by pipx, but Quisk?complains that module wx is missing. The wx module is also known as wxPython and as?python3-wxgtk4.0.
The wx module is available in the system Python, but the system wx is not available from within the VENV. I could install wx directly into the VENV, but the normal way is to use apt-get and that does not install to the VENV. Or I could install wx from PyPi, but that will try to build wx from source, and that fails unless I install a dozen *-dev packages.? How did you make wx available within the VENV? Jim N2ADR |
Re: Hamlib level AF
Mike Black
If you have this code in quisk_widgets.py ? ? value = int(value + 0.5) ? ? self.SetValue(value) ? ? value = int(value + 0.5) ? ? self.SetValue(int(value)) See if that fixes the problem. Mike W9MDB
On Wednesday, December 13, 2023 at 03:21:52 PM CST, David Jones via groups.io <dgjonesy@...> wrote:
Mike, ?I've verified that the files mentioned in the traceback (/usr/local/lib/python3.10/dist-packages/quisk/quisk.py and /usr/local/lib/python3.10/dist-packages/quisk/quisk_widgets.py) are identical to those in the quisk 4.2.25 source distribution? tarfile so? I don't think an old quisk.py is a problem. Am I the only one having this problem with a HL2 radio ? |
Re: Hamlib level AF
Mike,
?I've verified that the files mentioned in the traceback (/usr/local/lib/python3.10/dist-packages/quisk/quisk.py and /usr/local/lib/python3.10/dist-packages/quisk/quisk_widgets.py) are identical to those in the quisk 4.2.25 source distribution? tarfile so? I don't think an old quisk.py is a problem. Am I the only one having this problem with a HL2 radio ? |
Re: Hamlib level AF
Mike Black
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' |
Hamlib level AF
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' |
Re: Virtual Environment
That worked perfectly, thanks, Mario! Regards, Randall AE8RS On Tue, Dec 12, 2023 at 7:40?AM Mario Vano AE0GL <mvano@...> wrote:
|
Re: Virtual Environment
The new OS, Bookworm , has new policies for python programs. (It also has many other changes). Unfortunately it's the way forward and we have no choice in the matter. It's required for the new Pi 5 to work. (I have one running Quisk here!)
I had good luck using pipX to do the whole install properly. Note that it's not pre-installed... ? sudo apt install pipx
? sudo apt install libasound2-dev python3-dev libpython3-dev \
? ? ? python3-usb python3-setuptools portaudio19-dev \
? ? ? libpulse-dev libgtk-4-dev libgtk-3-dev libgtk2.0-dev \
? ? ? libcurl4-openssl-dev
?
NOTE THAT PIPX DOES NOT REQUIRE SUDO OR ROOT ACCESS
?
pipx install quisk
pipx ensurepath
?(The install quisk command MAY TAKE AROUND AN HOUR) As a Python as a second language speaker, it's still not obvious to me how to do a proper install from source (as I do for some development work I'm running) if you need to modify it before the install - for now I'm just running from the build directory... hope this helps... M |
Virtual Environment
I tried installing Quisk using the online instructions and am getting crabbed at by Python that I need to install it in a virtual environment. Is that the preferred way to install it?
This is a fresh install of Debian Bookworm, now on Testing, but it behaved the same on Stable. Python in 3.11.6. Debian has a packaged version of Quisk, but it's several versions behind which means it's not matching the version installed on the Raspberry Pi I'm trying to attach it to. # sudo -H python3 -m pip install --upgrade quisk error: externally-managed-environment ¡Á This environment is externally managed ¨t©¤&²µ³Ù; To install Python packages system-wide, try apt install ???python3-xyz, where xyz is the package you are trying to ???install. ???? ???If you wish to install a non-Debian-packaged Python package, ???create a virtual environment using python3 -m venv path/to/venv. ???Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make ???sure you have python3-full installed. ???? ???If you wish to install a non-Debian packaged Python application, ???it may be easiest to use pipx install xyz, which will manage a ???virtual environment for you. Make sure you have pipx installed. ???? ???See /usr/share/doc/python3.11/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS dist ribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. Regards, Randall Sanborn AE8RS |
Re: Quisk Version 4.2.27 December 2023
I just ran a test and this seems to work fine. Thanks! Jim N1ADJ On Fri, Dec 8, 2023 at 1:15?PM jimahlstrom <jahlstr@...> wrote:
|
Re: Quisk Version 4.2.26 December 2023
Hi Jim,
All the code is in hermes/quisk_widgets.py.? Does the 0xEE appear in the ATU control window? When it does, the "Spot" button should be pressed and red. Is it?? As your code operates, the codes sent from register REG_ANTENNA_TUNER should appear in the control window, and that is a good start for debugging. Jim N2ADR |
Re: Quisk Version 4.2.26 December 2023
Hi Jim, I just gave this a try. It seems like Quisk never initiates transmit when the IO Board sets the tuner register to 0xEE. So my firmware times out and generates an error because it never sees transmit start. Is there any logging I can capture to help you troubleshoot? Jim N1ADJ On Wed, Dec 6, 2023 at 1:09?PM jimahlstrom <jahlstr@...> wrote:
|
to navigate to use esc to dismiss