Open goebbe opened 2 months ago
You don't need pipx. Just a normal virtualenv will do. You shouldn't mess with the system Python install. Personally I like to install each app in /opt
. E.g. Borg would go to /opt/borg
which is a virtual env. To run borg /opt/borg/bin/borg
. Commands are like this:
python -m venv /opt/vorta
source /opt/vorta/bin/activate
pip install vorta
vorta
...
deactivate
Official docs: https://docs.python.org/3/library/venv.html
If you install it for one user only, I might use pyenv, which users ~/.pyenv
. Or with pure Python venv, I would use ~/.venv/vorta
.
Thanks for commenting and providing guidance on how/ where to define the virtualenv. This might be obvious to anybody using Python venv regularly, but it wasn't for me. :-)
Reading your comment, I realise that it would have been better to split this "issue". There are two distinct parts that are not documented, when installing Vorta via pip - or at least I did not find it:
Description
Using a new installation of Linux Mint 22, CE based on Ubuntu 24.04 LTS I ran into the following issues: Following the installation instructions in the documentation, using pip3, did lead to error messages that are related to virtenv in Python and missing packages.
pip3 install vorta
gives the following error message:On stackoverflow, there is a popular post, that recommends the use of pipx (instead of pip3) - to avoid this error. https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3
The installation via pipx seemed to wok fine, however, when starting Vorta in the terminal, I got the following error message:
Another web-search revealed that the following package was missing (this likely also applies when installing Vorta via pip3, on Debian based distributions):
sudo apt install -y libxcb-cursor-dev
I installed the package and Vorta could be started from the terminal.
Finally, Vorta/ borg uses FUSE to mount remote backups, while Fuse is installed by default on Linux Mint, the corresponding python package has to be installed manually:
sudo apt install python3-llfuse
To summarize, on Linux Mint 22 (or Ubuntu 24.04), the following commands install Vorta (via pipx):
I hope this is helpful to other users of Debian based distributions. Not sure if this could/ should be added to the documentation.
Reproduction
OS
Linux Mint 22, Cinammon Edition
Version of Vorta
0.9.1
What did you install Vorta with?
Pip
Version of Borg
No response
Logs
No response
Edit: Added the info about the FUSE package