How to upgrade Python version 3.8 to newer version?

Moderators: 666philb, Forum moderators

Locked
User avatar
Governor
Posts: 1061
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 298 times
Been thanked: 50 times

How to upgrade Python version 3.8 to newer version?

Post by Governor »

fossapup64 9.5
python --version
Python 3.8.2
yt-dlp --version
2024.10.22

When I try to update (yt-dlp -U), I get this:
Deprecated Feature: Support for Python version 3.8 has been deprecated. Please update to Python 3.9 or above

It looks like yt-dlp requires a newer version of python in order to update itself.
I searched for python in the PPM and got nothing.

Thanks.

User avatar
fredx181
Posts: 3436
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 462 times
Been thanked: 1511 times
Contact:

Re: How to upgrade Python version 3.8 to newer version?

Post by fredx181 »

@Governor
Try the yt-dlp_linux binary, it has python newer version included (much bigger though).
https://github.com/yt-dlp/yt-dlp/releas ... -dlp_linux
I'd say just rename it to yt-dlp , make executable and replace the existing yt-dlp in your system (find out where by running which yt-dlp in terminal)

edit: or to download, go here with browser: https://github.com/yt-dlp/yt-dlp/releases/latest

2025-04-15_13-55-56.png
2025-04-15_13-55-56.png (26.69 KiB) Viewed 956 times
User avatar
fredx181
Posts: 3436
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 462 times
Been thanked: 1511 times
Contact:

Re: How to upgrade Python version 3.8 to newer version?

Post by fredx181 »

Jasper wrote: Tue Apr 15, 2025 11:57 am

@fredx181

Your suggestion will not remove the 'update Python' warning.

The request was to update Python :roll:

I you use yt-dlp_linux, there will be no python warning (as I said it has the appropriate python version included).
(upgrading python on Fossapup would be possible but not as easy)

User avatar
Governor
Posts: 1061
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 298 times
Been thanked: 50 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Governor »

Jasper wrote: Tue Apr 15, 2025 11:04 am

@Governor

Some libraries used by the application require updating which is why you are prompted to update your Python build.

Can you 'update' ? .... switch back and forth between 'release' channels? ..... or more importantly does it function on the sites you need it for? .... yt-dlp

Is the 'warning' displayed causing you sleepless nights .... panic attacks? If not, "Ignorance is bliss ........ Embracing mindfulness 🧘🏻‍♀️🌼 ............ Letting go of attachments 🎈🔓 "

You can have multiple Python installations on your OS using UV

https://docs.astral.sh/uv/

To install UV via terminal is straightforward

pip3 install uv

On bookworm64_10.0.6 now, and it does not have pip, pip2 or pip3.
Tried installing pip3 it, but no luck.
apt install python3-pip
...
apt install python3-pip
/mnt/nvme0n1p5/Downloads/yt-dlp#_apt-get update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 https://repo.protonvpn.com/debian stable InRelease [2,967 B]
Get:5 https://repository.mullvad.net/deb/stable bookworm InRelease [2,550 B]
Get:6 http://deb.debian.org/debian bookworm/main amd64 Packages [8,792 kB]
Get:7 http://deb.debian.org/debian bookworm-updates/main amd64 Packages.diff/Index [16.2 kB]
Get:8 http://deb.debian.org/debian bookworm-updates/main Translation-en.diff/Index [16.2 kB]
Get:9 http://deb.debian.org/debian bookworm-updates/main all Contents (deb).diff/Index [14.0 kB]
Get:10 http://deb.debian.org/debian bookworm-updates/main amd64 Packages T-2025-03-27-1414.15-F-2024-11-27-1405.46.pdiff [435 B]
Get:10 http://deb.debian.org/debian bookworm-updates/main amd64 Packages T-2025-03-27-1414.15-F-2024-11-27-1405.46.pdiff [435 B]
Get:11 http://deb.debian.org/debian bookworm-updates/main Translation-en T-2025-03-27-1414.15-F-2024-11-27-1405.46.pdiff [279 B]
Get:11 http://deb.debian.org/debian bookworm-updates/main Translation-en T-2025-03-27-1414.15-F-2024-11-27-1405.46.pdiff [279 B]
Err:4 https://repo.protonvpn.com/debian stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EDA3E22630349F1C
Get:12 http://deb.debian.org/debian bookworm-updates/main all Contents (deb) T-2025-03-27-1414.15-F-2024-11-27-1405.46.pdiff [8,606 B]
Get:12 http://deb.debian.org/debian bookworm-updates/main all Contents (deb) T-2025-03-27-1414.15-F-2024-11-27-1405.46.pdiff [8,606 B]
Get:13 http://deb.debian.org/debian bookworm/main Translation-en [6,109 kB]
Get:14 https://repository.mullvad.net/deb/stable bookworm/main amd64 Packages [1,109 B]
Get:15 http://deb.debian.org/debian bookworm/main all Contents (deb) [33.9 MB]
Get:16 http://deb.debian.org/debian bookworm/main amd64 Contents (deb) [11.7 MB]
Get:17 http://deb.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]
Get:18 http://deb.debian.org/debian bookworm/contrib Translation-en [48.8 kB]
Get:19 http://deb.debian.org/debian bookworm/contrib amd64 Contents (deb) [61.4 kB]
Get:20 http://deb.debian.org/debian bookworm/non-free amd64 Packages [97.3 kB]
Get:21 http://deb.debian.org/debian bookworm/non-free Translation-en [67.0 kB]
Get:22 http://deb.debian.org/debian bookworm/non-free amd64 Contents (deb) [77.1 kB]
Get:23 http://deb.debian.org/debian bookworm/non-free-firmware amd64 Packages [6,240 B]
Get:24 http://deb.debian.org/debian bookworm/non-free-firmware amd64 Contents (deb) [1,083 B]
Get:25 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [254 kB]
Get:26 http://deb.debian.org/debian-security bookworm-security/main Translation-en [150 kB]
Get:27 http://deb.debian.org/debian-security bookworm-security/contrib amd64 Packages [896 B]
Get:28 http://deb.debian.org/debian-security bookworm-security/contrib Translation-en [652 B]
Fetched 61.6 MB in 7s (8,925 kB/s)
Reading package lists... Done
N: Repository 'http://deb.debian.org/debian bookworm InRelease' changed its 'Version' value from '12.8' to '12.10'
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.protonvpn.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EDA3E22630349F1C
W: Failed to fetch https://repo.protonvpn.com/debian/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EDA3E22630349F1C
W: Some index files failed to download. They have been ignored, or old ones used instead.


/mnt/nvme0n1p5/Downloads/yt-dlp#_pip3
Command 'pip3' not found, but can be installed with:
apt install python3-pip

Why does protonvpn keep popping up?

Last edited by Wiz57 on Fri May 02, 2025 9:26 pm, edited 1 time in total.
Reason: dead image links
User avatar
Governor
Posts: 1061
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 298 times
Been thanked: 50 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Governor »

Jasper wrote: Tue Apr 15, 2025 12:10 pm

fake-news.png

What was wrong with

yt-dlp -U

That command threw the error message
:
"When I try to update (yt-dlp -U), I get this:
Deprecated Feature: Support for Python version 3.8 has been deprecated. Please update to Python 3.9 or above"

User avatar
Jasper
Posts: 1884
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 909 times
Been thanked: 391 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Jasper »

Bookworm? Fossa here :lol:

Last edited by Jasper on Tue Apr 15, 2025 5:35 pm, edited 1 time in total.
User avatar
fredx181
Posts: 3436
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 462 times
Been thanked: 1511 times
Contact:

Re: How to upgrade Python version 3.8 to newer version?

Post by fredx181 »

Jasper wrote: Tue Apr 15, 2025 2:36 pm

Bookworm? Fossa here :lol:

4Chan is down brb

yt-dlp -U .... for fredX

Confusion ! First post from @Governor mentioned FossaPup (with too low python version 3.8 for latest yt-dlp version).
(so I gave info about yt-dlp_linux to solve it and @Jasper about installing newer python version).
@Governor, did you try any of these solutions ? If your question is about FossaPup it makes no sense to switch topic suddenly to Bookworm. :?
Bookworm has higher python version, so updating yt-dlp (or installing latest) should work.

Governor wrote:

Why does protonvpn keep popping up?

Probably because you didn't install the public key for the protonvpn repo.. But you can remove that repo config if desired (look in /etc/apt/ for it)
But it's just a warning that you cannot use that repository, not an error that would have influence on the other repositories.

hikohan
Posts: 50
Joined: Wed Mar 13, 2024 12:08 am
Has thanked: 8 times
Been thanked: 13 times

Re: How to upgrade Python version 3.8 to newer version?

Post by hikohan »

  1. download source from Python.org
  2. compile & install
  3. symbolic to target PATH

hope this helps. :thumbup2:

My Fossapup64 with Python 3.13.2

Attachments
py.png
py.png (108.18 KiB) Viewed 724 times
User avatar
Governor
Posts: 1061
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 298 times
Been thanked: 50 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Governor »

8<---snip

fredx181 wrote: Tue Apr 15, 2025 3:32 pm

Confusion ! First post from @Governor mentioned FossaPup (with too low python version 3.8 for latest yt-dlp version).
(so I gave info about yt-dlp_linux to solve it and @Jasper about installing newer python version).
@Governor, did you try any of these solutions ? If your question is about FossaPup it makes no sense to switch topic suddenly to Bookworm. :?
Bookworm has higher python version, so updating yt-dlp (or installing latest) should work.

Governor wrote:

Why does protonvpn keep popping up?

Probably because you didn't install the public key for the protonvpn repo.. But you can remove that repo config if desired (look in /etc/apt/ for it)
But it's just a warning that you cannot use that repository, not an error that would have influence on the other repositories.

I got the "fat" version of yt-dlp which includes Python (thanks to @fredx181). The depreciated Python message is gone.
However, it still did not work on the target url, and complained about a tar-470p format:
ERROR: The extracted extension ('tar') is unusual and will be skipped for safety reasons.

I then used yt-dlp -U and verified it is the latest version.
Then, (thanks to @Jasper) I used "yt-dlp --list-formats", and "yt-dlp -f hls-1060"
and was able to download the video.

Usually, yt-dlp works unassisted. Why are the extra steps needed, and why is there an error message about a tar-470p format?
Is this an effort by the host to hinder downloads? 🤔


/mnt/sda1/Images and Videos/Temp#_yt-dlp https://rumble.com/v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html
[Rumble] Extracting URL: https://rumble.com/v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html
[Rumble] v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html: Downloading webpage
[RumbleEmbed] Extracting URL: https://rumble.com/embed/v6pp171
[RumbleEmbed] v6pp171: Downloading JSON metadata
[RumbleEmbed] v6pp171: Downloading m3u8 information
[info] v6pp171: Downloading 1 format(s): tar-470p
ERROR: The extracted extension ('tar') is unusual and will be skipped for safety reasons. If you believe this is an error, please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
/mnt/sda1/Images and Videos/Temp#_yt-dlp -U
Latest version: stable@2025.03.31 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2025.03.31 from yt-dlp/yt-dlp)
/mnt/sda1/Images and Videos/Temp#_yt-dlp --list-formats https://rumble.com/v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html
[Rumble] Extracting URL: https://rumble.com/v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html
[Rumble] v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html: Downloading webpage
[RumbleEmbed] Extracting URL: https://rumble.com/embed/v6pp171
[RumbleEmbed] v6pp171: Downloading JSON metadata
[RumbleEmbed] v6pp171: Downloading m3u8 information
[info] Available formats for v6pp171:
ID EXT RESOLUTION FPS │ FILESIZE TBR PROTO │ VCODEC VBR ACODEC MORE INFO
───────────────────────────────────────────────────────────────────────────────────────────
mp4-176p mp4 320x176 │ 418.72KiB 11k https │ unknown 11k video only Timeline
audio-192p audio 192p 30 │ 6.89MiB 193k https │ unknown unknown
hls-680 mp4 640x352 │ ~ 24.40MiB 680k m3u8 │ unknown unknown
tar-352p tar 640x352 30 │ 24.42MiB 680k https │ unknown unknown
hls-1060 mp4 854x470 │ ~ 38.03MiB 1060k m3u8 │ unknown unknown
tar-470p tar 854x470 30 │ 38.07MiB 1060k https │ unknown unknown
/mnt/sda1/Images and Videos/Temp#_yt-dlp -f hls-1060 https://rumble.com/v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html
[Rumble] Extracting URL: https://rumble.com/v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html
[Rumble] v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html: Downloading webpage
[RumbleEmbed] Extracting URL: https://rumble.com/embed/v6pp171
[RumbleEmbed] v6pp171: Downloading JSON metadata
[RumbleEmbed] v6pp171: Downloading m3u8 information
[info] v6pp171: Downloading 1 format(s): hls-1060
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 30
[download] Destination: The Lone Gunmen was short-lived spin-off of The X-Files - Predicted 9⧸11? [v6pp171].mp4
[download] 100% of 38.03MiB in 00:00:06 at 6.10MiB/s
[FixupM3u8] Fixing MPEG-TS in MP4 container of "The Lone Gunmen was short-lived spin-off of The X-Files - Predicted 9⧸11? [v6pp171].mp4"
/mnt/sda1/Images and Videos/Temp#_

User avatar
Governor
Posts: 1061
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 298 times
Been thanked: 50 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Governor »

fredx181 wrote: Tue Apr 15, 2025 3:32 pm
Governor wrote:

Why does protonvpn keep popping up?

Probably because you didn't install the public key for the protonvpn repo.. But you can remove that repo config if desired (look in /etc/apt/ for it)
But it's just a warning that you cannot use that repository, not an error that would have influence on the other repositories.

I just checked and ProtonVPN is still working for me, so I suppose that is just another error message I must remember to ignore. Frankly, ignoring error messages is very new to me. I really don't enjoy this extra work, but it looks like I will need to make a list of acceptable error messages on both fossapup and bookworm as I move forward. I had not foreseen that Linux was such a high maintenance OS.

User avatar
Governor
Posts: 1061
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 298 times
Been thanked: 50 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Governor »

hikohan wrote: Wed Apr 16, 2025 12:22 am
  1. download source from Python.org
  2. compile & install
  3. symbolic to target PATH

hope this helps. :thumbup2:

My Fossapup64 with Python 3.13.2

Sounds straightforward, but I bet it isn't. I will keep it in mind, in case it get to the point where it seems like the only option. Thanks.

User avatar
Governor
Posts: 1061
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 298 times
Been thanked: 50 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Governor »

8<---snip

Jasper wrote: Tue Apr 15, 2025 2:36 pm

4Chan is down brb

8<---snip
From Anonymous Conservative
"4Chan, the internet’s most infamous forum, is down following an alleged hack. The hack doxed registered users, and appears to have xposed several security flaws, so we are being told the site will now have to be down for a long time, before it can return, with the security flaws addressed and a new software architecture. My assumption is the FBI system administrators hired to run it in the basement of the DC headquarters were told to take it down, and in the process make it look like this cover story was the reason."

User avatar
fredx181
Posts: 3436
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 462 times
Been thanked: 1511 times
Contact:

Re: How to upgrade Python version 3.8 to newer version?

Post by fredx181 »

Governor wrote: Wed Apr 16, 2025 9:41 am
fredx181 wrote: Tue Apr 15, 2025 3:32 pm
Governor wrote:

Why does protonvpn keep popping up?

Probably because you didn't install the public key for the protonvpn repo.. But you can remove that repo config if desired (look in /etc/apt/ for it)
But it's just a warning that you cannot use that repository, not an error that would have influence on the other repositories.

I just checked and ProtonVPN is still working for me, so I suppose that is just another error message I must remember to ignore. Frankly, ignoring error messages is very new to me. I really don't enjoy this extra work, but it looks like I will need to make a list of acceptable error messages on both fossapup and bookworm as I move forward. I had not foreseen that Linux was such a high maintenance OS.

Assuming that you installed protonvpn from the .deb offered at the protonvpn website (not sure though).
Note that often such downloads for Linux are specially made for "mainstream" Linux distro's, so will not always work properly for Puppy.
Btw, protonvpn is not an official part of Debian, downloading packages from 'some website' (third party app) means 'you're on your own' or 'use at your own risk'.
About error messages (in your case it's a "warning" W:), you can probably fix that by deleting the protonvpn repo file from inside /etc/apt/sources.list.d/ (that does not remove the installed protonvpn).

User avatar
Pikaxhu
Posts: 85
Joined: Thu May 19, 2022 5:36 pm
Location: Chinchaysuyo
Has thanked: 2 times
Been thanked: 25 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Pikaxhu »

@Governor

Python 3.10 as per attached, for Fossa. Send me a PM for details

Regards

Pikaxhu

Attachments
20250417_075936.jpg
20250417_075936.jpg (86.77 KiB) Viewed 346 times
User avatar
Governor
Posts: 1061
Joined: Sat Nov 12, 2022 7:11 pm
Has thanked: 298 times
Been thanked: 50 times

Re: How to upgrade Python version 3.8 to newer version?

Post by Governor »

Pikaxhu wrote: Thu Apr 17, 2025 1:05 pm

@Governor

Python 3.10 as per attached, for Fossa. Send me a PM for details

Regards

Pikaxhu

Thanks.
I am on bookworm now, and I did manage to upgrade python here. The synaptic package installer was of no use. I fiddled with the apt command and after issuing a few different commands, I got it to upgrade. I will try with fossapup next; fossapup has no apt command, so I will see what happens.

python --version
returns
Python 3.11.2

Locked

Return to “Fossapup64”