evernote-backup icon indicating copy to clipboard operation
evernote-backup copied to clipboard

Re-Installation problem

Open SprickW opened this issue 1 year ago • 3 comments

Today I upgraded from Ubuntu 20.04 to 22.04. After that evernot-backup was not found.

pipx install evernote-backup with and without --force cause errors.

cmd_2022-08-18_21.02.17_pip_errors.log shows:

PIP STDERR

/home/sprickw/.local/pipx/venvs/evernote-backup/bin/python: No module named pip

cmd_2022-08-18_21.02.17.log

Is there some way to fix this?

Greetings Wolfgang

SprickW avatar Aug 18 '22 19:08 SprickW

Try pipx reinstall-all

vzhd1701 avatar Aug 18 '22 19:08 vzhd1701

The upgrade to Ubuntu 22.04 seems to have some strange effects on the python environment

(venv) sprickw@weser:~/Projects/evernote$ pipx reinstall-all /home/sprickw/.local/pipx/shared/bin/python: No module named pip Failed to upgrade shared libraries Traceback (most recent call last): File "/home/sprickw/.local/lib/python3.10/site-packages/pipx/shared_libs.py", line 113, in upgrade subprocess_post_check(upgrade_process) File "/home/sprickw/.local/lib/python3.10/site-packages/pipx/util.py", line 203, in subprocess_post_check raise PipxError( pipx.util.PipxError: '/home/sprickw/.local/pipx/shared/bin/python -m pip --disable-pip-version-check install -q --upgrade pip setuptools wheel' failed (venv) sprickw@weser:~/Projects/evernote$

Same result with or without venv. Calling pip directly works.

I'm considering seting up my laptop from scratch ... :-(

SprickW avatar Aug 19 '22 06:08 SprickW

You don't have to set up from scratch. The problem is that pipx virutal envs got messed up because python version changed after system upgrade. Go to ~/.local/bin, remove all shims that pipx created, then reinstall pipx.

python3 -m pip uninstall pipx
rm -rf ~/.local/pipx
python3 -m pip install --user pipx
pipx install evernote-backup

vzhd1701 avatar Aug 19 '22 07:08 vzhd1701

Works perfectly! :-)

SprickW avatar Aug 22 '22 07:08 SprickW