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

Required Python Version Inconsistency #3325

Closed
mlh758 opened this issue May 16, 2018 · 8 comments
Closed

Required Python Version Inconsistency #3325

mlh758 opened this issue May 16, 2018 · 8 comments
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made.

Comments

@mlh758
Copy link

mlh758 commented May 16, 2018

The installation documentation for installing AWS CLI here state that the required Python version is 2.6.5+

However, it installs PyYaml as a dependency and that requires Python 2.7.

It seems like it might be necessary to specify the version of PyYAML being pulled in to something else.

Edit: Although 3.12 was released 2 years ago. Surely someone else would have run into this problem by now?

@joguSD
Copy link
Contributor

joguSD commented May 16, 2018

Is there an error or warning that you're getting when trying to run the cli on 2.6?

@joguSD joguSD added the closing-soon This issue will automatically close in 4 days unless further comments are made. label May 16, 2018
@lorengordon
Copy link
Contributor

That page right at the top indicates it is "historical" which to me would mean it is not necessarily accurate. The project's setup.py still lists support for python 2.6:

And there are issues/pull requests discussing keeping or deprecating it, thus far landing in favor of keeping it. Though currently there is an active pull request where the discussion looks to be leaning towards deprecating py2.6:

@mlh758
Copy link
Author

mlh758 commented May 16, 2018

I was installing it with Chef which seems to just pip install the aws cli tool. While it was installing PyYAML a syntax error was thrown from a setup.py file and the message was saying I was using an unsupported version of Python.

That brought me to the PyYAML docs.

We're just upgrading Python to 3.4.5 since there wasn't anything keeping us on the older version, it's just what came on the VM's image so this isn't a major blocker for me.

@mlh758
Copy link
Author

mlh758 commented May 16, 2018

image

@joguSD
Copy link
Contributor

joguSD commented May 16, 2018

The actual issue is not that pyyaml doesn't support 2.6, but the version of the wheel package being used to build the wheel for pyyaml doesn't support 2.6.

@mlh758
Copy link
Author

mlh758 commented May 16, 2018

Ah, I assumed it was part of pyyaml. Same sort of problem though, isn't it?

@lorengordon
Copy link
Contributor

No, this is about the managing the local environment in which pip is executing. Pyyaml can't actually control that when you run pip install. It ends up being a user problem. You can pip install 'wheel<0.30.0' and then pyyaml ought to build just fine.

There are actually now three "setup" packages whose versions are important to control on py2.6, setuptools<37, wheel<0.30.0, and pip<10. All have deprecated support for py2.6 in their latest versions, so if you are running on py2.6, it's up to you to use versions that support the runtime.

@mlh758
Copy link
Author

mlh758 commented May 16, 2018

But if the package is trying to support older runtimes shouldn't it fix dependency versions that support that runtime as well?

In any case we upgraded Python to 3.4.3 and are getting the same error. So there has to be something else going on. It's working with chef in our lower environments and in our test VMs and I just verified that the Python versions (before bumping to 3.4.3), wheel versions, and pyyaml are the same as in our lower environments which built successfully.

Unless pip linked to the older install of Python in a way I didn't anticipate (I just aliased python3 over python after upgrading) there has to be something else going on.

@mlh758 mlh758 closed this as completed May 16, 2018
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
…#3325)

* add implementation and update unit tests

* update order of guided prompts

* update current integration tests

* add new integration tests

* lint

* remove comment

* fix test typos and remove unnecessary things

* revert boto stubs version bump because of mypy issues

* ux feedback -- change fail message

* change method name for checking stack status not in progress

* move click message to commands package

* replace click with colored log.info

* not necessary to skip test anymore
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.
Projects
None yet
Development

No branches or pull requests

3 participants