Skip to content

aws configure --profile wasabi (ModuleNotFoundError) #24

Description

@ForkedInTime

Performing the following:

aws s3 ls --profile wasabi

yields the following:
Traceback (most recent call last): File "/usr/local/bin/aws", line 27, in <module> sys.exit(main()) File "/usr/local/bin/aws", line 23, in main return awscli.clidriver.main() File "/home/yetipaw/.local/lib/python3.10/site-packages/awscli/clidriver.py", line 69, in main driver = create_clidriver() File "/home/yetipaw/.local/lib/python3.10/site-packages/awscli/clidriver.py", line 78, in create_clidriver load_plugins(session.full_config.get('plugins', {}), File "/home/yetipaw/.local/lib/python3.10/site-packages/awscli/plugin.py", line 44, in load_plugins modules = _import_plugins(plugin_mapping) File "/home/yetipaw/.local/lib/python3.10/site-packages/awscli/plugin.py", line 58, in _import_plugins plugins.append(__import__(path)) ModuleNotFoundError: No module named 'site-packages-path'

The .aws config file:

[profile wasabi]
region = us-east-1
s3 =
endpoint_url = https://s3.wasabisys.com
s3api =
endpoint_url = https://s3.wasabissys.com
[plugins]
endpoint = awscli_plugin_endpoint
cli_legacy_plugin_path = site-packages-path

Trying the following yields the same error:
➜ .aws aws s3 ls --endpoint-url=https://s3.wasabisys.com
Traceback (most recent call last):
File "/usr/local/bin/aws", line 27, in
sys.exit(main())
File "/usr/local/bin/aws", line 23, in main
return awscli.clidriver.main()
File "/home/yetipaw/.local/lib/python3.10/site-packages/awscli/clidriver.py", line 69, in main
driver = create_clidriver()
File "/home/yetipaw/.local/lib/python3.10/site-packages/awscli/clidriver.py", line 78, in create_clidriver
load_plugins(session.full_config.get('plugins', {}),
File "/home/yetipaw/.local/lib/python3.10/site-packages/awscli/plugin.py", line 44, in load_plugins
modules = _import_plugins(plugin_mapping)
File "/home/yetipaw/.local/lib/python3.10/site-packages/awscli/plugin.py", line 58, in _import_plugins
plugins.append(import(path))
ModuleNotFoundError: No module named 'site-packages-path'
➜ .aws

moving the config file to config-backup:
➜ .aws aws s3 ls --endpoint-url=https://s3.wasabisys.com
2022-05-08 09:15:39 somebucket
2022-05-08 14:21:29 anotherbucket
➜ .aws

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions