Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"make" fails with missing version error #4

Open
Npaffen opened this issue Dec 6, 2022 · 0 comments
Open

"make" fails with missing version error #4

Npaffen opened this issue Dec 6, 2022 · 0 comments

Comments

@Npaffen
Copy link

Npaffen commented Dec 6, 2022

I downloaded the repository as a .zip file and unpacked this at /home/oem/phasedibd. Using make produces the following error. This happens only when cloning the repository by downloading the .zip package. cloning via git clone url works fine.

(base) oem@oem:~/phasedibd$ make
pip install cython --user
Requirement already satisfied: cython in /home/oem/anaconda3/lib/python3.9/site-packages (0.29.28)
python setup.py build_ext --inplace
/home/oem/anaconda3/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Traceback (most recent call last):
File "/home/oem/phasedibd/setup.py", line 15, in
setup(
File "/home/oem/anaconda3/lib/python3.9/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/oem/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 147, in setup
_setup_distribution = dist = klass(attrs)
File "/home/oem/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 475, in init
_Distribution.init(
File "/home/oem/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 283, in init
self.finalize_options()
File "/home/oem/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 899, in finalize_options
ep(self)
File "/home/oem/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 919, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "/home/oem/phasedibd/.eggs/setuptools_scm-7.0.5-py3.9.egg/setuptools_scm/integration.py", line 90, in version_keyword
_assign_version(dist, config)
File "/home/oem/phasedibd/.eggs/setuptools_scm-7.0.5-py3.9.egg/setuptools_scm/integration.py", line 62, in _assign_version
_version_missing(config)
File "/home/oem/phasedibd/.eggs/setuptools_scm-7.0.5-py3.9.egg/setuptools_scm/init.py", line 109, in _version_missing
raise LookupError(
LookupError: setuptools-scm was unable to detect version for /home/oem/phasedibd.

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.

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
make: *** [Makefile:4: all] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant