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

Python xdist installation fails with "LookupError: setuptools-scm was unable to detect version"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: Impala 2.9.0
    • Fix Version/s: None
    • Component/s: Infrastructure
    • Labels:

      Description

      A submit job failed to install xdist. Has anyone seen this before?

      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

      22:36:30 ] Collecting pytest-xdist==1.15.0 (from -r /mnt/tmp.LnAFxHCzJy/bin/../infra/python/deps/requirements.txt (line 30))
      22:36:30 ]     Complete output from command python setup.py egg_info:
      22:36:30 ]     Traceback (most recent call last):
      22:36:30 ]       File "<string>", line 20, in <module>
      22:36:30 ]       File "/tmp/pip-build-oLouLZ/pytest-xdist/setup.py", line 37, in <module>
      22:36:30 ]         'Programming Language :: Python :: 3',
      22:36:30 ]       File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
      22:36:30 ]         _setup_distribution = dist = klass(attrs)
      22:36:30 ]       File "/mnt/tmp.LnAFxHCzJy/infra/python/env/local/lib/python2.7/site-packages/setuptools/dist.py", line 272, in __init__
      22:36:30 ]         _Distribution.__init__(self,attrs)
      22:36:30 ]       File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
      22:36:30 ]         self.finalize_options()
      22:36:30 ]       File "/mnt/tmp.LnAFxHCzJy/infra/python/env/local/lib/python2.7/site-packages/setuptools/dist.py", line 327, in finalize_options
      22:36:30 ]         ep.load()(self, ep.name, value)
      22:36:30 ]       File "build/bdist.linux-x86_64/egg/setuptools_scm/integration.py", line 21, in version_keyword
      22:36:30 ]       File "build/bdist.linux-x86_64/egg/setuptools_scm/__init__.py", line 118, in get_version
      22:36:30 ]     
      22:36:30 ]       File "build/bdist.linux-x86_64/egg/setuptools_scm/__init__.py", line 96, in _do_parse
      22:36:30 ]     
      22:36:30 ]     LookupError: setuptools-scm was unable to detect version for '/tmp/pip-build-oLouLZ/pytest-xdist'.
      22:36:30 ]     
      22:36:30 ]     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.
      22:36:30 ]     
      22:36:30 ]     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
      22:36:30 ]     
      22:36:30 ]     ----------------------------------------
      22:36:30 ] Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-oLouLZ/pytest-xdist
      22:36:30 ]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lv Lars Volker
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: