python - pytest-xdist: LookupError: setuptools-scm was unable to detect version -
when installing pytest-xdist, i'm getting error:
collecting pytest-xdist>=1.15.0 downloading https://company.com/pypi/packages/dc/b2/a59db3ef996b93c3ef35dbbc33557a71ef67a6839d94a52c88eeb1086002/pytest-xdist-1.15.0.tar.gz (87kb) 100% |████████████████████████████████| 92kb 70.2mb/s complete output command python setup.py egg_info: traceback (most recent call last): file "<string>", line 1, in <module> file "/tmp/pip-build-vyego5/pytest-xdist/setup.py", line 37, in <module> 'programming language :: python :: 3', file "/usr/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) file "/home/company/package_name/env/local/lib/python2.7/site-packages/setuptools/dist.py", line 318, in __init__ _distribution.__init__(self, attrs) file "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__ self.finalize_options() file "/home/company/package_name/env/local/lib/python2.7/site-packages/setuptools/dist.py", line 376, in finalize_options ep.load()(self, ep.name, value) file "build/bdist.linux-x86_64/egg/setuptools_scm/integration.py", line 21, in version_keyword file "build/bdist.linux-x86_64/egg/setuptools_scm/__init__.py", line 118, in get_version file "build/bdist.linux-x86_64/egg/setuptools_scm/__init__.py", line 96, in _do_parse lookuperror: setuptools-scm unable detect version '/tmp/pip-build-vyego5/pytest-xdist'. make sure you're either building intact git repository or pypi tarballs. other sources (such github's tarballs, git checkout without .git folder) don't contain necessary metadata , not work. 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 ---------------------------------------- command "python setup.py egg_info" failed error code 1 in /tmp/pip-build-vyego5/pytest-xdist/ i able install pytest-xdist before, i'm not sure changed :(
it looks you're hitting https://github.com/pypa/setuptools_scm/issues/164. workaround can pin setuptools-scm previous version in requirements.txt so:
setuptools_scm == 1.15.0 edit: issue has been fixed upstream , new version of setuptools-scm has been released (1.15.4). should not see issue anymore, without pinning version.
Comments
Post a Comment