ITADN

Preparing metadata fails on Cygwin with hatchling.plugin.exceptions.UnknownPluginError: Unknown build hook: vcs

#1254Openhamishmb 创建于 2026-03-15
H
hamishmbcommented
Hi there, I've found when trying to build the latest released version of this module on PyPI, 0.12.2, I encounter the following error when building the wheel: ``` Processing ./. Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [18 lines of output] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 178, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/hatchling/build.py", line 58, in build_wheel return os.path.basename(next(builder.build(directory=wheel_directory, versions=["standard"]))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 118, in build configured_build_hooks = self.get_build_hooks(directory) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 388, in get_build_hooks raise UnknownPluginError(message) hatchling.plugin.exceptions.UnknownPluginError: Unknown build hook: vcs [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> from file:///cygdrive/c/Users/Hamis/Cygwin-packaging/python-scikit-build-core/python-scikit-build-core-0.12.2-1.noarch/build note: This is an issue with the package mentioned above, not pip. hint: See above for details. ``` Could anyone give me some pointers as to what is happening here? I can confirm I'm not seeing the error when trying to install the package with pip in LMDE 7, which is based on Debian 13. Is it trying to use Visual Studio Code to compile the package, is that what "vcs" means? Best, Hamish
0 条评论