donnemartin / saws

A supercharged AWS command line interface (CLI).
Other
5.23k stars 280 forks source link

pipsi / pipx install on osx broken: aws: command not found #120

Open Braynid opened 4 years ago

Braynid commented 4 years ago

I've tried installing saws using pipsi as per the docs and after seeing that pipsi is deprecated I've tried installing via pipx. Both times I've got the errors below when running any command under saws. aws and pygmentize are installed in the virtualenv created by pipsi/pipx so my guess is that the saws interactive shell somehow doesn't start in the same virtualenv.

osx version: 10.15.3 Python 2.7.16

saws> aws ec2 ls --ec2-state
/bin/sh: aws: command not found
/bin/sh: pygmentize: command not found
lllama commented 4 years ago

I have the same issue. If you hit F2 and turn colour off then you can avoid the error. Granted I then get another but it's not a pygmentize one.

chagui commented 2 years ago

Got the same error, after reading pipx docs it is expected. You can solve it by installing separately the missing dependencies or with --include-deps. Note that the later may cause conflicts, pipx will prompt a warning if it happens.

--include-deps        Include apps of dependent packages

See https://pypa.github.io/pipx/docs/#pipx-install