python - aws cli error when running as a normal user but not root -
i've been testing sandbox server aws cli. installed pip, boto, , awscli root, , can run aws s3 ls quite root, when try run same command myself (not root), clidriver error follows:
$ aws s3 ls traceback (most recent call last): file "/usr/local/bin/aws", line 19, in <module> import awscli.clidriver importerror: no module named awscli.clidriver
anybody have idea permissions missing, considering works root?
no, both users (myself , root) using same python. problem turned out ansible playbook put awscli on system. site-package had permissions root operate them. edited playbook , added umask setting pip tasks using. took quite bit of experimenting working ansible doesn't seem change permissions if file hasn't changed. so, ended doing pip uninstall on several packages , rerunning playbook several times. eventually, after determining umask value had contained in quotations (unlike ansible webpage example), worked. thought however.
Comments
Post a Comment