aws-elastic-beanstalk-cli-setup: BUILD FAILED (OS X 10.15.4 using python-build 20180424)
getting the error
BUILD FAILED (OS X 10.15.4 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278
Results logged to /var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278.log
Last 10 log lines:
File "/private/var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
sys.exit(ensurepip._main())
File "/private/var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
default_pip=args.default_pip,
File "/private/var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/private/var/folders/3z/jdm_tbt56n97ch0_75f497880000gn/T/python-build.20200331123651.7278/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
Exiting due to failure
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 4
- Comments: 20 (1 by maintainers)
I was able to solve this by running:
brew install pyenvpyenv install 3.7.2Wish I found the other thread earlier, would have saved me 2 hours. https://github.com/aws/aws-elastic-beanstalk-cli-setup/issues/23
In my case, these actions did not work. Instead, using a patch mentioned in this comment solved the issue. In order to install python 3.7.2, I ran:
My environments are:
Tried many times, didn’t work, reinstall zlib, symlinked, everything.
This worked for me. Thanks for sharing in this thread @Yusuke196 .
My environments are similarly:
Before
After
Which meant I could finally install the aws eb-client:
Previously I’d tried the various methods of reinstalling dependencies with brew, reinstalling xcode command line tools etc.
It worked for me
It was the guy above flyp-felype who posted the answer
Thank you @Yusuke196 💯
@mtmateer , thanks for reaching out.
brew install zlibThanks @mike-roberts-ps!! Worked like a charm. Sucks I wasted a lot of other time on other threads. Lol.
Same