Aws-cli: pkg_resources.DistributionNotFound error when running 'eb' after fresh install

Created on 4 Mar 2017  路  6Comments  路  Source: aws/aws-cli

I just tried installing the awsebcli on a fresh Ubuntu 14.04 (on Linux subsystem for Windows) using sudo pip install awsebcli, and now, launching the eb command just returns the following error:

flavien@XPS-FLAVIEN:~$ eb
Traceback (most recent call last):
  File "/usr/local/bin/eb", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3036, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3020, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 654, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 854, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'termcolor==1.1.0' distribution was not found and is required by awsebcli

eb used to work just fine a couple of hours ago, before I tried upgrading.

Most helpful comment

Faced this issue yesterday - on Ubuntu 16.04 | EB CLI 3.12.3 (Python 2.7.1).

Luckily, found Blessan Kurien's answer on this stackoverflow post.
Ran pip install --upgrade --user awsebcli 'twice' and the issue got resolved.
Still surprised how that worked o.O

All 6 comments

I eventually got it working.

Sorry you were having trouble. In future, eb cli questions should go to the elastic beanstalk forum as this is the repo for the generalized aws cli.

@Flavien How did you get it working? Running intot h same problem.

Me too running in same problem

Faced this issue yesterday - on Ubuntu 16.04 | EB CLI 3.12.3 (Python 2.7.1).

Luckily, found Blessan Kurien's answer on this stackoverflow post.
Ran pip install --upgrade --user awsebcli 'twice' and the issue got resolved.
Still surprised how that worked o.O

@vinay-vissh thanks for the tips, i only had to run it once for it to work.

Was this page helpful?
0 / 5 - 0 ratings