kislyuk / argcomplete

Python and tab completion, better together.
https://kislyuk.github.io/argcomplete/
Apache License 2.0
1.39k stars 129 forks source link

activate-global-python-argcomplete: error: [Errno 13] Permission denied: '/etc/bash_completion.d/python-argcomplete' #367

Closed avatar-lavventura closed 2 years ago

avatar-lavventura commented 2 years ago

I am getting activate-global-python-argcomplete: error: [Errno 13] Permission denied error how can I fix it?

$ activate-global-python-argcomplete
Installing bash completion script /etc/bash_completion.d/python-argcomplete
usage: activate-global-python-argcomplete [-h] [--dest DEST] [--user] [--no-defaults] [--complete-arguments ...]
activate-global-python-argcomplete: error: [Errno 13] Permission denied: '/etc/bash_completion.d/python-argcomplete'
Please try --user to install into a user directory, or --dest to specify the bash completion modules directory
kislyuk commented 2 years ago

Thank you for your interest in argcomplete. Please follow the directions in the error message.

I am going to close this issue for now because it does not seem to be a bug in argcomplete. If you need help, feel free to comment or open a new issue.

avatar-lavventura commented 2 years ago

First I tried sudo activate-global-python-argcomplete // but activate-global-python-argcomplete --user I was looking for. Thanks