You are not logged in.

#26 2021-12-18 23:13:22

b314c
Member
Registered: 2021-12-13
Posts: 4

Re: Problems after update to python 3.10

I found a couple broken packages as well.

proton-git from AUR was broken until I rebuilt it.

plasma widget panon is still broken after rebuilding, getting python related errors when switching to PulseAudio as backend

  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/b314c/.local/share/plasma/plasmoids/panon/contents/scripts/panon/backend/client.py", line 53, in <module>
    spectrum_source = source.SoundCardSource(spectrum.NUM_CHANNEL, sample_rate, arguments['--device-index'], cfg_fps)
  File "/home/b314c/.local/share/plasma/plasmoids/panon/contents/scripts/panon/backend/source.py", line 113, in __init__
    self.start()
  File "/home/b314c/.local/share/plasma/plasmoids/panon/contents/scripts/panon/backend/source.py", line 172, in start
    stream.__enter__()
  File "/home/b314c/.local/share/plasma/plasmoids/panon/contents/scripts/soundcard/pulseaudio.py", line 638, in __enter__
    if isinstance(self.channels, collections.Iterable):
AttributeError: module 'collections' has no attribute 'Iterable'

Offline

#27 2021-12-19 07:18:32

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 649

Re: Problems after update to python 3.10

I think Arch should post a news item at every major Python release (which is about once per year) to remind users to rebuild all their Python based AUR packages.

Offline

#28 2021-12-19 08:55:29

BobbyTables
Member
Registered: 2021-12-18
Posts: 4

Re: Problems after update to python 3.10

Lone_Wolf wrote:

Protonvpn-cli is an aur package, have you tried rebuilding it against python 3.10.1 ?

So I did try doing that but there also seems to be a conflict one of that AUR package’s dependencies such that I had to install protonvpn-cli explicitly first. Once I did that and rebuilt all was good. Bad timing to run into that!

Anyway this helped me find and rebuild all the packages (in case it’s helpful to others):

yay -S —rebuildall —noconfirm $(yay -Qqo /usr/lib/python3.9/)

I guess the youtube-dl update that landed last week forced an implicit re-build owing to the package update? In any case it’s now working for me having done nothing.

Also, regarding Kodi I think that’s related to something else entirely. A regression in 3.10.1 ?

Last edited by BobbyTables (2021-12-19 09:07:52)

Offline

#29 2021-12-19 09:04:30

BobbyTables
Member
Registered: 2021-12-18
Posts: 4

Re: Problems after update to python 3.10

bulletmark wrote:

I think Arch should post a news item at every major Python release (which is about once per year) to remind users to rebuild all their Python based AUR packages.

As it happens I did try seeing if there was any advice/post/news anywhere. The only mention I could find was this forum post which I then contributed to. I think an announcement like that would’ve at least helped me. Though I’ll be prepared for it next time now anyway.

Offline

#30 2021-12-19 14:19:43

Daerandin
Member
From: Norway
Registered: 2013-05-07
Posts: 258
Website

Re: Problems after update to python 3.10

AUR packages have always been the users own responsibility, and rebuilds are frequently required, especially with soname bumps.

This is not only a python issue, meaning that such announcements would be needed with all soname changes. This would lead to a lot of unnecessary noise on the announcements.

Besides, it is, in my opinion, your own responsibility to keep track of this with any unofficial packages on your system. Another reason why I dislike most AUR helpers as they frequently blur the line between installing an Arch package, and installing an unofficial package.

Offline

#31 2021-12-21 17:24:57

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: Problems after update to python 3.10

Maybe I'm here right. I've update my system today, which included an upgrade from "python-3.9.9-1" to "python-3.10.1-1". Now RabbitVCS (I've to use Subversion...) is broken:

org.gnome.Nautilus[2395]: ModuleNotFoundError: No module named 'pysvn'
org.gnome.Nautilus[2395]:     import pysvn
org.gnome.Nautilus[2395]:   File "/usr/share/nautilus-python/extensions/RabbitVCS.py", line 69, in <module>
org.gnome.Nautilus[2395]: Traceback (most recent call last):

The actual code there:

 53 # import sys
 54 # sys.excepthook = log_all_exceptions
 55 
 56 import copy
 57 
 58 import os
 59 import os.path
 60 from os.path import isdir, isfile, realpath, basename, dirname
 61 import datetime
 62 
 63 from rabbitvcs.util import helper
 64 
 65 sa = helper.SanitizeArgv()
 66 from gi.repository import Nautilus, GObject, Gtk, GdkPixbuf
 67 sa.restore()

I've now clue of Python and actually don't know why recompilation of Python-Packages is sometimes required? But I did run makepkg upon rabbitvcs, rabbitvcs-cli and rabbitvcs-nautilus and installed them again. No improvement.
Any guess what I can do? And if I share the same issue as the others here? I'm not sure sad


// edit
Had to recompile all package with Python. Works now.

Last edited by hoschi (2021-12-21 17:44:19)

Offline

#32 2021-12-21 18:31:26

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: Problems after update to python 3.10

/usr/bin/checkrebuild from [community]/rebuild-detector can help you identify which packages need rebuilding.

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#33 2021-12-22 07:35:06

DB44
Member
Registered: 2021-12-22
Posts: 1

Re: Problems after update to python 3.10

BobbyTables wrote:

I’m seeing *many* broken python tools too. This has to be the biggest breakage I’ve seen when using Arch in years… I’m surprised it’s not a bigger deal?

I tried pacman -S python=python-3.10.0-1 but I get target not found. How do I downgrade to 3.10 I only have 3.9 in my /var/cache/pacman/pkg and the broken one in the remote packages.

Thoughts?

https://archive.archlinux.org/packages/p/python/

Last edited by DB44 (2021-12-22 07:35:38)

Offline

#34 2021-12-22 08:46:08

ghen
Member
From: Belgium
Registered: 2010-08-31
Posts: 121

Re: Problems after update to python 3.10

WorMzy wrote:

Mod note: Moving to AUR Issues.

@mod, this topic started with a Kodi issue which is not an AUR rebuild issue, but a genuine perl 3.10.1 bug affecting Kodi (see FS#73002).

Offline

#35 2021-12-22 09:00:13

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: Problems after update to python 3.10

My bad, moving to Applications & DEs.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#36 2021-12-30 17:57:54

ozooha
Member
Registered: 2009-09-29
Posts: 173

Re: Problems after update to python 3.10

So whats the status?
I see that 3.10.1-2 has come out, so does that mean kodi works with this new update or  do I have to downgrade and be at 3.10.0?
Thanks.
OZooHA

Offline

#37 2021-12-30 17:59:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Problems after update to python 3.10

ozooha wrote:

So whats the status?
I see that 3.10.1-2 has come out, so does that mean kodi works with this new update or  do I have to downgrade and be at 3.10.0?

No, -2 does not fix kodi plugins, see:

https://bugs.python.org/issue46070
https://bugs.archlinux.org/task/73002


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#38 2021-12-30 18:04:08

ozooha
Member
Registered: 2009-09-29
Posts: 173

Re: Problems after update to python 3.10

Thank you.

Offline

#39 2022-01-01 14:02:18

idovitz
Member
Registered: 2011-08-24
Posts: 7

Re: Problems after update to python 3.10

I commented out line 83 in /usr/lib/python3.10/sqlite3/dbapi2.py

#register_converter("timestamp", convert_timestamp)

Not an elegant solution but youtube plugin is working again.

Offline

#40 2022-01-01 23:06:38

b314c
Member
Registered: 2021-12-13
Posts: 4

Re: Problems after update to python 3.10

b314c wrote:

plasma widget panon is still broken after rebuilding, getting python related errors when switching to PulseAudio as backend

I fixed panon with this https://github.com/rbn42/panon/issues/7 … 1003631632

Last edited by b314c (2022-01-01 23:06:53)

Offline

#41 2022-01-05 01:12:29

ozooha
Member
Registered: 2009-09-29
Posts: 173

Re: Problems after update to python 3.10

graysky wrote:
ozooha wrote:

So whats the status?
I see that 3.10.1-2 has come out, so does that mean kodi works with this new update or  do I have to downgrade and be at 3.10.0?

No, -2 does not fix kodi plugins, see:

https://bugs.python.org/issue46070
https://bugs.archlinux.org/task/73002


In the 2nd link above Aaron Barany (akb825) states that the patch solves the crash issue.
How does one compile it with the patch?
Can you help out with CLI instructions using a simple illustration? OR simply point me to a wiki/reference.

Thanks
OZooHA

Offline

#42 2022-01-07 10:00:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Problems after update to python 3.10

idovitz wrote:

I commented out line 83 in /usr/lib/python3.10/sqlite3/dbapi2.py

#register_converter("timestamp", convert_timestamp)

Not an elegant solution but youtube plugin is working again.

Thanks for the post, it seems that commenting all four of those is needed, https://bugs.archlinux.org/task/73002#comment204321


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#43 2022-01-09 20:39:24

luser
Member
Registered: 2016-08-27
Posts: 114

Re: Problems after update to python 3.10

Thanks for the post, it seems that commenting all four of those is needed, https://bugs.archlinux.org/task/73002#comment204321

Glad you mentioned that, because just commenting out line 83 didn't work for me. Kodi still froze. Now I can finally run kodi again without it crashing after a few seconds.

Can you say what problems or limitations may result from commenting out the four lines? I expect there is some potential issue that can result from this.


luser: an epithet applied by Windows users to linux users

Offline

#44 2022-01-13 16:47:08

MajorMayer
Member
Registered: 2021-05-22
Posts: 5

Re: Problems after update to python 3.10

luser wrote:

Thanks for the post, it seems that commenting all four of those is needed, https://bugs.archlinux.org/task/73002#comment204321

Glad you mentioned that, because just commenting out line 83 didn't work for me. Kodi still froze. Now I can finally run kodi again without it crashing after a few seconds.

Can you say what problems or limitations may result from commenting out the four lines? I expect there is some potential issue that can result from this.

Thanks for this "fix"/ workaround. It also worked for me and i can start Kodi again yay.
I am also worrying about the possible side-effects, so maybe someone can clarify them ...?

Additionally i am pretty surprised that this is still an issue. Effectively since the Python 3.10 update, which was quite a while ago, Kodi was unusable for me.
IMHO This should have a higher priority. Couldn't the Python package be rebuilt with some patch mentioned above?

Offline

#45 2022-01-16 19:32:41

ghen
Member
From: Belgium
Registered: 2010-08-31
Posts: 121

Re: Problems after update to python 3.10

Kodi is working well again with python 3.10.2-1, currently in [testing].

Offline

#46 2022-01-16 20:55:18

MajorMayer
Member
Registered: 2021-05-22
Posts: 5

Re: Problems after update to python 3.10

Good to know. Guess i will just have to wait until this is distributed down to Manjaro Stable.

Offline

#47 2022-01-17 07:49:42

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Problems after update to python 3.10

MajorMayer wrote:

Good to know. Guess i will just have to wait until this is distributed down to Manjaro Stable.

...why?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#48 2022-01-17 09:01:40

MajorMayer
Member
Registered: 2021-05-22
Posts: 5

Re: Problems after update to python 3.10

Because i use Manjaro and Python 3.10.2 is not yet here...?

Offline

#49 2022-01-18 00:11:38

grandcanyon
Member
Registered: 2022-01-18
Posts: 2

Re: Problems after update to python 3.10

MajorMayer wrote:
luser wrote:

Thanks for the post, it seems that commenting all four of those is needed, https://bugs.archlinux.org/task/73002#comment204321

Glad you mentioned that, because just commenting out line 83 didn't work for me. Kodi still froze. Now I can finally run kodi again without it crashing after a few seconds.

Can you say what problems or limitations may result from commenting out the four lines? I expect there is some potential issue that can result from this.

Thanks for this "fix"/ workaround. It also worked for me and i can start Kodi again yay.
I am also worrying about the possible side-effects, so maybe someone can clarify them ...?

Additionally i am pretty surprised that this is still an issue. Effectively since the Python 3.10 update, which was quite a while ago, Kodi was unusable for me.
IMHO This should have a higher priority. Couldn't the Python package be rebuilt with some patch mentioned above?

The comment out fix works for some plugins and not others. Some will hang your hold system.

I am running armv7h. Anyone know how to get the testing python package. I see it for x86.64 but can't find for the arm.

Offline

#50 2022-01-18 07:47:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Problems after update to python 3.10

You need to ask for help on the ALARM boards

Offline

Board footer

Powered by FluxBB