Project

General

Profile

Actions

Bug #8571

closed

Linux support is completely broken. No option can get it working.

Added by Gerben Maassen almost 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/21/2020
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
FlatPak
Platform:
Linux
Debug Log:
I read the instructions above:

Description

Cannot install with flatpak.

error: The application com.danplanet.chirp/x86_64/master requires the runtime org.freedesktop.Platform/x86_64/19.08 which was not found

No idea what this means or how to fix it.

Cannot run from source. Error:

$ python chirpw
Traceback (most recent call last):
File "chirpw", line 20, in
from chirp import chirp_common
File "/home/erin/Downloads/chirp-daily-20201221/chirp/chirp_common.py", line 979
except errors.InvalidDataError, e:
^
SyntaxError: invalid syntax

Can not install from ppa:dansmith/chirp-snapshots
Error: package does not have a candidate for installation.
(on install chirp. Install 'chirp-daily' can simply not be found, nor can 'chirp-snapshot').

Speculation on problem:
I don't know but it looks like and I could be totally wrong but it feels like the code is pushed to an automated builder and has not been tested on a fresh Linux install for quite a while. Perhaps it is still tested on a linux installation, but maybe that installation has some prerequisites installed which still make it work.


Files

flatpak-issue-2020-12-22_3-26-47.jpg (201 KB) flatpak-issue-2020-12-22_3-26-47.jpg Rudolph Gutzerhagen, 12/22/2020 02:24 AM

Related issues 1 (0 open1 closed)

Related to Bug #9389: Freedesktop SDK 19.08 runtime is no longer supportedClosed09/20/2021

Actions
Actions #1

Updated by Rudolph Gutzerhagen almost 4 years ago

Oh my, where to begin.
o reading the guidelines on raising an issue ticket would help. There is much noise from same or similar issues already raised. The users and developers forums might be a better place to post. Reading through existing issues and forums might provide the right insight too. My experience is to scan for info and extract and marry up the info. The various bits of text are not dated, nor marked as historical, etc. and there are many unstated assumptions behind these bits of info.

o RE: Cannot install with flatpak:
This is not a chirp issue. see attached image.

o RE: Cannot run from source:
nix nix nix on the python 3 over the default (python2 code) branch.
Use python 2, and sort out all the package dependencies.
For python 3 switch to py3 branch
and try the gtk code with python chirpw ,
or try the wxpython code with python chirpwx.py .
BOTH are incomplete.

o RE: Cannot install from ppa:dansmith/chirp-snapshots:
I suspect you have found and referenced a
"historical" document in the wiki. It's out of date and I suspect that
approach is not actively maintained. It seems some people have had some
success, but again, it requires some maintenance and sorting out
dependencies. Scan for ppa: and view the issues and wikis that can
lead you to some information.

o RE: Speculation on problem:

Yes, c'mon down, it's time to play that evil parlour-game
Guess-Who's-Responsible .

Actions #2

Updated by Don Brett almost 4 years ago

I had the same error while attempting to install on a 32-bit instance of Ubuntu-Mate (18.04). It installed and runs on 64-bit version; actually it was Ubuntu-mate 20.04. I also have Chirp installed on a persistent USB with Ubuntu-Mint (19.3), using these instructions:

https://oneguyoneblog.com/2018/01/31/chirp-pofung-baofeng-uv-5r-linux-windows/

sudo apt-add-repository ppa:dansmith/chirp-snapshots
sudo apt-get update
sudo apt-get install chirp-daily

, but I think it installed an earlier version.

Actions #3

Updated by Don Brett almost 4 years ago

I should have mentioned that the persistent USB was also 32-bit (Linux Mint 19.3 "Tricia" - Cinnamon (32-bit)).

https://linuxmint.com/edition.php?id=273

Actions #4

Updated by Don Brett almost 4 years ago

Using a test box, I did a lot of experimenting and was able to get around the error (mostly). Did the following:

sudo apt-add-repository ppa:dansmith/chirp-snapshots
sudo apt-get update
sudo apt-get install chirp-daily

sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install org.freedesktop.Platform/x86_64/19.08

Downloaded the latest Chirp from danplanet.com

cd /home/don/Downloads
flatpak install chirp-daily-20201221.flatpak

Notes of interest:
1-Installing with flatpak works much better on a 64-bit box than a 32-bit box.
2-On a 32-bit box, installing with flatpak directly (not using apt-get) , sometimes the menu launcher did not appear; if it did appear, it did not work (clicking on it didn't do anything). Running the apt-get commands solved the problem.
3-Installing x86_64/19.08 had an error with "org.freedesktop.Platform.openh264" that can be ignored. Apparently, it's a known flatpak issue that's been solved in the 64-bit environment, but not on 32-bit.
4-I thought I was installing the latest version of Chirp (20201221), but "About" reports it's version as "20201121". When launching, it recommends that I update the program. I'll mention this on the mailing list.

Actions #5

Updated by Bernhard Hailer almost 4 years ago

  • Status changed from New to Feedback

I assume we can close this ticket? Thanks.

Actions #6

Updated by Don Brett almost 4 years ago

OK with me, with some effort, I was able to successfully install it. Not sure about others.

Actions #7

Updated by Bernhard Hailer almost 4 years ago

  • Status changed from Feedback to Closed

Ok, let's close this for now. Please let us know if Don's instructions above don't work for you.

Actions #8

Updated by Oliver Schonrock over 3 years ago

Looks like the underlying cause here is that PyGtk is no longer supported under many debian/ubuntu flavours because it is python2 only and GTK2 only. Ubuntu repos have pulled support for pyton2 since 20.04LTS which came out April 2020.

That is the 800lbs gorilla moving away... so really it might be time for this:

https://pygobject.readthedocs.io/en/latest/guide/porting.html

ie, migrating the code to the new pygobject which is GTK3.

It doesn't look too hard based on that page with some script based auto-migration to do the tedious lifting

I would be happy to help if you are manpower constrained. Let me know.

Actions #9

Updated by Bernhard Hailer almost 2 years ago

  • Related to Bug #9389: Freedesktop SDK 19.08 runtime is no longer supported added
Actions #10

Updated by Bernhard Hailer almost 2 years ago

  • Model affected changed from (All models) to FlatPak

See #9389.

Actions

Also available in: Atom PDF