aws / aws-elastic-beanstalk-cli

The EB CLI is a command line interface for Elastic Beanstalk that provides interactive commands that simplify creating, updating and monitoring environments from a local repository.
Apache License 2.0
162 stars 78 forks source link

awsebcli fails to install through pip #327

Closed yuriploc closed 1 year ago

yuriploc commented 1 year ago

Description

Trying to install awsebcli from pip.

Steps to reproduce

$ python --version
Python 3.10.5

$ pip --version 
pip 22.0.4 from .asdf/installs/python/3.10.5/lib/python3.10/site-packages/pip (python 3.10)

$ pip install awsebcli
Collecting awsebcli
  Using cached awsebcli-3.20.4.tar.gz (260 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-xk26uo_e/awsebcli_685f68d9c1994eec8fcfa2f7b0c463b8/setup.py", line 22, in <module>
          with open("requirements.txt") as req:
      FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.4; however, version 23.0.1 is available.
You should consider upgrading via the '.asdf/installs/python/3.10.5/bin/python3.10 -m pip install --upgrade pip' command.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Linux 6.1.10-200.fc37.x86_64
  2. EBCLI version: 3.20.4 (2023-02-27)
yuriploc commented 1 year ago

This also fails in CircleCI running ubuntu-2004:202111-01

willywu commented 1 year ago

It looks like this is breaking https://circleci.com/developer/orbs/orb/circleci/aws-elastic-beanstalk (which performs pipx install awsebcli), preventing any EB deployments through CircleCI. Thoughts on yanking the most recent awsebcli package release?

timbrownsf commented 1 year ago

Happening for us as well.

ikegentz commented 1 year ago

We are experiencing the same issue, but it is resolved by specifying the earlier version:

pipx install awsebcli==3.20.3
yuriploc commented 1 year ago

As @kirillrdy pointed out here, the requirements.txt is not present in pip.

JosephUrciuoli commented 1 year ago

+1 - also seeing this issue. Error details on Circle CI

PIP STDOUT
----------
Collecting awsebcli
Downloading awsebcli-3.20.4.tar.gz (260 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 260.7/260.7 kB 5.3 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'

PIP STDERR
----------
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-9i16_ygi/awsebcli_4c8605696a4d48b990ba577d252b73f8/setup.py", line 22, in <module>
with open("requirements.txt") as req:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

running on

Build-agent version 1.0.161088-15164ead (2023-02-28T11:41:04+0000)
System information:
 Server Version: 20.10.18
 Storage Driver: overlay2
  Backing Filesystem: xfs
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Kernel Version: 5.15.0-1028-aws
 Operating System: Ubuntu 20.04.5 LTS
 OSType: linux
 Architecture: x86_64

Starting container cimg/python:3.8
cimg/python:3.8:
  using image cimg/python@sha256:9ab6ff6b482aef7c157bf1540ff661cbed0586f3b11f6cce20a3e751469367f0
  pull stats: Image was already available so the image was not pulled
  time to create container: 150ms
Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.
  image is cached as cimg/python:3.8, but refreshing...
3.8: Pulling from cimg/python
Digest: sha256:9ab6ff6b482aef7c157bf1540ff661cbed0586f3b11f6cce20a3e751469367f0
Status: Image is up to date for cimg/python:3.8
Time to upload agent and config: 419.54556ms
Time to start containers: 394.972247ms
kirillrdy commented 1 year ago

https://github.com/aws/aws-elastic-beanstalk-cli/pull/330

yuriploc commented 1 year ago

Closing as resolved by https://github.com/aws/aws-elastic-beanstalk-cli/pull/330.