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

Can't install awscli using Python 3.7 #3427

Closed
ViktorHaag opened this issue Jul 3, 2018 · 18 comments
Closed

Can't install awscli using Python 3.7 #3427

ViktorHaag opened this issue Jul 3, 2018 · 18 comments
Assignees
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. dependencies This issue is a problem in a dependency.

Comments

@ViktorHaag
Copy link

ViktorHaag commented Jul 3, 2018

It seems like awscli pinning to an older version of pyyaml is, at least for the moment, causing a problem attempting to install under Python3.7.

See (yaml/pyyaml#126) for reference.

The PyYAML team is apparently attempting to release a fixed package for 3.7 users, but it looks like it might require 4.2b4 at the earliest; it's unclear to me whether they'll provide re-built wheels for older versions like the ones that awscli relies upon.

As the default Python3 with homebrew is now 3.7, I expect this will cause widespread breakages for awcli users.

Is it possible to un-pin the PyYAML dependency and reset it to >4.1?

See also #2290 and #3414

@ViktorHaag
Copy link
Author

Closed as addressed with #3414

@JordonPhillips
Copy link
Member

Gonna re-open this until we actually merge a fix. Generally speaking I wouldn't want to upgrade to 4.x even if it appears at first glance to be safe, at least not without a thorough vetting. But it does look like they're going to release 3.13 soon which will be 3.12 exactly but with 3.7 support. Looks like their current plans are to put that out on Thursday: yaml/pyyaml#193

@JordonPhillips
Copy link
Member

JordonPhillips commented Jul 3, 2018

Another complication to this is that we can't set Travis up for testing. The only way to do that right now is to use an undocumented experimental image with elevated privileges, or use a pre-release version that isn't wholly representative of the state of the released version.

travis-ci/travis-ci#9815

@number5
Copy link

number5 commented Jul 4, 2018

Here is the temporary fix to install awscli or boto3 on Python 3.7 https://gist.github.com/number5/015eef7783e7ddf7d5a4176d4e6bc975

(Should not be required after pyyaml release 3.13 on 5th July and #3430 merged and released)

@asottile
Copy link
Contributor

asottile commented Jul 6, 2018

I just opened #3430 which enables the re-release of 3.12: 3.13

@tylerhackbart
Copy link

tylerhackbart commented Jul 6, 2018

Anyone still having this issue, our team is when deploying through circleCI

@jakul
Copy link

jakul commented Jul 6, 2018

@tylerhackbart You need to wait for #3430 to be merged & released.

@bureson
Copy link

bureson commented Jul 9, 2018

@JordonPhillips the MR is ready and there is even a workaround for Travis, can you prioritize it please?

@antonioned
Copy link

antonioned commented Jul 11, 2018

@tylerhackbart I have the pip install awscli working on circleci, that has been fixed. But the pip install awsebcli is not. Anything on this ?

@number5
Copy link

number5 commented Jul 12, 2018

@antonioned awsebcli is a different project (not even on github), you better ask their authors, see #2696

@diehlaws diehlaws added dependencies This issue is a problem in a dependency. and removed dependency-issue labels Jan 4, 2019
@ilanbiala
Copy link

When I run the following, AWS configure is still looking for Python 3.6...has this been fixed?

$ aws configure
-bash: /usr/local/bin/aws: /usr/local/opt/python3/bin/python3.6: bad interpreter: No such file or directory

@asottile
Copy link
Contributor

Try brew reinstall awscli

@asottile
Copy link
Contributor

This issue is fixed though, pyyaml 3.13 was released

@justnance justnance added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Feb 18, 2019
@justnance justnance self-assigned this Feb 18, 2019
@justnance
Copy link

justnance commented Feb 18, 2019

Thanks @ViktorHaag for opening this issue and @asottile for your latest updates. It appears all the related PRs are merged and the work is complete. I am setting this issue to close soon pending any new feedback.

@no-response
Copy link

no-response bot commented Feb 25, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Feb 25, 2019
@bitfede
Copy link

bitfede commented Aug 28, 2020

Still experiencing the same issue as the user @ilanbiala

I get this error when trying to execute the aws cli:

-bash: /Users/fede/Library/Python/3.7/bin/aws: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory

The suggested solution of running brew reinstall awscli does not fix the problem... Anyone has had this similar issue?

@dwene
Copy link

dwene commented Sep 4, 2020

I also am experiencing this issue. Tried reinstalling awscli also, still get the same error as @bitfede.
It appears I'm on python version 3.8.5, wondering why it hard links to 3.7.

@matthinea
Copy link

Hack, but installing [email protected] via homebrew and then cping that installation into the directory expected by awscli cleared the error for me.

brew install [email protected]
cp -r /usr/local/opt/[email protected]/bin/python3.7 /usr/local/opt/python/bin/python3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. dependencies This issue is a problem in a dependency.
Projects
None yet
Development

No branches or pull requests