Skip to content

"make" fails with missing version error #4

@Npaffen

Description

@Npaffen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions