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

Release 1.19.80 errors on CentOS 7 #6190

Closed
2 tasks done
andrew-glenn opened this issue May 26, 2021 · 2 comments
Closed
2 tasks done

Release 1.19.80 errors on CentOS 7 #6190

andrew-glenn opened this issue May 26, 2021 · 2 comments
Assignees
Labels
duplicate This issue is a duplicate. guidance Question that needs advice or information. installation

Comments

@andrew-glenn
Copy link

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
A clear and concise description of what the bug is.

SDK version number

Platform/OS/Hardware/Device
CentOS 7

To Reproduce (observed behavior)
pip install awscli for v 1.19.80 doesn't work.

Expected behavior
It works.

1.19.80 errors out.

[root@ip-10-0-130-49 log]# pip install awscli==1.19.80
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting awscli==1.19.80
  Using cached awscli-1.19.80.tar.gz (1.4 MB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jR6k9F/awscli/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jR6k9F/awscli/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-rKjlcQ
         cwd: /tmp/pip-install-jR6k9F/awscli/
    Complete output (3 lines):
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    error in awscli setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

1.19.79 works.

[root@ip-10-0-130-49 log]# pip install awscli==1.19.79
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting awscli==1.19.79
  Using cached awscli-1.19.79-py2.py3-none-any.whl (3.6 MB)
Requirement already satisfied: colorama<0.4.4,>=0.2.5 in /usr/lib/python2.7/site-packages (from awscli==1.19.79) (0.4.3)
Requirement already satisfied: rsa<=4.5.0,>=3.1.2; python_version == "2.7" in /usr/lib/python2.7/site-packages (from awscli==1.19.79) (4.5)
Requirement already satisfied: s3transfer<0.5.0,>=0.4.0 in /usr/lib/python2.7/site-packages (from awscli==1.19.79) (0.4.2)
Requirement already satisfied: PyYAML<5.5,>=3.10 in /usr/lib64/python2.7/site-packages (from awscli==1.19.79) (3.10)
Requirement already satisfied: botocore==1.20.79 in /usr/lib/python2.7/site-packages (from awscli==1.19.79) (1.20.79)
Requirement already satisfied: docutils<0.16,>=0.10 in /usr/lib/python2.7/site-packages (from awscli==1.19.79) (0.15.2)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/lib/python2.7/site-packages (from rsa<=4.5.0,>=3.1.2; python_version == "2.7"->awscli==1.19.79) (0.4.8)
Requirement already satisfied: futures<4.0.0,>=2.2.0; python_version == "2.7" in /usr/lib/python2.7/site-packages (from s3transfer<0.5.0,>=0.4.0->awscli==1.19.79) (3.3.0)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/lib/python2.7/site-packages (from botocore==1.20.79->awscli==1.19.79) (0.10.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python2.7/site-packages (from botocore==1.20.79->awscli==1.19.79) (2.8.1)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/lib/python2.7/site-packages (from botocore==1.20.79->awscli==1.19.79) (1.26.4)
Requirement already satisfied: six>=1.5 in /usr/lib/python2.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore==1.20.79->awscli==1.19.79) (1.9.0)
Installing collected packages: awscli
Successfully installed awscli-1.19.79
[root@ip-10-0-130-49 log]#
@andrew-glenn andrew-glenn added the needs-triage This issue or PR still needs to be triaged. label May 26, 2021
andrew-glenn added a commit to aws-quickstart/quickstart-linux-bastion that referenced this issue May 26, 2021
@kdaily kdaily self-assigned this May 26, 2021
@kdaily kdaily added bug This issue is a bug. installation investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels May 26, 2021
@nateprewitt
Copy link
Member

Hey @andrew-glenn,

Thanks for reaching out! This appears to be a duplicate of #6064, #6092, and #6094. The setup.py in the AWS CLI requires a semi-recent version of setuptools (within the last 7 years) but it appears you're using one that is from 2014 or earlier. We have the exact requirements documented here.

Nothing around this setup changed between 1.19.79 and 1.19.80, it's been in place since 1.19.40. There are a couple of interesting pieces of information from your logs that point to the issue though.

The lines your version of setuptools is unhappy with are here. This chooses different requirements for rsa depending on the version of Python you're using. We know this worked on your system at one point, because the cached installation of awscli==1.19.79 has this line:

Requirement already satisfied: rsa<=4.5.0,>=3.1.2; python_version == "2.7" in /usr/lib/python2.7/site-packages (from awscli==1.19.79) (4.5)

So it was able to properly parse the installation requirements when you first installed 1.19.79. We'd recommend making sure your system is using setuptools>=36.2.0 to ensure things work consistently.

It may also be important to note we're ~6 weeks away from end of support for Python 2.7 in the CLI.

@kdaily kdaily added guidance Question that needs advice or information. closing-soon This issue will automatically close in 4 days unless further comments are made. duplicate This issue is a duplicate. and removed bug This issue is a bug. investigating This issue is being investigated and/or work is in progress to resolve the issue. closing-soon This issue will automatically close in 4 days unless further comments are made. labels May 26, 2021
@kdaily kdaily closed this as completed May 26, 2021
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

tlindsay42 pushed a commit to aws-quickstart/quickstart-linux-bastion that referenced this issue Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate. guidance Question that needs advice or information. installation
Projects
None yet
Development

No branches or pull requests

3 participants