You are not logged in.

#1 2021-12-20 12:54:10

pepper
Member
Registered: 2017-12-09
Posts: 116

python 3.10 problem

Hello I installed Arch Linux a week ago, I installed some packages from AUR using paru. I also installed python, pip, pipx and 2 python packages: yt-dlp and venv.
Yesterday I updated Arch with the latest updates, including python 3.10.1.
Now everytime I use pip I get this error:

zsh: /home/pepper/.local/bin/pip: bad interpreter: /home/pepper/.cache/paru/clone/windscribe-git/src/py2/python: No such file or directory

In my /home/pepper/.local/bin/ it seems there are files left from aur packages installed in last days (now no more installed):

.rwxr-xr-x pepper pepper 274 B Mon Dec  6 14:51:31 2021  easy_install
.rwxr-xr-x pepper pepper 274 B Mon Dec  6 14:51:31 2021  easy_install-2.7
.rwxr-xr-x pepper pepper 225 B Mon Dec 20 10:06:39 2021  linuxdir2html
.rwxr-xr-x pepper pepper 265 B Mon Dec  6 14:51:31 2021  pip
.rwxr-xr-x pepper pepper 265 B Mon Dec  6 14:51:31 2021  pip2
.rwxr-xr-x pepper pepper 265 B Mon Dec  6 14:51:31 2021  pip2.7
lrwxrwxrwx pepper pepper  56 B Tue Dec  7 22:06:18 2021  virtualenv ⇒ /home/pepper/.local/pipx/venvs/virtualenv/bin/virtualenv
.rwxr-xr-x pepper pepper 252 B Mon Dec  6 14:51:31 2021  wheel
lrwxrwxrwx pepper pepper  48 B Wed Dec  8 11:00:11 2021  yt-dlp ⇒ /home/pepper/

Q1: Can I clean/remove something in this directory (or in other directories if there are more "leftovers") ? I don't know why there is a pip for python 2
Q2: How to solve the error above?
Q3: Which AUR applications shoud I compile again after the new python upgrade?



Maybe useful outputs about programs that should be rebuilded with the new python (if needed):

ls ~/.local/lib/python3.9/site-packages /usr/lib/python3.9/site-packages

/home/pepper/.local/lib/python3.9/site-packages:
drwxr-xr-x pepper pepper 4.0 KB Tue Dec  7 22:03:59 2021  backports
drwxr-xr-x pepper pepper 4.0 KB Tue Dec  7 22:03:59 2021  backports.entry_points_selectable-1.1.1.dist-info
drwxr-xr-x pepper pepper 4.0 KB Tue Dec  7 22:03:59 2021  filelock
drwxr-xr-x pepper pepper 4.0 KB Tue Dec  7 22:03:59 2021  filelock-3.4.0.dist-info
drwxr-xr-x pepper pepper 4.0 KB Tue Dec  7 22:03:59 2021  platformdirs
drwxr-xr-x pepper pepper 4.0 KB Tue Dec  7 22:03:59 2021  platformdirs-2.4.0.dist-info

/usr/lib/python3.9/site-packages:
drwxr-xr-x root root 4.0 KB Tue Dec 14 09:13:27 2021  lightdm_gtk_greeter_settings

pacman -Qm

checkupdates-aur 0.04-1
dcadec 0.2.0-1
downgrade 10.1.0-1
emote 3.0.3-4
ffmpeg2.8 2.8.16-2
github-desktop-bin 2.9.6-1
jdownloader2 latest-13
joplin-desktop-bin 2.5.12-1
openjpeg 1.5.2-3
paru 1.9.2-1
perl-checkupdates-aur 0.04-1
perl-www-aur 0.22-3
plex-media-server 1.25.2.5319-1
python-manimpango 0.3.1-1
qt5-styleplugins 5.0.0.20170311-26
slack-desktop 4.23.0-1
spek-alternative 0.8.2.3-3
spicetify-cli 2.8.3-1
spotify 1:1.1.72.439-3
timeshift 21.09.1-3
vapoursynth-editor R19-1
ventoy-bin 1.0.62-4
vscodium-bin 1.63.2-1
whatsapp-nativefier 2.2142.12-1
whatsapp-nativefier-notray-hook 1-2

(I don't know if some packages needs a rebuild because of python update)

Last edited by pepper (2021-12-20 13:00:33)

Offline

#2 2021-12-20 13:07:52

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: python 3.10 problem

You should never use two package manager on one system (exeption AUR and pacman)
You have to build the packages with PKGBUILD and the AUR package manager.

Offline

#3 2021-12-20 13:34:00

pepper
Member
Registered: 2017-12-09
Posts: 116

Re: python 3.10 problem

yes I know, I used pipx all the time, I just installed pip now to know if the error was related to pipx

Morta wrote:

You should never use two package manager on one system (exeption AUR and pacman)
You have to build the packages with PKGBUILD and the AUR package manager.

Do you talk about yt-dlp? This is the only software I installed from python. All other software are from paman/paru

Last edited by pepper (2021-12-20 13:36:15)

Offline

#4 2021-12-20 15:46:48

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: python 3.10 problem

This has nothing to do with AUR. This is stuff in your home dir that you installed by some other means. AUR packages do not install anything in your home.

Offline

#5 2021-12-20 15:57:42

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: python 3.10 problem

pepper wrote:

yes I know, I used pipx all the time, I just installed pip now to know if the error was related to pipx

Morta wrote:

You should never use two package manager on one system (exeption AUR and pacman)
You have to build the packages with PKGBUILD and the AUR package manager.

Do you talk about yt-dlp? This is the only software I installed from python. All other software are from paman/paru

No, pip is a python package manager don't use it with pacman and AUR alongside

Offline

#6 2021-12-20 15:58:49

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: python 3.10 problem

arojas wrote:

This has nothing to do with AUR. This is stuff in your home dir that you installed by some other means. AUR packages do not install anything in your home.

I talk use from pip and pacman(&AUR) together. I think pip installed packages in the home folder.

Offline

#7 2021-12-20 16:16:46

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: python 3.10 problem

The problem starts w/ him not using https://archlinux.org/packages/extra/any/python-pip/ but something (pipx?) that placed /home/pepper/.local/bin/pip which managed to determine some python binary in the paru (aur helper…) cache to be the python interpreter.
I'd start by fixing up those /home/pepper/.local/bin/pip* executables to use /usr/bin/python as interpreter in the shebang.

Offline

Board footer

Powered by FluxBB