bitter-ability-32190
09/06/2022, 5:52 PMawscli
(happens in any layout
mode).
Pex attached...
$ python3.8 aws.pex
Traceback (most recent call last):
File "/home/joshuacannon/.pex/venvs/55691004f59e3a2b4d0b5c07b229db01742aa7db/779eb2cc0ca9e2fdd204774cbc41848e4e7c5055/bin/aws", line 21, in <module>
import awscli.clidriver
ModuleNotFoundError: No module named 'awscli'
./pants run path/to/deps:aws
I can run the PEX, but ./pants package
has this afflictionvenv
mode is what kills thisenough-analyst-54434
09/06/2022, 6:27 PMPEX_TOOLS=1 aws.pex venv right/here && right/here/pex
work? If so, I can Point to a Pants issue - there is a Pex flag it does not expose.jsirois@Gill-Windows:~$ /mnt/c/Users/John\ Sirois/Downloads/aws.pex
Note: AWS CLI version 2, the latest major version of the AWS CLI, is now stable and recommended for general use. For more information, see the AWS CLI version 2 installation instructions at: <https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html>
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: command
jsirois@Gill-Windows:~$ cp /mnt/c/Users/John\ Sirois/Downloads/aws.pex .
jsirois@Gill-Windows:~$ rm -rf ~/.pex/
jsirois@Gill-Windows:~$ python3.8 aws.pex
Note: AWS CLI version 2, the latest major version of the AWS CLI, is now stable and recommended for general use. For more information, see the AWS CLI version 2 installation instructions at: <https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html>
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: command
bitter-ability-32190
09/06/2022, 6:31 PMenough-analyst-54434
09/06/2022, 6:31 PMbitter-ability-32190
09/06/2022, 6:31 PMvenv
in my pex root did the trick. 😞mv
😞enough-analyst-54434
09/06/2022, 6:31 PM