Error running as non-root user #51
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#51
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?
I logged this as a separate issue (than #50) as it's not exactly the same.
I've installed borgmatic:
sudo -H pip3 install borgmatic
Running as root works fine. But, a non root user results in this error:
user@host:~$ borgmatic
Traceback (most recent call last):
File "/usr/local/bin/borgmatic", line 7, in
from borgmatic.commands.borgmatic import main
File "/usr/local/lib/python3.5/dist-packages/borgmatic/commands/borgmatic.py", line 10, in
from borgmatic.config import collect, convert, validate
File "/usr/local/lib/python3.5/dist-packages/borgmatic/config/convert.py", line 3, in
from ruamel import yaml
ImportError: cannot import name 'yaml'
Thanks
apologies, the formatting came out wrong. this interface doesn't allow me to edit? :(
Do you know what version of
ruamel.yaml
you have installed? This should show you:pip show ruamel.yaml
As for comment editing.. There's no pencil icon for you in the upper right of the comment header?
--
wrt editing, I have to click the pencil twice for the post to become editable, and then when I click cancel/save nothing happens (both in chrome and firefox)
Interesting.. I've never seen a system-level Python package that's available as root but not as a user.
For instance, this the output for a non-root user on one of my systems:
Are you sure that
pip
resolves to the same thing for each user? For instance, doeswhich pip
yield the same path for both root and for your non-root user? Is it possible that one of them resolves to Python 2 instead of 3? You could trypip3
instead.As for editing comments, I'm not sure what's going on there. Might be a Gitea bug. If you want to debug that further, let me know what versions of Chrome/Firefox you're using, whether you see any JavaScript errors in your console, what add-ons you have enabled, etc.
I created a new VM and redid the installation.
All well. Not sure what's up with the other two machines' installations then :(
Unfortunately my Python knowledge is next to nothing.
Thanks for the help.
Glad to hear it's working now.