How to install python-future and python module serial ?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
supermag
Level 3
Level 3
Posts: 105
Joined: Wed May 07, 2014 4:20 am

How to install python-future and python module serial ?

Post by supermag »

Hello, I have tried :
apt-get install python-gtk python-serial python-libxml2

Those are not present in the repositories for Linux mint 20.

I tried to install:

python-libxml2

python-wxgtk-media3.0


python-wxgtk-webview3.0

python3-serial

+ other packages mentioning python and serial + gtk.


No luck on that.

Installed python3-pip and did :
./chirpw
WARNING: python-future package is not available; chirp.drivers.anytone778uv requires it
WARNING: python-future package is not available; chirp.drivers.ga510 requires it
Traceback (most recent call last):
File "./chirpw", line 24, in <module>
from chirp.drivers import *
File "/home/xxxxxx/Nedlastinger/chirp-daily-20200718/chirp/drivers/idrp.py", line 16, in <module>
import serial
ImportError: No module named serial

Then tried :

pip3 install serial
Collecting serial
Downloading serial-0.0.97-py2.py3-none-any.whl (40 kB)
Requirement already satisfied: iso8601>=0.1.12 in /usr/lib/python3/dist-packages (from serial) (0.1.12)
Requirement already satisfied: pyyaml>=3.13 in /usr/lib/python3/dist-packages (from serial) (5.3.1)
Requirement already satisfied: future>=0.17.1 in /usr/lib/python3/dist-packages (from serial) (0.18.2)
Installing collected packages: serial
Successfully installed serial-0.0.97

Still the same issue with
./chirpw

How do I solve this?

What chirp is :
https://chirp.danplanet.com/projects/chirp/wiki/Home

Note, there seems to also be a issue with the ppa for chirp,
please look at : https://launchpad.net/~dansmith/+archiv ... d/19605001
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
hydrurga
Level 5
Level 5
Posts: 746
Joined: Sun Nov 15, 2015 4:08 pm

Re: How to install python-future and python module serial ?

Post by hydrurga »

Without looking at the rest of your post in detail, Mint 20 is based on Ubuntu 20.04 which has dropped support for Python 2. There has been a cull of Python2 packages from the repos as a result.

So, you should be looking to install packages such as python3-serial, python3-libxml2 (although I note that python-libxml2 is still in the repos), etc. etc. That is however assuming that the CHIRP package that needs those Python dependencies and libraries can actually support Python3 itself. Note also that there is not a python3-gtk package in the repos.

In saying that, I'm surprised that the CHIRP package in the PPA doesn't request those dependencies itself without you having to manually install them.

I get the impression that the CHIRP/Ubuntu 20.04 issue is very fluid and very current. I would recommend that you try the Flatpak in the meantime until the PPA gets sorted out. Also consider raising an issue with CHIRP on their website about the fact that packages they recommend you install no longer exist in the Ubuntu 20.04 repos.
Locked

Return to “Software & Applications”