KenKundert / emborg

Interactive command line interface to Borg Backup
GNU General Public License v3.0
94 stars 8 forks source link

Recommended install with new pip limitations #75

Closed descendingnerdliness closed 8 months ago

descendingnerdliness commented 10 months ago

On Debian Trixie and Ubuntu 23, installation using pip install --user emborg is no longer allowed. What is the new preferred method of installation?

KenKundert commented 10 months ago

I am not a user of Ubuntu or Debian, and am unaware of any new restrictions on the use of pip. I did a quick web search and found nothing on it. Can you point me to something that discusses these new restriction. Or, can you send me the error message that is issued when you try.

Personally I cannot imagine the rationale for such a restriction. On the whole the web seems to be enamored with virtualenv. You could try using that. I use virtualenv in special situations, but I find it awkward to use for packages I use on a daily basis.

descendingnerdliness commented 10 months ago

Thanks Ken,

There is a reasonable explanation of the issue here: (https://www.linuxuprising.com/2023/03/next-debianubuntu-releases-will-likely.html)

The proposed solution is to use virtualenv, but I agree with you that it is undesirable for this. It would probably also be cumbersome with cron.

Would it work to just run it from a directory in /home/user?

KenKundert commented 10 months ago

Looks like pipx is the solution. I used pip to uninstall emborg, and then reinstalled it with pipx. Seemed to work. The one exception is if you use avendesora for holding your secrets. I will need to package that as an optional dependency so that it can be installed in the same virtual environment that holds emborg.

I need to find some time to do a refresh on emborg. At that time I will create the optional dependency and update the installation instructions to describe how to install emborg in a way that conforms to the new guidelines.

KenKundert commented 8 months ago

With the latest version (1.38) you can install either the base version, or the Avendesora version, using pipx.

pipx install emborg

or

pipx install emborg[avendesora]

descendingnerdliness commented 8 months ago

Great! Thank you for your help!