Re: [chirp_users] Upgrading CHIRP on Ubuntu 23.04?

Removing the old package and installing the new one worked, but there should be a more "efficient" method...
This worked: jon@jon-notebook:~/Downloads$ pipx list venvs are in /home/jon/.local/pipx/venvs apps are exposed on your $PATH at /home/jon/.local/bin package chirp 20230531, installed using Python 3.11.2 - chirp - chirpc jon@jon-notebook:~/Downloads$ pipx uninstall-all uninstalled chirp! ✨ 🌟 ✨ jon@jon-notebook:~/Downloads$ pipx install --system-site-packages ./chirp-20230601-py3-none-any.whl installed package chirp 20230601, installed using Python 3.11.2 These apps are now globally available - chirp - chirpc done! ✨ 🌟 ✨
Any way to upgrade on a flagged system like Ubuntu 23.04 in the future without removing the old one first?
Jon Gauthier - KB1HTW

Jon,
From: Download - CHIRP (danplanet.com) https://chirp.danplanet.com/projects/chirp/wiki/Download https://chirp.danplanet.com/projects/chirp/wiki/Download
*Upgrading*: You do *NOT *need to uninstall an existing version of CHIRP before installing a newer one. Just install the new one and it will replace the existing copy! However, *be sure to quit CHIRP before installing the new version!*
*The CHIRP team recommends CHIRP-next unless you experience problems with your radio*. If you do, please see How_To_Report_Issues https://chirp.danplanet.com/projects/chirp/wiki/How_To_Report_Issues. 73 David N1EA
On Thu, Jun 1, 2023 at 4:03 PM Jon Gauthier jon@sailbeausoleil.com wrote:

Thanks for the response, David.
But the instructions as written, do not work for Ubuntu 23.04 (Lunar Lobster). Now, I do realize that 23.04 is not an LTS (long-term-support) version of Ubuntu, so it may have its quirks.
But the upgrade instructions, as written, do not work:
"Once chirp is properly installed, upgrades to newer versions are done with two simple steps:
1. Download the newer .tar.gz file. 2. Run pip install --upgrade ./chirp-<version>.whl (use pipx if you used it above)
First of all, they tell you to download the .tar.gz file instead of the preferred .whl file.
Secondly, pipx does not have a --upgrade option to the "install" verb. Instead, it uses the verb "upgrade". But as I noted in my initial post, when I tried:
"pipx upgrade ./chirp-20230601-py3-none-any.whl"
it responded: "'chirp' already seems to be installed. Not modifying existing installation in '/home/jon/.local/pipx/venvs/chirp'. Pass '--force' to force installation."
I tried the --force option which "seemed" to install chirp successfully, but chirp would not load. The only thing that worked was to explicitly uninstall as I noted in the thread using pipx, then did a fresh install with pipx of the new version.
It may work fine on an LTS version like Ubuntu 22.04 using pip, but with 23.04 using pipx, I had to uninstall the old version first.
73 Jon KB1HTW

It's not just that, it's that as of 23.04, the way python applications are (or can be) installed in a distro-managed python environment has changed fundamentally. This is not something we control nor chose. Since 23.04 (and Debian 11, etc) is the first distro where this new restriction has hit the masses, you can expect some bumps along the way. Feel free to submit your feedback to the distros and python community who have chosen this path for you.
The command as provided is correct. Since pipx aims (seemingly) to be a stand-in for pip itself, the parenthetical *should* be correct, but clearly isn't.
First of all, they tell you to download the .tar.gz file instead of the preferred .whl file.
...which is fine, you can use either.
Sounds like a bug (or quirk) in pipx, but I guess this is how it has to be for the moment. I've updated the instructions. David was echoing the general instructions on the download page that chirp itself has no such requirement, which is correct.
I hope you'll understand that the documenting ever-moving target and spectrum of how python applications are installed on Linux is a challenge. Also, Linux users represent less than two percent of CHIRP's userbase, which means issues with the newest one-month-old distro that has radically changed the landscape should be expected until a critical mass (like yourself) have bumped into them.
--Dan
participants (3)
-
D.J.J. Ring, Jr.
-
Dan Smith
-
Jon Gauthier