Skip to content

Instantly share code, notes, and snippets.

@muhanLuo
Created June 15, 2026 00:09
Show Gist options
  • Select an option

  • Save muhanLuo/66d9cf6a67775f79cedad4c3b15f54bb to your computer and use it in GitHub Desktop.

Select an option

Save muhanLuo/66d9cf6a67775f79cedad4c3b15f54bb to your computer and use it in GitHub Desktop.
Fix for Pacu: 'Namespace' object has no attribute 'cli_binary_format'

PACU awscli Error

Problem

When you try to run an AWSCLI command in Pacu, you get the following error:

Pacu (beanstalk_secrets_session:beanstalk_admin) > aws --sts get-caller-identity

'Namespace' object has no attribute 'cli_binary_format'

Solution

Downgrade your version of AWS CLI from v2 to v1.

pipx install awscli
Pacu (beanstalk_secrets:beanstalk_admin) > aws --version
aws-cli/1.45.29 Python/3.12.3 Linux/6.18.33.1-microsoft-standard-WSL2 botocore/1.43.29

Explanation

As of June 2026, Pacu does not seem to be completely compatible with AWS CLI2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment