Awsebcli & aws-elasticbeanstalk installs fail with python issue


(Weston Houghton) #1

At some stage I was doing some additional Python work. I set up virtualenv to support that. After tossing that work and removing virtualenv I’m now having problems getting some of the AWS python tools working and at this stage I am a bit lost as to what to try next. The base issue as of right now is:

==> Downloading https://files.pythonhosted.org/packages/cd/52/74d6fb2c789f061c5abfd0084b9f0592b3d7f39ae73c24b8a885a07d09d4/awsebcli-3.14.6.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/04f5e825da6faf9150408a90bb5fb9bd752e2a72770d52fedbc3136e412ce5e1--awsebcli-3.14.6.tar.gz
==> Downloading https://files.pythonhosted.org/packages/33/bc/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012/virtualenv-16.0.0.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/02e9f856894cc3f1979f2bf31e2f709c30ef64ea80ce14a80cc83e384528d06f--virtualenv-16.0.0.tar.gz
==> python2.7 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/aws-elasticbeanstalk--homebrew-virtualenv-20181104-76862-1rp8fpt/target --install-scripts=/private/tmp/aws-elasticbeanstalk--homebrew-virtualenv-20181104-76
==> python2.7 -s /private/tmp/aws-elasticbeanstalk--homebrew-virtualenv-20181104-76862-1rp8fpt/target/bin/virtualenv -p python2.7 /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec
==> Downloading https://files.pythonhosted.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23/backports.ssl_match_hostname-3.5.0.1.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/63bb1af0b2c88bedcc6f21e4c0548724c66e56a856a4ef472810149f09f739a8--backports.ssl_match_hostname-3.5.0.1.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--backports.ssl_match_hostname-20181104-76862-2jupla/backports.ssl_match_hostname
==> Downloading https://files.pythonhosted.org/packages/51/c7/3af3ec267387d4a900a9e8f9a03a6c9068fb3c606c77bf2dd4558e1ea248/blessed-1.15.0.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/17d6a8327d5da2375cf42bf371fe64cc473bd0622503be896da09fb9014edbf3--blessed-1.15.0.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--blessed-20181104-76862-1hiwvo2/blessed-1.15.0
==> Downloading https://files.pythonhosted.org/packages/f0/b3/5b7cb91757aef1ad9241fb469c7dc25baa2ed6f491673d0fe11bc33886bb/botocore-1.12.18.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/b8c710f1b37edbbf46712058d70dd003ec5a3f93bd55d479a9a084377e3ae515--botocore-1.12.18.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--botocore-20181104-76862-wwql6x/botocore-1.12.18
==> Downloading https://files.pythonhosted.org/packages/57/8e/0698e10350a57d46b3bcfe8eff1d4181642fd1724073336079cb13c5cf7f/cached-property-1.5.1.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/e0ab7e84f2fcf7e7126443bf08c5062a329d9dd3ce28192adb9323fb264ca678--cached-property-1.5.1.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--cached-property-20181104-76862-19oq3mi/cached-property-1.5.1
==> Downloading https://files.pythonhosted.org/packages/70/60/608f0b8975f4ee7deaaaa7052210d095e0b96e7cd3becdeede9bd13674a1/cement-2.8.2.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/13a842aca8aba6cdb71f994a28c3148cca5a9613f70ed1d0127c24edbdc45e77--cement-2.8.2.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--cement-20181104-76862-11r08y6/cement-2.8.2
==> Downloading https://files.pythonhosted.org/packages/e1/0f/f8d5e939184547b3bdc6128551b831a62832713aa98c2ccdf8c47ecc7f17/certifi-2018.8.24.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/5217342f9a1c08ae03025d1d11763a8cc0b10c1a765c8b127528e23a675a6774--certifi-2018.8.24.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--certifi-20181104-76862-wrcwyz/certifi-2018.8.24
==> Downloading https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/de28644dd0ba2aaf30228e9b28ba90366e333e7a34e1b1f97cf85d0edd0cb278--chardet-3.0.4.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--chardet-20181104-76862-18fysr/chardet-3.0.4
==> Downloading https://files.pythonhosted.org/packages/e6/76/257b53926889e2835355d74fec73d82662100135293e17d382e2b74d1669/colorama-0.3.9.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/356060648beac2bcba7909cd5e2d4f6df72db538de72708128044daede742917--colorama-0.3.9.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--colorama-20181104-76862-1wlwume/colorama-0.3.9
==> Downloading https://files.pythonhosted.org/packages/66/d0/2f6702857613e8dc9190bd1224434be6e8b25bb86812a1642947baf320b8/docker-3.5.0.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/333b088a8712de6db402df8e2df65816cb67827da62f814a28ed3eda14e3d3d1--docker-3.5.0.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--docker-20181104-76862-1uxgepu/docker-3.5.0
==> Downloading https://files.pythonhosted.org/packages/d1/50/6c6f0ec7338844aa59ab24ef39c656b51fa65aecc8345d62173472c5b3a5/docker-compose-1.21.2.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/49e7ce73417ef50315409098cf58ddb9aadc53803f53af5b75e5ab7931d9827f--docker-compose-1.21.2.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--docker-compose-20181104-76862-1uew7f1/docker-compose-1.21.2
==> Downloading https://files.pythonhosted.org/packages/9e/7a/109e0a3cc3c19534edd843c16e792c67911b5b4072fdd34ddce90d49f355/docker-pycreds-0.3.0.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/52b6725e662aa306e1047e940b76676ff46145c69c97194e475e5aed61c0a23b--docker-pycreds-0.3.0.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--docker-pycreds-20181104-76862-1yg9lqi/docker-pycreds-0.3.0
==> Downloading https://files.pythonhosted.org/packages/8d/ee/e9ecce4c32204a6738e0a5d5883d3413794d7498fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/4b094cfbc0f3783c50a33ef223b873e917328282af0480c4da998f400c0e5b11--dockerpty-0.4.1.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--dockerpty-20181104-76862-fcoe8e/dockerpty-0.4.1
==> Downloading https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/cae543cf1748375c2e56c2a4984cfa49a5858a0a55e6b55a819dfe969ce443d9--docopt-0.6.2.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--docopt-20181104-76862-1mr9p88/docopt-0.6.2
==> Downloading https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-0.14.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/082747f2931278a960879f30afd38989c894b92d04eda36ead03e57dfb6703fc--docutils-0.14.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--docutils-20181104-76862-1t93l5u/docutils-0.14
==> Downloading https://files.pythonhosted.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/55ead4147b4dee2291833fc29a80558401e57e32e79c53392df1fac1007a964c--enum34-1.1.6.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--enum34-20181104-76862-lpoka6/enum34-1.1.6
==> Downloading https://files.pythonhosted.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/a5b62570fde0d109d35ac0e4ed891315853a7f2e164b739c8c22256e725e26a2--functools32-3.2.3-2.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--functools32-20181104-76862-1xmimap/functools32-3.2.3-2
==> Downloading https://files.pythonhosted.org/packages/f4/bd/0467d62790828c23c47fc1dfa1b1f052b24efdf5290f071c7a91d0d82fd3/idna-2.6.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/14e0db3d80ed562fc021f9f9b4519e0300aec0f136f5e9d845321f46f6fd0bbe--idna-2.6.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--idna-20181104-76862-hzzx3n/idna-2.6
==> Downloading https://files.pythonhosted.org/packages/97/8d/77b8cedcfbf93676148518036c6b1ce7f8e14bf07e95d7fd4ddcb8cc052f/ipaddress-1.0.22.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/fb0aea9efd06725fb81960c1f8df87299fdee8502fdec89bcd64bd3a33012861--ipaddress-1.0.22.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--ipaddress-20181104-76862-sdu2hu/ipaddress-1.0.22
==> Downloading https://files.pythonhosted.org/packages/e5/21/795b7549397735e911b032f255cff5fb0de58f96da794274660bca4f58ef/jmespath-0.9.3.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/f588fce27269111a417dbec57e9cbb7f6c7a986a844b482d7ef27c872b946745--jmespath-0.9.3.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--jmespath-20181104-76862-pojp69/jmespath-0.9.3
==> Downloading https://files.pythonhosted.org/packages/58/b9/171dbb07e18c6346090a37f03c7e74410a1a56123f847efed59af260a298/jsonschema-2.6.0.tar.gz
Already downloaded: /Users/whoughton/Library/Caches/Homebrew/downloads/8aab6cab7514dd6aa29e448ad448d18b124b14a47959b94f1ffc1f57d183e101--jsonschema-2.6.0.tar.gz
==> /usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/aws-elasticbeanstalk--jsonschema-20181104-76862-17kuoad/jsonschema-2.6.0
Last 15 lines from /Users/whoughton/Library/Logs/Homebrew/aws-elasticbeanstalk/22.pip:
  File "/usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/lib/python2.7/site-packages/pip/_internal/resolve.py", line 102, in resolve
    self._resolve_one(requirement_set, req)
  File "/usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/lib/python2.7/site-packages/pip/_internal/resolve.py", line 256, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/lib/python2.7/site-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
    self.require_hashes
  File "/usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 298, in prepare_linked_requirement
    abstract_dist.prep_for_dist(finder, self.build_isolation)
  File "/usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 126, in prep_for_dist
    self.req.run_egg_info()
  File "/usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 473, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/local/Cellar/aws-elasticbeanstalk/3.14.6/libexec/lib/python2.7/site-packages/pip/_internal/utils/misc.py", line 705, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-req-build-Xl0_5F/

READ THIS: https://docs.brew.sh/Troubleshooting

I have since tried upgrading setuptools and pip across the environments, but I cannot seem to get away from this error.

brew config:

HOMEBREW_VERSION: 1.8.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: 422257067cc46d86138baa0e8e453348c2829cee
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: bfe0d507a7c13120bff3aa3d05aee131bd905f1d
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit ivybridge
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 9.0 build 900
Git: 2.19.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.6.0_65-b14-468
macOS: 10.12.6-x86_64
CLT: 9.2.0.0.1.1510905681
Xcode: 9.2

brew doctor:

brew doctor                                                                                                                                                           3468ms  Sun Nov  4 11:43:47 2018
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libopenh264-1.4.0-osx64.dylib```

(Weston Houghton) #2

Note that installing via pip3 install awsebcli works with no problem.


(Sean Molenaar) #3

Did you install awscli from source?


(Weston Houghton) #4

No, awscli was installed (and still works) via brew.