Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17496

Build failure due to python2.7 deprecation by pip

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • build
    • Linux

    • Reviewed

    Description

      The latest version of pip has deprecated its support for python 2.7 - pip install on Python 2 fails with SyntaxError: sys.stderr.write(f"ERROR: {exc}") · Issue #9500 · pypa/pip (github.com)

      We encounter the following error while building Hadoop -

      11:24:56  Traceback (most recent call last):
      11:24:56    File "get-pip.py", line 24226, in <module>
      11:24:56      main()
      11:24:56    File "get-pip.py", line 199, in main
      11:24:56      bootstrap(tmpdir=tmpdir)
      11:24:56    File "get-pip.py", line 82, in bootstrap
      11:24:56      from pip._internal.cli.main import main as pip_entry_point
      11:24:56    File "/tmp/tmpDXDtcP/pip.zip/pip/_internal/cli/main.py", line 60
      11:24:56      sys.stderr.write(f"ERROR: {exc}")
      11:24:56                                     ^
      11:24:56  SyntaxError: invalid syntax 

      Link : https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2567/16/consoleFull

      Attachments

        Issue Links

          Activity

            People

              gaurava Gautham Banasandra
              gaurava Gautham Banasandra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m