Project

General

Profile

Actions

Bug #9955

closed

Failure to operate/install on Ubuntu 22.04

Added by Martin Espinoza almost 2 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/22/2022
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
Platform:
Windows
Debug Log:
I read the instructions above:

Description

The version of chirp which is offered with Ubuntu was not working for me so I thought I'd try downloading it directly, but that hasn't turned out to make anything better. The official install instructions from PPA don't work, because the PPAs don't contain packages for 22.04. The flatpak doesn't work because it complains about a dependency. The source distribution doesn't work because it expects libraries which no longer have installation candidates for python2. I removed snap from my system because it was in my way and have no plans to reinstall it.

drink@alexander:~/Software/chirp-daily-20220703$ ./chirpw
Traceback (most recent call last):
File "./chirpw", line 132, in
from chirp.ui import mainapp
File "/home/drink/Software/chirp-daily-20220703/chirp/ui/mainapp.py", line 26, in
import gtk
ImportError: No module named gtk

I presumed it was supposed to run with python2 because this is what happens when I run it with python3:
drink@alexander:~/Software/chirp-daily-20220703$ ./chirpw
Traceback (most recent call last):
File "/home/drink/Software/chirp-daily-20220703/./chirpw", line 20, in
from chirp import chirp_common
File "/home/drink/Software/chirp-daily-20220703/chirp/chirp_common.py", line 979
except errors.InvalidDataError, e:

SyntaxError: multiple exception types must be parenthesized

Here's the PPA process failing...

drink@alexander:~/Software/chirp-daily-20220703$ sudo apt-get update
[...]
E: The repository 'https://ppa.launchpadcontent.net/dansmith/chirp-snapshots/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://ppa.launchpadcontent.net/nrbrtx/python2-stuff/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
drink@alexander:~/Software/chirp-daily-20220703$ sudo apt-get install chirp-daily python-future
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package chirp-daily
E: Unable to locate package python-future

Here's what happens when I launch the version that comes with Ubuntu:
drink@alexander:~$ chirpw
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/th_uv3r: No module named 'wouxun_common'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/baofeng_uv3r: No module named 'wouxun_common'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/ts850: 'dict' object has no attribute 'iteritems'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/tk760: 'float' object cannot be interpreted as an integer
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/puxing_px888k: can only concatenate list (not "range") to list
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/ft450d: unsupported operand type(s) for +: 'range' and 'range'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/ft2800: No module named 'yaesu_clone'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/tk270: 'float' object cannot be interpreted as an integer
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/th_uv3r25: No module named 'wouxun_common'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/puxing: No module named 'wouxun_common'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/ft90: module 'string' has no attribute 'uppercase'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/ft70: module 'string' has no attribute 'uppercase'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/ap510: unsupported operand type(s) for +: 'dict_items' and 'dict_items'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/leixen: name 'xrange' is not defined
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/wouxun: No module named 'wouxun_common'
Failed to import /usr/lib/python3/dist-packages/chirp/drivers/tk760g: 'float' object cannot be interpreted as an integer

The application window does pop up then, but when I try to download from my radio, the light on it flashes for a while, but then I get this in the terminal:

ERROR: Failed to clone: module 'collections' has no attribute 'Callable'

And then I just go back to the window.

How do I run Chirp on the current version of Ubuntu? Is it possible without snap?

Actions #1

Updated by Martin Espinoza almost 2 years ago

oh yeah, forgot this one

drink@alexander:~/Downloads$ sudo flatpak install chirp-daily-20220703.flatpak
error: The application com.danplanet.chirp/x86_64/master requires the runtime org.freedesktop.Platform/x86_64/21.08 which was not found

Actions #2

Updated by Tony Fuller almost 2 years ago

Hi Martin,

Do you have the flathub repository added? You can ensure it's added using the following below. Then it should prompt you to download the freedesktop runtime when you install the CHIRP flatpak file.

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Alternatively, if you would like automatic updates, you can open Ubuntu Software and search for //rob Hill@ and install the snap named @chirp-snap@

It looks like Dan's PPA doesn't build for @jammy@ so I've updated the wiki to mention the PPA is only good for Ubuntu 20.04 and below.

Actions #3

Updated by Martin Espinoza almost 2 years ago

I added the flathub repo, which I did not have added, and attempted to use the flatpak version. It did launch now, but it didn't work either. Here's the results when I tried to download from my radio:

drink@alexander:~$ flatpak run com.danplanet.chirp
Gtk-Message: 13:13:54.840: Failed to load module "atk-bridge"
WARNING: Icon not found
Traceback (most recent call last):
File "/app/lib/python2.7/site-packages/chirp/ui/mainapp.py", line 1817, in mh
self.do_download(*args)
File "/app/lib/python2.7/site-packages/chirp/ui/mainapp.py", line 765, in do_download
except serial.SerialException, e:
AttributeError: 'module' object has no attribute 'SerialException'

As I understand it atk-bridge has to do with accessibility and as such isn't relevant here. Looking in the flatpak files I can see that pyserial is included, so I'm not sure what's going on here, but the flatpak isn't operating either. I do have rw access to the device, but that shouldn't cause this error anyway. I can use chirp in windows with USB passthrough to vmware, but that is a bit cumbersome.

Actions #4

Updated by Martin Espinoza almost 2 years ago

The windows version does seem to work in Wine if you install MS Core Fonts (else no fonts display.) I installed it in PlaysOnLinux in a 32 bit wineprefix configured as Windows 7.

Actions #5

Updated by Martin Espinoza almost 2 years ago

Correction, mostly work. It doesn't seem to be able to write a file. Have not debugged. It's capable of reading from and writing to my radio, though.

Actions #6

Updated by Tony Fuller 8 months ago

  • Status changed from New to Closed

Dan has since released a new version of CHIRP which is compatible with python3 and does not need these workarounds. Please try CHIRP-next and open a new ticket if you have any problems!

Tony

Actions

Also available in: Atom PDF