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

getting upgrades working on mac #1954

Closed
matthewchung74 opened this issue May 4, 2016 · 5 comments
Closed

getting upgrades working on mac #1954

matthewchung74 opened this issue May 4, 2016 · 5 comments
Assignees
Labels
documentation This is a problem with documentation.

Comments

@matthewchung74
Copy link

To upgrade the awscli on my mac, an AWS support person pointed me to the commands

sudo pip install --upgrade pip
sudo pip install --upgrade --ignore-installed awscli

can the read me be updated to reflect that?

@kyleknap
Copy link
Contributor

kyleknap commented May 5, 2016

Does pip install --upgrade awscli not perform the upgrade for you because that works just fine for me on my mac and that is what is in the README? Here is what I did:

$ aws --version
aws-cli/1.7.25 Python/2.7.10 Darwin/15.4.0

$ pip install --upgrade awscli

$ aws --version
aws-cli/1.10.26 Python/2.7.10 Darwin/15.4.0 botocore/1.4.17

@kyleknap kyleknap self-assigned this May 5, 2016
@kyleknap kyleknap added question closing-soon This issue will automatically close in 4 days unless further comments are made. labels May 5, 2016
@matthewchung74
Copy link
Author

matthewchung74 commented May 6, 2016

no it did not work. i either got

OSError: [Errno 1] Operation not permitted: '/var/folders/dn/p7t_db8x7tx4d5ztwyfhlfl40000gn/T/pip-_Kl_sw-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

or after adding --ignore-installed

cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/temp.macosx-10.11-intel-2.7/check_libyaml.c -o build/temp.macosx-10.11-intel-2.7/check_libyaml.o
    build/temp.macosx-10.11-intel-2.7/check_libyaml.c:2:10: fatal error: 'yaml.h' file not found
    #include <yaml.h>
             ^
    1 error generated.

    libyaml is not found or a compiler error: forcing --without-libyaml
    (if libyaml is installed correctly, you may need to
     specify the option --include-dirs or uncomment and
     modify the parameter include_dirs in setup.cfg)
    running install_lib
    copying build/lib.macosx-10.11-intel-2.7/yaml/__init__.py -> /Library/Python/2.7/site-packages/yaml
    error: could not delete '/Library/Python/2.7/site-packages/yaml/__init__.py': Permission denied

but after doing a sudo on it, it was fine.

if u have access to the AWS case ids? if so, 1737348701 has more details.

@JordonPhillips
Copy link
Member

Sounds like you're installing it on the system python, which requires sudo to use pip.

@kyleknap
Copy link
Contributor

kyleknap commented May 6, 2016

This looks like the same issue as this larger thread. In our user guide, we have a snippet for this scenario with OSX that is similar that users have been doing in the other GitHub issue that I linked:

$ sudo pip install awscli --ignore-installed six

@foobar8675 Can you confirm the line above works for you?

I would be inclined to mention this line in our README given it is already in our user guide.

@kyleknap kyleknap added documentation This is a problem with documentation. response-needed and removed closing-soon This issue will automatically close in 4 days unless further comments are made. question labels May 6, 2016
@matthewchung74
Copy link
Author

yes it did work. thanks! I was mainly focusing on the github readme page. maybe link to the user guide in the github readme?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is a problem with documentation.
Projects
None yet
Development

No branches or pull requests

4 participants