question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUILD FAILED (OS X 10.15.4 using python-build 20180424)

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

25reactions
smushy129commented, Jul 28, 2020

I was able to solve this by running:

brew install pyenv pyenv install 3.7.2

Wish I found the other thread earlier, would have saved me 2 hours. https://github.com/aws/aws-elastic-beanstalk-cli-setup/issues/23

23reactions
Yusuke196commented, Jul 19, 2021

Run brew install zlib Follow the instruction in installation message of zlib to create a symlink Follw the Mac OS specific instructions here

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:

pyenv install --patch 3.7.2 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)

My environments are:

  • macOS Big Sur 11.4
  • XCode 12.5.1
Read more comments on GitHub >

github_iconTop Results From Across the Web

pyenv: BUILD FAILED (OS X 10.15.7 using python-build ...
The problem was OpenSSL that was installed with Homebrew, but which "was not symlinked into /usr/local, because macOS provides LibreSSL.
Read more >
Not Able to Build Some Versions of Python on M1 at 12.3.1
I trying to build older version of python such as 3.6, 3.7, 3.8 using pyenv and having build failures. I am on apple...
Read more >
build failed (os x 12.3.1 using python-build 20180424)
python-build: use zlib from xcode sdk BUILD FAILED (OS X 12.0.1 using python-build 20180424) I tried pyenv install 3.8.10 after reading @btilongnguyen 's ......
Read more >
Managing macOS + python issues - Medium
BUILD FAILED (OS X *.* using python-build 20180424) This issue has something to do with XCode Command Line Tools. Hence, a lot of...
Read more >
Build pyenv Python versions on macOS Catalina 10.15
python-build: use readline from homebrew BUILD FAILED (OS X 10.15.x using python-build 20XXXXXX) Inspect or clean up the working tree at /var/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found