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

python env fails to install pytest-xdist

    Details

    • Epic Color:
      ghx-label-1

      Description

      Started seeing this regularly on the impala-asf-master-core job. Joe McDonnell also reported seeing this on his dev environment.

      17:33:29 Collecting pytest-xdist==1.15.0 (from -r /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/bin/../infra/python/deps/requirements.txt (line 30))
      17:33:29     Complete output from command python setup.py egg_info:
      17:33:29     Traceback (most recent call last):
      17:33:29       File "<string>", line 20, in <module>
      17:33:29       File "/tmp/pip-build-6W5KD8/pytest-xdist/setup.py", line 37, in <module>
      17:33:29         'Programming Language :: Python :: 3',
      17:33:29       File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup
      17:33:29         _setup_distribution = dist = klass(attrs)
      17:33:29       File "/data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/infra/python/env/lib/python2.6/site-packages/setuptools/dist.py", line 272, in __init__
      17:33:29         _Distribution.__init__(self,attrs)
      17:33:29       File "/usr/lib64/python2.6/distutils/dist.py", line 270, in __init__
      17:33:29         self.finalize_options()
      17:33:29       File "/data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/infra/python/env/lib/python2.6/site-packages/setuptools/dist.py", line 327, in finalize_options
      17:33:29         ep.load()(self, ep.name, value)
      17:33:29       File "/tmp/pip-build-6W5KD8/pytest-xdist/.eggs/setuptools_scm-1.15.3-py2.6.egg/setuptools_scm/integration.py", line 21, in version_keyword
      17:33:29       File "/tmp/pip-build-6W5KD8/pytest-xdist/.eggs/setuptools_scm-1.15.3-py2.6.egg/setuptools_scm/__init__.py", line 118, in get_version
      17:33:29     
      17:33:29       File "/tmp/pip-build-6W5KD8/pytest-xdist/.eggs/setuptools_scm-1.15.3-py2.6.egg/setuptools_scm/__init__.py", line 96, in _do_parse
      17:33:29     
      17:33:29     LookupError: setuptools-scm was unable to detect version for '/tmp/pip-build-6W5KD8/pytest-xdist'.
      17:33:29     
      17:33:29     Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
      17:33:29     
      17:33:29     For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
      17:33:29     
      17:33:29     ----------------------------------------
      17:33:29 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6W5KD8/pytest-xdist
      17:33:29 
      

        Issue Links

          Activity

          Hide
          lv Lars Volker added a comment -

          From IMPALA-5190:
          http://jenkins.impala.io:8080/job/gerrit-verify-dryrun/445/console

          Googling the error led me to this question from today on SO, but I still couldn't make sense of it: http://stackoverflow.com/questions/43288756/pytest-xdist-lookuperror-setuptools-scm-was-unable-to-detect-version

          Running the following command on my local dev machine in a fresh virtualenv results in the same error:
          pip install --no-binary --no-index --no-cache-dir --find-links infra/python/deps/ -r infra/python/deps/requirements.txt

          Show
          lv Lars Volker added a comment - From IMPALA-5190 : http://jenkins.impala.io:8080/job/gerrit-verify-dryrun/445/console Googling the error led me to this question from today on SO, but I still couldn't make sense of it: http://stackoverflow.com/questions/43288756/pytest-xdist-lookuperror-setuptools-scm-was-unable-to-detect-version Running the following command on my local dev machine in a fresh virtualenv results in the same error: pip install --no-binary --no-index --no-cache-dir --find-links infra/python/deps/ -r infra/python/deps/requirements.txt
          Hide
          lv Lars Volker added a comment -

          After some digging I found out that this is cause by a bug in the latest release of setuptools_scm: https://github.com/pypa/setuptools_scm/issues/164

          I pushed a change to pin the version of setuptools_scm here: https://gerrit.cloudera.org/#/c/6599/

          Show
          lv Lars Volker added a comment - After some digging I found out that this is cause by a bug in the latest release of setuptools_scm: https://github.com/pypa/setuptools_scm/issues/164 I pushed a change to pin the version of setuptools_scm here: https://gerrit.cloudera.org/#/c/6599/
          Hide
          dknupp David Knupp added a comment -

          Closing this because Lars is on PTO. He fixed this with this commit:

          https://github.com/apache/incubator-impala/commit/841fe7f

          Show
          dknupp David Knupp added a comment - Closing this because Lars is on PTO. He fixed this with this commit: https://github.com/apache/incubator-impala/commit/841fe7f

            People

            • Assignee:
              lv Lars Volker
              Reporter:
              mjacobs Matthew Jacobs
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development