pipx icon indicating copy to clipboard operation
pipx copied to clipboard

I deleted pyenv-virtualenv, now ~/.local/pipx/pyvenv.cfg contains invalid path

Open Prooffreader opened this issue 6 years ago • 1 comments

Describe the bug I deleted pyenv-virtualenv, while keeping pyenv, in order to use poetry instead. One of the virtualenvs I had was a miniconda3 install.

I had previously installed pipx, a while back, as far as I can remember I haven't really used it yet. Perhaps I had the miniconda pyenv-virtualenv activated when I installed it, that would have been a mistake, but it's possible.

My .bashrc contains:

eval "$(register-python-argcomplete pipx)"

Now whenever I start a terminal, I see the following message:

bash: /home/prooff/.local/bin/register-python-argcomplete: 
/home/prooff/.pyenv/versions/miniconda3-latest/bin/python: bad interpreter: No such file or 
directory

The contents of ~/.local/pipx/pyvenv.cfg is:

home = /home/prooff/.pyenv/versions/miniconda3-latest/bin
include-system-site-packages = false
version = 3.7.4

Is this home the same as the environment variable PIPX_HOME (which I have not set?) Should I delete the line or set another home directory?

How to reproduce The error stops pipx --verbose from giving any output

Expected behavior Start terminal without error

Prooffreader avatar Nov 19 '19 13:11 Prooffreader

Ubuntu 18.04

Prooffreader avatar Nov 19 '19 13:11 Prooffreader

This ie expected.

gaborbernat avatar Dec 02 '23 18:12 gaborbernat