Linux Python 3.10 Problem
#31
Hi! After upgrading ubuntu to 22.04.01 TLS, many plugins began to crash.(( python 3.10 and python 3.11 don't solve the problem.
Reply
#32
(2022-08-15, 19:09)tatem68 Wrote: Hi! After upgrading ubuntu to 22.04.01 TLS, many plugins began to crash.(( python 3.10 and python 3.11 don't solve the problem.

Did you do the rest of the steps involved with upgrading to python 3.11?  Patching kodi.bin, setting the alternative, deleting the /usr/local/bin/python3 shortcut?  Just installing python3.11 isn't enough.
Reply
#33
Did you try my way? I have no problems running 22.04.1. with python 3.10.5 and the official team kodi ppa.
So why patching kodi.bin and using a Python beta 3.11?
Asrock J5040 powered by Ubuntu 23.10 and KODI
Reply
#34
(2022-08-15, 21:44)Schenckmeier Wrote: Did you try my way? I have no problems running 22.04.1. with python 3.10.5 and the official team kodi ppa.
So why patching kodi.bin and using a Python beta 3.11?

3.10.5 still crashed.  It didn't fix anything on my ubuntu 22.04 machines (2 running lightDM and 1 running KDE)
Reply
#35
Thumbs Up 
(2022-07-22, 15:05)Schenckmeier Wrote: I changed temporarly sources.list from jammy to kinetic and then installed python3.10.5 from the repo (apt install python3.10).
Then i made a fresh kodi Matrix install from official team kodi ppa 
No crash since 2 days with installed Aeon MQ8 skin for Matrix.
Probably not the cleanest way, but simply upgrading the python version to 3.10.5 using the kinetic (22.10) source.list solved the problem for me.

python:

cd /etc/apt/
sudo sed -i 's/jammy/kinetic/g' sources.list
sudo apt update && sudo apt install python3.10
sudo sed -i 's/kinetic/jammy/g' sources.list
sudo apt update

Thank you Schenckmeier for the hint!
Reply
#36
Yup. thank you for the hint as well. My solution, for those working in a GUI, was as follows:

1. Install deadsnakes repo as per instructions on the ppa page https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa :
     sudo add-apt-repository ppa:deadsnakes/ppa
     sudo apt update

2. Go to "Software & Updates" and there to the "Other Software" tab
     Scroll down to the activated deadsnakes entry, select it and hit the Edit button
     In the "distribution" field you replace "jammy" with "focal" and click OK. 
     Back in the main window hit "Close" and it will ask you if you want to reload the sources, which you agree to. 

3. Open a terminal and enter "sudo apt install python3.10" It should now detect the new version 3.10-6 and install it

4.  After installation is over and you can verify a new version is installed you can revert the distribution change from step 3 back to "jammy"

5. Kodi should now work again. I didn't have to reinstall or purge/install Kodi, it worked right from there.
AMD Ryzen 5 2700 | Asus ROG Strix B350 ITX | Geforce RTX 2060 
Ubuntu 22.04 LTS | Kernel 6.1 | Nvidia blob drivers | Kodi v20
Reply
#37
I must have broken something because doing that python focal update made my kodi worse it wasn't crashing now it is.

Python says 3.10.6 and python3 -v sats 3.10.5
so i completely removed kodi and started again and it still crashes on addons even installing updates.

I am just using my shield for now for the plugins but i think it only started to screw up when i moved the KODI ppa to focal to jammy.
Reply
#38
I have the same issue here. just two days ago I did the upgrade from 21.04 to 22.04. After reading this thread I also tried installing python for focal....and up until this morning I was quite hopeful that it would work.
I also have emby running on my box and it had also been crashing all the time. It lasted some hours, I could watch tv, netflix, amazon..no problem. Now both Kodi and emby are crashing again just like before.
Reply
#39
There was an python update a few weeks ago (as of writing) to Linux Mint 21 (at least). Since I had followed the steps to use the 3.11 RC version (https://github.com/xbmc/xbmc/issues/21243), I ran
Code:
patchelf --replace-needed libpython3.11.so.1.0 libpython3.10.so.1.0 /usr/lib/x86_64-linux-gnu/kodi/kodi.bin
to go back to 3.10. The 3.11 RC version broke some add-ons on my system. Now everything is working again / back to normal.
Reply
#40
Hi folks,

I'm on Void Linux with Python 3.10.7 and it seems to run fine ..

Greetz
Reply
#41
ubuntu 22.04 has a fixed python in the updates repo:
python3:
  Installed: 3.10.6-1~22.04
  Candidate: 3.10.6-1~22.04
  Version table:
 *** 3.10.6-1~22.04 500
        500 http://at.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status


so simply enabling jammy-updates in software sources and running apt update && apt full-upgrade should suffice
Reply

Logout Mark Read Team Forum Stats Members Help
Python 3.10 Problem0