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

cannot install awslogs #307

Closed
Chris-Leeworthy opened this issue Jul 20, 2020 · 1 comment
Closed

cannot install awslogs #307

Chris-Leeworthy opened this issue Jul 20, 2020 · 1 comment

Comments

@Chris-Leeworthy
Copy link

Chris-Leeworthy commented Jul 20, 2020

Hi, I am trying to install awscli and awslogs on new machine.
First I installed awscli, the output is in the code block below.

$ pip install awscli
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: awscli in /usr/lib/python3.8/site-packages (1.18.97)
Requirement already satisfied: botocore==1.17.20 in /usr/lib/python3.8/site-packages (from awscli) (1.17.20)
Collecting docutils<0.16,>=0.10
 Downloading docutils-0.15.2-py3-none-any.whl (547 kB)
    |████████████████████████████████| 547 kB 699 kB/s 
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /usr/lib/python3.8/site-packages (from awscli) (0.3.3)
Requirement already satisfied: PyYAML<5.4,>=3.10 in /usr/lib/python3.8/site-packages (from awscli) (5.3.1)
Requirement already satisfied: colorama<0.4.4,>=0.2.5 in /usr/lib/python3.8/site-packages (from awscli) (0.4.3)
Collecting rsa<=4.5.0,>=3.1.2
 Downloading rsa-4.5-py2.py3-none-any.whl (36 kB)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/lib/python3.8/site-packages (from botocore==1.17.20->awscli) (0.10.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3.8/site-packages (from botocore==1.17.20->awscli) (2.8.1)
Requirement already satisfied: urllib3<1.26,>=1.20 in /usr/lib/python3.8/site-packages (from botocore==1.17.20->awscli) (1.25.9)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/lib/python3.8/site-packages (from rsa<=4.5.0,>=3.1.2->awscli) (0.4.8)
Requirement already satisfied: six>=1.5 in /usr/lib/python3.8/site-packages (from python-dateutil<3.0.0,>=2.1->botocore==1.17.20->awscli) (1.15.0)
Installing collected packages: docutils, rsa
Successfully installed docutils-0.15.2 rsa-4.5
$
$ aws --version
aws-cli/1.18.97 Python/3.8.3 Linux/5.6.19-2-MANJARO botocore/1.17.20

Then I try to install awslogs but it reports 2 errors. I've put the errors below and then the full install diagnostics

ERROR: awscli 1.18.97 has requirement botocore==1.17.20, but you'll have botocore 1.12.253 which is incompatible.
ERROR: awscli 1.18.97 has requirement s3transfer<0.4.0,>=0.3.0, but you'll have s3transfer 0.1.13 which is incompatible.
$ pip install awslogs 
Defaulting to user installation because normal site-packages is not writeable
Collecting awslog
  Downloading awslog-0.1.6.tar.gz (5.5 kB)
Collecting boto3==1.9
  Downloading boto3-1.9.0-py2.py3-none-any.whl (128 kB)
     |████████████████████████████████| 128 kB 892 kB/s 
Collecting six==1.11
  Downloading six-1.11.0-py2.py3-none-any.whl (10 kB)
Collecting dateparser==0.7.0
  Downloading dateparser-0.7.0-py2.py3-none-any.whl (357 kB)
     |████████████████████████████████| 357 kB 1.1 MB/s 
Collecting crayons==0.1.2
  Downloading crayons-0.1.2.tar.gz (3.2 kB)
Collecting botocore<1.13.0,>=1.12.0
  Downloading botocore-1.12.253-py2.py3-none-any.whl (5.7 MB)
     |████████████████████████████████| 5.7 MB 1.1 MB/s 
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/lib/python3.8/site-packages (from boto3==1.9->awslog) (0.10.0)
Collecting s3transfer<0.2.0,>=0.1.10
  Downloading s3transfer-0.1.13-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 1.8 MB/s 
Requirement already satisfied: python-dateutil in /usr/lib/python3.8/site-packages (from dateparser==0.7.0->awslog) (2.8.1)
Collecting tzlocal
  Downloading tzlocal-2.1-py2.py3-none-any.whl (16 kB)
Collecting regex
  Downloading regex-2020.7.14-cp38-cp38-manylinux2010_x86_64.whl (672 kB)
     |████████████████████████████████| 672 kB 2.2 MB/s 
Requirement already satisfied: pytz in /usr/lib/python3.8/site-packages (from dateparser==0.7.0->awslog) (2020.1)
Requirement already satisfied: colorama in /usr/lib/python3.8/site-packages (from crayons==0.1.2->awslog) (0.4.3)
Requirement already satisfied: docutils<0.16,>=0.10 in ./.local/lib/python3.8/site-packages (from botocore<1.13.0,>=1.12.0->boto3==1.9->awslog) (0.15.2)
Requirement already satisfied: urllib3<1.26,>=1.20; python_version >= "3.4" in /usr/lib/python3.8/site-packages (from botocore<1.13.0,>=1.12.0->boto3==1.9->awslog) (1.25.9)
Building wheels for collected packages: awslog, crayons
  Building wheel for awslog (setup.py) ... done
  Created wheel for awslog: filename=awslog-0.1.6-py3-none-any.whl size=5734 sha256=70c0e5f8f896f0d77c66b1d1fdd6ac1a4eb2d9b6d2dea12846d6599efd9e88be
  Stored in directory: /home/chris/.cache/pip/wheels/da/52/25/3ded631a249ad4a20bc12f36f6390969ff9b7a1d8419360bb2
  Building wheel for crayons (setup.py) ... done
  Created wheel for crayons: filename=crayons-0.1.2-py3-none-any.whl size=3125 sha256=d6c7a6c87b1e4e995890eca91da97633eb2a83874a47a71f33de5b486f9940ec
  Stored in directory: /home/chris/.cache/pip/wheels/9d/33/1b/e95d523d4fa1a1d778fd63f5d8a1c29686c27b4aa29023b869
Successfully built awslog crayons
ERROR: awscli 1.18.97 has requirement botocore==1.17.20, but you'll have botocore 1.12.253 which is incompatible.
ERROR: awscli 1.18.97 has requirement s3transfer<0.4.0,>=0.3.0, but you'll have s3transfer 0.1.13 which is incompatible.
Installing collected packages: botocore, s3transfer, boto3, six, tzlocal, regex, dateparser, crayons, awslog
Successfully installed awslog-0.1.6 boto3-1.9.0 botocore-1.12.253 crayons-0.1.2 dateparser-0.7.0 regex-2020.7.14 s3transfer-0.1.13 six-1.11.0 tzlocal-2.1
@Chris-Leeworthy
Copy link
Author

I don't know if it counts as a fix as such, but I removed AWS CLI version 1, installed AWS CLI V2 and then installed awslogs, the installation was successful and the tool is now working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant