Amazon Web Services Elastic Beanstalk Programming Technology

AWS: EB CLI Throws Exceptions VersionConflict and/or DistributionNotFound

When running EB CLI, do you run into the following error?

$ eb deploy
Traceback (most recent call last):
  File "", line 635, in _build_master
  File "", line 942, in require
    needed = self.resolve(parse_requirements(requirements))
  File "", line 834, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (colorama 0.3.3 (c:python34libsite-packages), Requirement.parse('colorama==0.3.7'), {'awsebcli'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 5, in <module>
    from pkg_resources import load_entry_point
  File "", line 2900, in <module>
  File "", line 2886, in _call_aside
    f(*args, **kwargs)
  File "", line 2913, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "", line 637, in _build_master
    return cls._build_from_requirements(__requires__)
  File "", line 650, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'colorama==0.3.7' distribution was not found and is required by awsebcli

I ran into this error today. Apparently it was caused by installing AWS CLI after EB CLI:
pip install awscli
Reinstalling EB CLI solved the issue:
pip install awsebcli


One reply on “AWS: EB CLI Throws Exceptions VersionConflict and/or DistributionNotFound”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s