Skip to main content
Topic: New python upgrade breaks dep of python-exceptiongroup (Read 578 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

New python upgrade breaks dep of python-exceptiongroup


"error: failed to prepare transaction (could not satisfy dependencies)
:: installing python (3.11.5-1) breaks dependency 'python<=3.11.3' required by python-exceptiongroup"

 Is it just me or it's a general error?


Re: New python upgrade breaks dep of python-exceptiongroup

Reply #1
I ran into this yesterday and in my impatience just built python-exceptiongroup myself after changing the depends to not have the version constraint. Which is what arch have done to their package.
https://gitlab.archlinux.org/archlinux/packaging/packages/python-exceptiongroup/-/commit/5178ea2ed840bf8240036679d463184629705812
So wait or do the same I guess. Not just you.

Re: New python upgrade breaks dep of python-exceptiongroup

Reply #2

 Good thank you for the tip 👍🏻 Think I'll wait. Perhaps some fix will be available soon enough. If not I'll pick the other option, the hard way  🤯


Re: New python upgrade breaks dep of python-exceptiongroup

Reply #3
Hello,

I confirm the issue. Same here. I will wait.

Have a nice day. :)

Re: New python upgrade breaks dep of python-exceptiongroup

Reply #4

@maverick you might wanna check this fix out from reply no. 7 you have several options. Waiting might be a solution but that way you can't have onboard the new python which is used by pacman and so idk if you can have updates at all till you get around this.

fix


Re: New python upgrade breaks dep of python-exceptiongroup

Reply #5
When you do pacman -Rs pkgname it will tell you what is going to be removed, then ask you if you want to proceed. This is a quick way to see if you have anything else that depends on a package before you remove it, because you will get error messages if it's required by the system. In my case I could remove python-exceptiongroup, so I did and then could update. This shouldn't be considered an official solution, but it hasn't caused any problems for me that I've noticed.

Re: New python upgrade breaks dep of python-exceptiongroup

Reply #6
what I don't understand is why we explicitly mention a python version less than 3.11.3 , arch maintainer is not doing that, is it even necessary?
look at comment at this commit.  line 22 of PKGBUILD file.
Spoiler (click to show/hide)

here's the info of package for arch and artix,
Code: [Select]
$ yay -Si python-exceptiongroup 
Repository      : world
Name            : python-exceptiongroup
Version         : 1.1.3-1
Description     : Backport of PEP 654 (exception groups)
Architecture    : any
URL             : https://github.com/agronholm/exceptiongroup
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : python<=3.11.3
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 32.36 KiB
Installed Size  : 136.10 KiB
Packager        : Artix Build Bot <[email protected]>
Build Date      : Tue 22 Aug 2023 05:03:30 PM UTC
Validated By    : MD5 Sum  SHA-256 Sum  Signature

Repository      : extra
Name            : python-exceptiongroup
Version         : 1.1.3-2
Description     : Backport of PEP 654 (exception groups)
Architecture    : any
URL             : https://github.com/agronholm/exceptiongroup
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : python
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 32.34 KiB
Installed Size  : 136.10 KiB
Packager        : Daniel M. Capella <[email protected]>
Build Date      : Mon 28 Aug 2023 11:56:13 PM UTC
Validated By    : MD5 Sum  SHA-256 Sum  Signature
If I am right, the maintainer should remove python version dependency

Re: New python upgrade breaks dep of python-exceptiongroup

Reply #7

 @suren python version think it's required since using an ancient version of python obviously things can break even worse. Using python version might be a safeguard method so obsolete python version would be rejected. In this case the safeguard was no longer necessary and turned into an obstacle but still preferable than allowing some medieval python.

 

Re: New python upgrade breaks dep of python-exceptiongroup

Reply #8

@maverick you might wanna check this fix out from reply no. 7 you have several options. Waiting might be a solution but that way you can't have onboard the new python which is used by pacman and so idk if you can have updates at all till you get around this.

fix

Thank you for the advice. It turns out that the wait is over, since pacman does not show the error anylonger.
However, now I am facing another issue: Pacman does not find the galaxy db. anymore, so I cannot update
in any case. A new thread has already been created about this, since I am not the only one affected by it.

Thank you anyway.