Skip to content

action failed: Error getting the version from source #47

@mathause

Description

@mathause

The action failed because the package could not be installed

python -m pip install ${{ github.action_path }}

with the following error

LookupError: Error getting the version from source vcs: setuptools-scm was unable to detect version for /home/runner/work/_actions/xarray-contrib/minimum-dependency-versions/v1.0.0.

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

Alternatively, set the version with the environment variable SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME} as described in https://setuptools-scm.readthedocs.io/en/latest/config/

  • We may have to add .gitattributes and .git_archival.txt files or define a fallback.
  • I see you use hatch-vcs but the error message says setuptools-scm. Is hatch-vcs using setuptools-scm under the hood or is something going wrong.

GHA workflow:

https://github.com/regionmask/regionmask/actions/runs/20333890999/job/58415541269?pr=640

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