pip (python package manager) was missing after update; (SOLVED)
Parts of the previous pip (for python3.9) was still present after the update not functioning (“no package owns /usr/lib/python3.9”), and pip3.10 was not automatically instsalled.
i’m using pip on a weekly basis, so it was most probably there before the update.
After reboot I reinstalled pip3.10 via the package manager (gui), because I wasn’t sure about the package’s name (python3-pip? python-pip3? python3-pip3? python3.10-pip?)
I install python-pip.
(i don’t know with manjaro whether it’s better to use the packange manager or install pip manually. Since this update wasn’t smooth, I’ll try to stick with the package-manager system; i think the previous was manually installed via getpip.py).
There was a real mess with previous pip3.9 executables litter (under ~/.local/bin/, in /usr/bin, multiple symlinks, real files, and stubs),
So I had to manually delete every pip* executable + remains.
Is this because I have some even older python packages installed? Can I have any advice on what to do about this? I’m rather over my head at this point!
(Edit: I did some googling and doing pacman -o on these, it looks like python2-beautifulsoup4 was installed as a dependency of another package, but is listed as “required by: none” - I am guessing that it is no longer needed but nervous about deleting it and causing a problem… Am I correct in thinking that this is the package that is causing the problem? I don’t seem to have python2-pytest installed… It looks like I have a few python2 packages from the AUR, and also listed as orphans…)
Sorry for lateness of reply.
I wrote the wiki-post item about pip.
Later I moved it to this separate post.
Later again, I realized that the whole idea (that I got from somewhere else) was flawed.
Now it uses ‘pip list’, and you don’t need to do it before the main upgrade.
So if you still have questions, and/or didn’t do it yet, please read that post again.
Thanks very much freggel.doe, it’s very useful to have that reassurance – I went through and removed all the python2 packages with pamac, checking first (using pacman with the -Qii option) that there was nothing unexpected that depended on them. I’m glad to say that all seems to have gone well, and removing the packages has indeed had no ill effect. After removing these, pamac updated my other AUR packages fine, and so the upgrade has now been successful. Many thanks again for the pointers!
Thanks @jgxvx , this works fine form me, I uninstall official package optimus-manager-1.4-1 and then I install optimus-manager-1.4-3 from AUR repository to compatibility with python 3.10 =) and then my second monitor works excellent =).
PS: I didn’t know optimus-manager package is not anymore on official repository.
I’m having an issue when attempting to update my system. This is the error
error: perl: signature from "Levente Polyak (anthraxx) <firstname.lastname@example.org>" is unknown trust
:: File /var/cache/pacman/pkg/perl-5.34.0-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
I am using the command sudo pacman -Syu and I attemped resetting the following solution but it didn’t work.
I believe that is the recommend solution and the other one says that is a possible solution and I don’t want to find out it broke pacman even more.
EDIT: I was able to fix it by attempting the other solution.
It was originally in the AUR, then a previous Manjaro team member imported it to our community repo, I dropped it in a cleanup, then it was just recently imported from the AUR to the Arch community repo and therefore it’s back in our community repo. Got it?