GeoscienceAustralia / uncover-ml

Machine Learning system for Geoscience Australia uncover project
Apache License 2.0
30 stars 20 forks source link

Git describe not finding tags #106

Open brenmous opened 4 years ago

brenmous commented 4 years ago
\uncover-ml
ERROR: Command errored out with exit status 1:
command: 'C:\Users\rscott\AppData\Local\Continuum\anaconda3\envs\uncovermlold\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rscott\AppData\Local\Temp\pip-req-build-bi0vcvf6\setup.py'"'"'; file='"'"'C:\Users\rscott\AppData\Local\Temp\pip-req-build-bi0vcvf6\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\rscott\AppData\Local\Temp\pip-pip-egg-info-83razedx'
cwd: C:\Users\rscott\AppData\Local\Temp\pip-req-build-bi0vcvf6
Complete output (13 lines):
fatal: No tags can describe '478620809f8e82f459f3962f2478631a62f9bee1'.
Try --always, or create some tags.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\rscott\AppData\Local\Temp\pip-req-build-bi0vcvf6\setup.py", line 57, in
version=git_desc(),
File "C:\Users\rscott\AppData\Local\Temp\pip-req-build-bi0vcvf6\setup.py", line 49, in git_desc
return subprocess.check_output(desc).decode().strip()
File "C:\Users\rscott\AppData\Local\Continuum\anaconda3\envs\uncovermlold\lib\subprocess.py", line 376, in check_output
**kwargs).stdout
File "C:\Users\rscott\AppData\Local\Continuum\anaconda3\envs\uncovermlold\lib\subprocess.py", line 468, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'describe', '--tags', '--abbrev=0']' returned non-zero exit status 128.

Cloned (forked?) repo doesn't include tags? Git describe is used to manage version number in setup.py and fails because no tags exist. Workaround for now is to hardcode the version number.