Unable to import Apprise in monitoring hook #862
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#862
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I am currently trying to get some discord notifications working for my backups.
I have followed the instructions on the borgmatic wiki (https://torsion.org/borgmatic/docs/how-to/monitor-your-backups/#apprise-hook) however it doesnt seem to want to work.
I ran the pipx install command and i get the following output
Running the backup with verbose 2 results in the following
Steps to reproduce
Configuration looks like this
Actual behavior
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
1.8.9
borgmatic installation method
pipx install
Borg version
1.1.15
Python version
3.8.10
Database version (if applicable)
No response
Operating system and version
Ubuntu 20.04.6 LTS
Thanks for taking the time to file this. Have you run through the pipx setup described in the general borgmatic installation docs? Specifically the
ensurepath
part? And are you sure you don't have multiple copies of borgmatic installed? When you runwhich borgmatic
, what does the output show?Hey witten
I did follow that part of the setup as I am running borgmatic as root.
Here is the output from the commands.
pipx list shows the following output
Iiinteresting. It does look like borgmatic is installed twice, both with pipx! And it looks like when you run borgmatic, it's running the version that's installed without Apprise, which would explain the error you're getting. So my recommendation would be to
pipx uninstall
both versions (and confirm withpipx list
) and then start over by installing justborgmatic[Apprise]
. Let me know how that goes!(I may have to change the documentation to help avoid this sort of situation for other users.)
That was it!
I almost did that to begin with then decided against it.
Would be worth updating the doco for people like me.
Thanks for the help
I'm glad to hear that did it!