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 (Fedora 30 using python-build 20180424)

See original GitHub issue

Following the documents, trying to run ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer failed with the following message:

BUILD FAILED (Fedora 30 using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20190605123619.8368
Results logged to /tmp/python-build.20190605123619.8368.log

Last 10 log lines:
  File "/tmp/python-build.20190605123619.8368/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/tmp/python-build.20190605123619.8368/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/tmp/python-build.20190605123619.8368/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 "/tmp/python-build.20190605123619.8368/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: *** [Makefile:1130: install] Error 1
   Exiting due to failure

The log file is attached. python-build.20190605123619.8368.log

Tried to install zlib, it was already installed:

Package zlib-1.2.11-15.fc30.x86_64 is already installed.
Package zlib-1.2.11-15.fc30.i686 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

My .bash_profile:

PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH

My pip:

$ which pip3
  >  /usr/bin/pip3
ls -al /usr/bin/pip3
  >  -rwxr-xr-x. 1 root root 408 /usr/bin/pip3

My pip -v:

pip3 --version
pip 19.1.1 from ~/.local/lib/python3.7/site-packages/pip (python 3.7)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rahulrajaramcommented, Jun 6, 2019

Thanks for getting back and posting the build logs. Your system is missing OpenSSL. I’m in the process of updating the README so that problems involving missing libraries are clear to users.

In the meantime, let me know if the following works for you. The following uses yum, but I suppose dnf should work too.

yum install \
        zlib-devel openssl-devel ncurses-devel libffi-devel \
        sqlite-devel.x86_64 readline-devel.x86_64 bzip2-devel.x86_64
0reactions
childsccommented, Aug 15, 2019

Hi, I am on ubuntu and this was helping alot.

I had the following installations via apt: apt-get -y install zlib1g-dev libffi-dev openssl sqlite

Then I got the following error:

Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems


BUILD FAILED (Ubuntu 18.04 using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20190815092749.525
Results logged to /tmp/python-build.20190815092749.525.log

Last 10 log lines:
                install|*) ensurepip="" ;; \
        esac; \
         ./python -E -m ensurepip \
                $ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmpt46zhnrd
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-18.1 setuptools-40.6.2

So after navigating to

https://github.com/pyenv/pyenv/wiki/Common-build-problems

The solution was there for me:

apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl \

And now it appears to have installed properly. Maybe the documentation can be updated for Ubuntu users to say if getting following error:

zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [Makefile:1130: install] Error 1
   Exiting due to failure

That the url to pypenv wiki can be helpful.

I do not know if the same would work for Fedora. I would assume so but I am not 100% sure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyenv: BUILD FAILED (Fedora 34 using python-build 20180424)
You need to patch some Python 3.6 object allocation code to use 16 byte alignment. It appears that this was fixed in Python...
Read more >
build failed (os x 12.5.1 using python-build 20180424)
BUILD FAILED (Fedora 30 using python-build 20180424) Inspect or clean up the working tree at /tmp/python-build.20190605123619.8368 Results logged to ...
Read more >
Problem Building Python 3.7.0 in Amazon Linux 2 - Reddit
I'm trying to build Python 3.7.0 in Amazon Linux 2 according to these instructions (yeah, I wrote them myself) and I'm having a...
Read more >
Zipimport.Zipimporterror: Can't Decompress Data; Zlib Not ...
BUILD FAILED Kali kalirolling using pythonbuild 1.2.71g71902168 Inspect or clean ... message: BUILD FAILED Fedora 30 using pythonbuild 20180424 Inspect or.
Read more >
ERROR: The Python ssl extension was not compiled. Missing ...
Give another go at force removing the brewed version of openssl brew uninstall --force openssl. Then clean up any older versions and clear ......
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