Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on Mac #3237

Closed
rahul003 opened this issue Apr 4, 2018 · 3 comments
Closed

Unable to install on Mac #3237

rahul003 opened this issue Apr 4, 2018 · 3 comments
Labels
guidance Question that needs advice or information.

Comments

@rahul003
Copy link

rahul003 commented Apr 4, 2018

Hi,

I've spent a lot of time towards installing awscli for mac and failed. How do I go about doing this?
This is the error I get when I try to run it.

huilgolr$ aws
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 "/usr/local/aws/lib/python2.7/site-packages/awscli/clidriver.py", line 58, in main
    driver = create_clidriver()
  File "/usr/local/aws/lib/python2.7/site-packages/awscli/clidriver.py", line 69, in create_clidriver
    event_hooks=emitter)
  File "/usr/local/aws/lib/python2.7/site-packages/awscli/plugin.py", line 44, in load_plugins
    modules = _import_plugins(plugin_mapping)
  File "/usr/local/aws/lib/python2.7/site-packages/awscli/plugin.py", line 58, in _import_plugins
    plugins.append(__import__(path))
ImportError: No module named botocore_amazon
@JordonPhillips
Copy link
Member

How did you install? Do you have a [plugins] section in your ~/.aws/config file?

@JordonPhillips JordonPhillips added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Apr 5, 2018
@rahul003
Copy link
Author

rahul003 commented Apr 5, 2018

I did pip install awscli
Then I tried the awscku bundle. sudo /usr/local/bin/python2.7 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws like this. I tried with python2 as well as python3. I installed python3 with brew.

Even when I install it for python3 it shows me the above error whose trace has python2.7 for some reason.

Yes I have a plugins section

[plugins]
amazon = botocore_amazon

@rhcarvalho
Copy link

This is similar to #2159.

As a workaround, if the plugin is not installed on the same Python where aws-cli is installed, you can either:

I've been using the patch for some time to allow me to have a plugin referenced in my config without breaking aws-cli when the plugin is not installed.

@kyleknap kyleknap removed the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jun 14, 2018
@justnance justnance added the guidance Question that needs advice or information. label Dec 7, 2018
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

6 participants