Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12117

Intermittent pip error when building shell's venv

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.3.0
    • Impala 4.3.0
    • Infrastructure
    • None
    • ghx-label-12

    Description

      The all-build-options-ub2004 job intermittently hits this pip error when building the shell virtualenvs:

       

      WARNING: Skipping page https://pypi.org/simple/thrift/ because the GET request got Content-Type: Unknown. The only supported Content-Types are application/vnd.pypi.simple.v1+json, application/vnd.pypi.simple.v1+html, and text/html
      ERROR: Could not find a version that satisfies the requirement thrift==0.16.0 (from impala-shell) (from versions: none)
      ERROR: No matching distribution found for thrift==0.16.0
      

      This error doesn't always apply to thrift. It can be any of the shell dependencies. It doesn't seem to impact the impala-python or impala-python3 virtualenv (which don't use prebuilt binaries).

      Searching around, a theory on the forums is that this can happen when there are multiple pip installs running simultaneously writing to the same pip cache. Impala builds a python 2 virtualenv and a python 3 virtualenv simultaneously, so that seems like a plausible theory.

      We should try using separate pip caches for the python 2 vs python 3 shell virtualenvs.

       

      Attachments

        Activity

          People

            joemcdonnell Joe McDonnell
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: