You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/01/27 10:14:40 UTC

[GitHub] [bookkeeper] RaulGracia opened a new issue #2557: Bookkeeper docker image build fails because of deprecated Python version for pip

RaulGracia opened a new issue #2557:
URL: https://github.com/apache/bookkeeper/issues/2557


   **BUG REPORT**
   
   ***Describe the bug***
   
   The Bookkeeper image relies on Python 2.7 and `pip` to install `zk-shell`. To install `pip`, the Dockerfile uses `get-pip.py` that will install the most recent version of `pip`. However, the new version since January 2021 is no longer supporting Python 2.x. Actually, this warning message was present when building the image:
   ```
   DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
   ```
   Now, the support to Python 2.x has been removed, so building the Bookkeeper image fails.
   
   ***To Reproduce***
   
   When building the Bookkeeper docker image, you will likely get this error:
   
   ```
   00:06:28  + wget -q https://bootstrap.pypa.io/get-pip.py
   00:06:29  + python get-pip.py
   00:06:30  Traceback (most recent call last):
   00:06:30    File "get-pip.py", line 24226, in <module>
   00:06:30      main()
   00:06:30    File "get-pip.py", line 199, in main
   00:06:30      bootstrap(tmpdir=tmpdir)
   00:06:30    File "get-pip.py", line 82, in bootstrap
   00:06:30      from pip._internal.cli.main import main as pip_entry_point
   00:06:30    File "/tmp/tmp25EwzN/pip.zip/pip/_internal/cli/main.py", line 60
   00:06:30      sys.stderr.write(f"ERROR: {exc}")
   ```
   
   ***Expected behavior***
   
   Docker image build should succeed.
   
   ***Screenshots***
   
   n/a
   
   ***Additional context***
   
   An immediate and conservative solution with minimal impact may be to explicitly download a pip version compatible with Python 2.7. In the long term, the Bookkeeper image may want to either upgrade to Python 3 as Python 2.7 has reached end of life support.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] eolivelli closed issue #2557: Bookkeeper docker image build fails because of deprecated Python version for pip

Posted by GitBox <gi...@apache.org>.
eolivelli closed issue #2557:
URL: https://github.com/apache/bookkeeper/issues/2557


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org